graph_analysis
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
graph_analysis::SubGraphImpl< SubGraphType > Class Template Reference

SubGraphImpl represents the subgraph implemention. More...

#include <SubGraphImpl.hpp>

Inheritance diagram for graph_analysis::SubGraphImpl< SubGraphType >:
Inheritance graph
[legend]
Collaboration diagram for graph_analysis::SubGraphImpl< SubGraphType >:
Collaboration graph
[legend]

Public Types

typedef SubGraphType graph_t
 
- Public Types inherited from graph_analysis::SubGraph
typedef shared_ptr< SubGraph > Ptr
 

Public Member Functions

 SubGraphImpl (shared_ptr< BaseGraph > graph)
 
virtual ~SubGraphImpl ()
 
graph_t & raw ()
 
const graph_t & raw () const
 
- Public Member Functions inherited from graph_analysis::SubGraph
 SubGraph (const shared_ptr< BaseGraph > &graph)
 
virtual ~SubGraph ()
 
virtual void enable (const Vertex::Ptr &vertex)
 
virtual void disable (const Vertex::Ptr &vertex)
 
virtual void enable (const Edge::Ptr &edge)
 
virtual void disable (const Edge::Ptr &edge)
 
virtual bool enabled (const Vertex::Ptr &vertex) const
 
virtual bool enabled (const Edge::Ptr &edge) const
 
bool disabled (const Vertex::Ptr &vertex) const
 
bool disabled (const Edge::Ptr &edge) const
 
void enableAllVertices ()
 
void enableAllEdges ()
 
void disableAllVertices ()
 
void disableAllEdges ()
 
void applyFilters (const Filter< Vertex::Ptr >::Ptr &vertexFilter, const Filter< Edge::Ptr >::Ptr &edgeFilter)
 
virtual shared_ptr< BaseGraph > toBaseGraph () const
 
virtual VertexIterator::Ptr getVertexIterator () const
 
virtual EdgeIterator::Ptr getEdgeIterator () const
 
virtual EdgeIterator::Ptr getEdgeIterator (const Vertex::Ptr &vertex) const
 
shared_ptr< BaseGraph > getBaseGraph () const
 
- Public Member Functions inherited from graph_analysis::VertexIterable
virtual ~VertexIterable ()
 
virtual uint64_t getVertexCount () const
 
- Public Member Functions inherited from graph_analysis::EdgeIterable
virtual ~EdgeIterable ()
 
virtual uint64_t getEdgeCount () const
 

Protected Member Functions

void setSubgraph (graph_t *subgraph)
 

Protected Attributes

shared_ptr< graph_t > mpSubgraph
 
- Protected Attributes inherited from graph_analysis::SubGraph
shared_ptr< BaseGraph > mpBaseGraph
 Ptr which refers to the original (super) graph. More...
 
std::set< GraphElementId > mDisabledVertices
 
std::set< GraphElementId > mDisabledEdges
 

Detailed Description

template<typename SubGraphType>
class graph_analysis::SubGraphImpl< SubGraphType >

SubGraphImpl represents the subgraph implemention.

Template Parameters
SubGraphTypethe underlying subgraph type

Member Typedef Documentation

◆ graph_t

template<typename SubGraphType>
typedef SubGraphType graph_analysis::SubGraphImpl< SubGraphType >::graph_t

Constructor & Destructor Documentation

◆ SubGraphImpl()

template<typename SubGraphType>
graph_analysis::SubGraphImpl< SubGraphType >::SubGraphImpl ( shared_ptr< BaseGraph >  graph)
inline

This default Constructor will not(!) initialize the underlying subgraph type, but only the given filters. Make sure that any class inheriting from this one properly initializes the subgraph, i.e. using setSubgraph

Ownership of all objects, i.e. filters and graph is transferred to this class, which internally uses shared pointer to guarantee cleanup when necessary

Classes that inherit from TypedSubGraph need to explicitly call setSubgraph to link to the underlying SubGraph implementation

◆ ~SubGraphImpl()

template<typename SubGraphType>
virtual graph_analysis::SubGraphImpl< SubGraphType >::~SubGraphImpl ( )
inlinevirtual

Member Function Documentation

◆ raw() [1/2]

template<typename SubGraphType>
graph_t& graph_analysis::SubGraphImpl< SubGraphType >::raw ( )
inline

Retrieve the raw subgraph type. Use with care since this object's memory might be deallocated if you release your main object

◆ raw() [2/2]

template<typename SubGraphType>
const graph_t& graph_analysis::SubGraphImpl< SubGraphType >::raw ( ) const
inline

◆ setSubgraph()

template<typename SubGraphType>
void graph_analysis::SubGraphImpl< SubGraphType >::setSubgraph ( graph_t *  subgraph)
inlineprotected

Set the subgraph Method to allow application of implementation specific subgraph constructors

Parameters
subgraphpointer to subgraph

Member Data Documentation

◆ mpSubgraph

template<typename SubGraphType>
shared_ptr<graph_t> graph_analysis::SubGraphImpl< SubGraphType >::mpSubgraph
protected

The documentation for this class was generated from the following file: