![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
Reprensent a Depth First Search coding of a graph. More...
#include <agrum/PRM/gspan/DFSCode.h>
Public Attributes | |
std::vector< EdgeCode *> | codes |
The vector containing the EdgeCode composing this DFSCode. More... | |
Public Member Functions | |
DFSCode () | |
Default constructor. More... | |
DFSCode (const DFSCode &source) | |
Copy constructor. More... | |
~DFSCode () | |
Destructor. More... | |
DFSCode & | operator= (const DFSCode &source) |
Copy operator. More... | |
bool | operator== (const DFSCode &code) const |
Equality operator. More... | |
bool | operator!= (const DFSCode &code) const |
Difference operator. More... | |
bool | operator< (const DFSCode &code) const |
Lesser than operator. More... | |
bool | operator<= (const DFSCode &code) const |
Lesser or equal than operator. More... | |
Static Public Member Functions | |
static bool | validNeighbors (EdgeCode *e1, EdgeCode *e2) |
Returns true of e2 is a valid neighbor for e1 (i.e. More... | |
Public Types | |
typedef std::vector< EdgeCode *>::iterator | iterator |
Code alias. More... | |
typedef std::vector< EdgeCode *>::const_iterator | const_iterator |
Code alias. More... | |
Reprensent a Depth First Search coding of a graph.
A DFSCode is composed of EdgeCode. Each EdgeCode is either a forward edge or a backward edge.
Regarding memory allocation EdgeCode are shared between related DFSCode, so delete DFSCode in a bottom up fashion.
typedef std::vector< EdgeCode* >::const_iterator gum::prm::gspan::DFSCode::const_iterator |
typedef std::vector< EdgeCode* >::iterator gum::prm::gspan::DFSCode::iterator |
INLINE gum::prm::gspan::DFSCode::DFSCode | ( | ) |
Default constructor.
Create an empty DFSCode.
Definition at line 34 of file DFSCode_inl.h.
References gum::prm::gspan::operator<<().
INLINE gum::prm::gspan::DFSCode::DFSCode | ( | const DFSCode & | source | ) |
Copy constructor.
Proceeds with a deep copy.
Definition at line 40 of file DFSCode_inl.h.
References gum::prm::gspan::operator<<().
INLINE gum::prm::gspan::DFSCode::~DFSCode | ( | ) |
Destructor.
This will delete all children of this DFSCode, with their respective EdgeCode.
Definition at line 48 of file DFSCode_inl.h.
References gum::prm::gspan::operator<<().
Difference operator.
code | The code tested for difference with this. |
Definition at line 80 of file DFSCode_inl.h.
References gum::prm::gspan::operator<<().
Lesser than operator.
code | The code on which the test is made. |
Definition at line 93 of file DFSCode_inl.h.
References gum::prm::gspan::operator<<().
Lesser or equal than operator.
code | The code on which the test is made. |
Definition at line 143 of file DFSCode_inl.h.
References gum::prm::gspan::operator<<().
Copy operator.
Proceeds with a deep copy.
Definition at line 56 of file DFSCode_inl.h.
References gum::prm::gspan::operator<<().
Equality operator.
code | The code tested for equality with this. |
Definition at line 67 of file DFSCode_inl.h.
References gum::prm::gspan::operator<<().
std::vector< EdgeCode* > gum::prm::gspan::DFSCode::codes |