Further includes in Facades

This commit is contained in:
Dennis Luxen 2013-09-18 18:33:10 +02:00
parent a9ac0ac725
commit 21bee7e40c
3 changed files with 8 additions and 21 deletions

View File

@ -68,16 +68,10 @@ public:
bool & result bool & result
) const = 0; ) const = 0;
<<<<<<< HEAD
>>>>>>> added graph data access
virtual unsigned GetNumberOfEdges() const = 0;
=======
//node and edge information access //node and edge information access
virtual FixedPointCoordinate GetCoordinateOfNode( virtual FixedPointCoordinate GetCoordinateOfNode(
const unsigned id const unsigned id
) const = 0; ) const = 0;
>>>>>>> plugging in base facade ptr
virtual unsigned GetOutDegree( const NodeID n ) const = 0; virtual unsigned GetOutDegree( const NodeID n ) const = 0;
@ -85,38 +79,23 @@ public:
virtual EdgeDataT &GetEdgeData( const EdgeID e ) = 0; virtual EdgeDataT &GetEdgeData( const EdgeID e ) = 0;
<<<<<<< HEAD
virtual const EdgeDataT &GetEdgeData( const EdgeID e ) const = 0;
virtual EdgeID BeginEdges( const NodeID n ) const = 0;
=======
virtual bool LocateClosestEndPointForCoordinate( virtual bool LocateClosestEndPointForCoordinate(
const FixedPointCoordinate& input_coordinate, const FixedPointCoordinate& input_coordinate,
FixedPointCoordinate& result, FixedPointCoordinate& result,
const unsigned zoom_level = 18 const unsigned zoom_level = 18
) const = 0; ) const = 0;
>>>>>>> added graph data access
virtual EdgeID EndEdges( const NodeID n ) const = 0; virtual EdgeID EndEdges( const NodeID n ) const = 0;
//searches for a specific edge //searches for a specific edge
virtual EdgeID FindEdge( const NodeID from, const NodeID to ) const = 0; virtual EdgeID FindEdge( const NodeID from, const NodeID to ) const = 0;
virtual EdgeID FindEdgeInEitherDirection(
const NodeID from,
const NodeID to
) const = 0;
<<<<<<< HEAD
virtual EdgeID FindEdgeIndicateIfReverse( virtual EdgeID FindEdgeIndicateIfReverse(
const NodeID from, const NodeID from,
const NodeID to, const NodeID to,
bool & result bool & result
) const = 0; ) const = 0;
=======
};
>>>>>>> plugging in base facade ptr
}; };
#endif // QUERY_DATA_FACADE_H #endif // QUERY_DATA_FACADE_H

View File

@ -21,8 +21,12 @@ or see http://www.gnu.org/licenses/agpl.txt.
#ifndef INTERNAL_DATA_FACADE #ifndef INTERNAL_DATA_FACADE
#define INTERNAL_DATA_FACADE #define INTERNAL_DATA_FACADE
//implements all data storage when shared memory is _NOT_ used
#include "BaseDataFacade.h" #include "BaseDataFacade.h"
#include "../../DataStructures/StaticGraph.h"
template<class EdgeDataT> template<class EdgeDataT>
class InternalDataFacade : public BaseDataFacade<EdgeDataT> { class InternalDataFacade : public BaseDataFacade<EdgeDataT> {

View File

@ -21,8 +21,12 @@ or see http://www.gnu.org/licenses/agpl.txt.
#ifndef INTERNAL_DATA_FACADE #ifndef INTERNAL_DATA_FACADE
#define INTERNAL_DATA_FACADE #define INTERNAL_DATA_FACADE
//implements all data storage when shared memory is _NOT_ used
#include "BaseDataFacade.h" #include "BaseDataFacade.h"
#include "../../DataStructures/StaticGraph.h"
template<class EdgeDataT> template<class EdgeDataT>
class SharedDataFacade : public BaseDataFacade<EdgeDataT> { class SharedDataFacade : public BaseDataFacade<EdgeDataT> {