Construct version 5.4.4
An agent based modeling framework
|
Class that facilitates conversion to Graph pointers or references. More...
Public Member Functions | |
Graph_Intermediary (Typeless_Graph *_ptr) | |
void | check_ptr () const |
Raises an assertion if Graph_Intermediary::ptr is a nullptr. | |
template<typename T > | |
operator Graph< T > * () | |
Casts a Typeless_Graph pointer to a Graph pointer. More... | |
template<typename T > | |
operator Graph< T > & () | |
Casts a Typeless_Graph pointer to a Graph reference. More... | |
template<typename T > | |
operator const Graph< T > * () const | |
Const version of Graph_Intermediary::operator Graph& | |
template<typename T > | |
operator const Graph< T > & () const | |
Const version of Graph_Intermediary::operator Graph* | |
operator bool () const | |
Returns false if the wrapped pointer is a null pointer, true otherwise. | |
Public Attributes | |
Typeless_Graph * | ptr |
Class that facilitates conversion to Graph pointers or references.
|
inline |
Casts a Typeless_Graph pointer to a Graph reference.
An assertion is raised if the wrapped pointer is a null pointer. An exception is raised if the casted type does not match Typeless_Graph::edge_type.
|
inline |
Casts a Typeless_Graph pointer to a Graph pointer.
An exception is raised if the casted type does not match Typeless_Graph::edge_type.
Typeless_Graph* Graph_Intermediary::ptr |
summary>