Horizon Official Technical Documentation
Horizon::Zone::GridObject< T > Class Template Reference

#include <GridObject.hpp>

+ Collaboration diagram for Horizon::Zone::GridObject< T >:

Public Member Functions

virtual ~GridObject ()
 
bool has_valid_grid_reference () const
 
void add_grid_reference (GridRefManager< T > &m)
 
void remove_grid_reference ()
 
GridReference< T > & get_reference ()
 

Private Attributes

GridReference< T > _ref
 

Constructor & Destructor Documentation

◆ ~GridObject()

template<class T >
virtual Horizon::Zone::GridObject< T >::~GridObject ( )
inlinevirtual
44{ }

Member Function Documentation

◆ add_grid_reference()

template<class T >
void Horizon::Zone::GridObject< T >::add_grid_reference ( GridRefManager< T > &  m)
inline
47{ assert(!has_valid_grid_reference()); _ref.link(&m, (T*) this); }
void link(TO *toObj, FROM *fromObj)
Links the Reference to the specified object by adding it to the front of the list.
Definition: Reference.hpp:49
GridReference< T > _ref
Definition: GridObject.hpp:53
bool has_valid_grid_reference() const
Definition: GridObject.hpp:46

References Horizon::Zone::GridObject< T >::_ref, Horizon::Zone::GridObject< T >::has_valid_grid_reference(), and Horizon::Structures::LinkedList::Reference< TO, FROM >::link().

+ Here is the call graph for this function:

◆ get_reference()

template<class T >
GridReference< T > & Horizon::Zone::GridObject< T >::get_reference ( )
inline
50{ return _ref; }

References Horizon::Zone::GridObject< T >::_ref.

◆ has_valid_grid_reference()

template<class T >
bool Horizon::Zone::GridObject< T >::has_valid_grid_reference ( ) const
inline
46{ return _ref.is_valid(); }
bool is_valid() const
Definition: Reference.hpp:84

References Horizon::Zone::GridObject< T >::_ref, and Horizon::Structures::LinkedList::Reference< TO, FROM >::is_valid().

Referenced by Horizon::Zone::GridObject< T >::add_grid_reference(), and Horizon::Zone::GridObject< T >::remove_grid_reference().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ remove_grid_reference()

template<class T >
void Horizon::Zone::GridObject< T >::remove_grid_reference ( )
inline

Member Data Documentation

◆ _ref


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