Construct version 5.4.4
An agent based modeling framework
Graph_Intermediary Struct Reference

Class that facilitates conversion to Graph pointers or references. More...

Collaboration diagram for Graph_Intermediary:

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_Graphptr
 

Detailed Description

Class that facilitates conversion to Graph pointers or references.

Member Function Documentation

◆ operator Graph< T > &()

template<typename T >
Graph_Intermediary::operator Graph< T > & ( )
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.

◆ operator Graph< T > *()

template<typename T >
Graph_Intermediary::operator Graph< T > * ( )
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.

Member Data Documentation

◆ ptr

Typeless_Graph* Graph_Intermediary::ptr

summary>