OpenLexocad  27.1
Core::ObjectGraph Class Reference

#include <GraphBuilder.h>

Public Member Functions

 ObjectGraph ()
 
 ObjectGraph (const ObjectGraph &rhs)
 
 ObjectGraph (std::vector< Core::DocObject * > objs, bool ignoreLinksToTemporaryObjects=false)
 
 ~ObjectGraph ()
 
void clear ()
 
bool hasObject (const Core::DocObject *o) const
 
bool addObject (const Core::DocObject *o)
 
bool removeObject (const Core::DocObject *o)
 
bool updateObject (const Core::DocObject *o)
 
bool recreate (std::vector< const Core::DocObject * > toDelete)
 
std::vector< Core::DocObject * > build_SubGraph (const std::vector< Core::DocObject * > &featureSet)
 
std::vector< const Core::DocObject * > getInner (const Core::DocObject *o, std::function< bool(const Core::DocObject *)> *allowToAddObject=0)
 
std::vector< const Core::DocObject * > getOuter (const Core::DocObject *o)
 
bool checkForCycle ()
 
std::vector< const Core::DocObject * > getTopologicalSorted ()
 
std::vector< const Core::DocObject * > getLinksToMe (const Core::DocObject *o)
 
std::vector< const Core::DocObject * > getLinksFromMe (const Core::DocObject *o)
 
std::vector< const Core::DocObject * > getBackLinksToMe (const Core::DocObject *o)
 
std::vector< const Core::DocObject * > getBackLinksFromMe (const Core::DocObject *o)
 
std::string dump ()
 
std::vector< std::string > getErrors ()
 

Constructor & Destructor Documentation

◆ ObjectGraph() [1/3]

Core::ObjectGraph::ObjectGraph ( )

◆ ObjectGraph() [2/3]

Core::ObjectGraph::ObjectGraph ( const ObjectGraph rhs)

◆ ObjectGraph() [3/3]

Core::ObjectGraph::ObjectGraph ( std::vector< Core::DocObject * >  objs,
bool  ignoreLinksToTemporaryObjects = false 
)

◆ ~ObjectGraph()

Core::ObjectGraph::~ObjectGraph ( )

Member Function Documentation

◆ addObject()

bool Core::ObjectGraph::addObject ( const Core::DocObject o)

◆ build_SubGraph()

std::vector<Core::DocObject*> Core::ObjectGraph::build_SubGraph ( const std::vector< Core::DocObject * > &  featureSet)

◆ checkForCycle()

bool Core::ObjectGraph::checkForCycle ( )

◆ clear()

void Core::ObjectGraph::clear ( )

◆ dump()

std::string Core::ObjectGraph::dump ( )

◆ getBackLinksFromMe()

std::vector<const Core::DocObject*> Core::ObjectGraph::getBackLinksFromMe ( const Core::DocObject o)

◆ getBackLinksToMe()

std::vector<const Core::DocObject*> Core::ObjectGraph::getBackLinksToMe ( const Core::DocObject o)

◆ getErrors()

std::vector< std::string > Core::ObjectGraph::getErrors ( )

◆ getInner()

std::vector<const Core::DocObject*> Core::ObjectGraph::getInner ( const Core::DocObject o,
std::function< bool(const Core::DocObject *)> *  allowToAddObject = 0 
)

◆ getLinksFromMe()

std::vector<const Core::DocObject*> Core::ObjectGraph::getLinksFromMe ( const Core::DocObject o)

◆ getLinksToMe()

std::vector<const Core::DocObject*> Core::ObjectGraph::getLinksToMe ( const Core::DocObject o)

◆ getOuter()

std::vector<const Core::DocObject*> Core::ObjectGraph::getOuter ( const Core::DocObject o)

◆ getTopologicalSorted()

std::vector<const Core::DocObject*> Core::ObjectGraph::getTopologicalSorted ( )

◆ hasObject()

bool Core::ObjectGraph::hasObject ( const Core::DocObject o) const

◆ recreate()

bool Core::ObjectGraph::recreate ( std::vector< const Core::DocObject * >  toDelete)

◆ removeObject()

bool Core::ObjectGraph::removeObject ( const Core::DocObject o)

◆ updateObject()

bool Core::ObjectGraph::updateObject ( const Core::DocObject o)

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