Construct version 5.3.9
An agent based modeling framework
Graph_Intermediary Class Reference

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

Public Member Functions

 Graph_Intermediary (Typeless_Graph *_ptr)
 
void check_ptr () const
 
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.
 

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.