Horizon Official Technical Documentation
GridReferenceContainer< OBJECT_TYPES > Class Template Reference

#include <GridReferenceContainer.hpp>

+ Collaboration diagram for GridReferenceContainer< OBJECT_TYPES >:

Public Member Functions

template<class SPECIFIC_TYPE >
size_t count () const
 
size_t count_all () const
 
template<class SPECIFIC_TYPE >
bool insert (SPECIFIC_TYPE *obj)
 inserts a specific object into the container More...
 
GridTypeListContainer< OBJECT_TYPES > & getElements (void)
 
const GridTypeListContainer< OBJECT_TYPES > & getElements (void) const
 

Private Attributes

GridTypeListContainer< OBJECT_TYPES > _elements
 

Member Function Documentation

◆ count()

template<class OBJECT_TYPES >
template<class SPECIFIC_TYPE >
size_t GridReferenceContainer< OBJECT_TYPES >::count ( ) const
inline
153 {
154 return GridTypeListIterator::count(_elements, (SPECIFIC_TYPE *) nullptr);
155 }
GridTypeListContainer< OBJECT_TYPES > _elements
Definition: GridReferenceContainer.hpp:175
size_t count(GridTypeListContainer< SPECIFIC_TYPE > const &elements, SPECIFIC_TYPE *)
Definition: GridReferenceContainer.hpp:100

References GridReferenceContainer< OBJECT_TYPES >::_elements, and GridTypeListIterator::count().

+ Here is the call graph for this function:

◆ count_all()

template<class OBJECT_TYPES >
size_t GridReferenceContainer< OBJECT_TYPES >::count_all ( ) const
inline
158 {
160 }
size_t count_all(GridTypeListContainer< TypeNull > const &elements)
Definition: GridReferenceContainer.hpp:132

References GridReferenceContainer< OBJECT_TYPES >::_elements, and GridTypeListIterator::count_all().

+ Here is the call graph for this function:

◆ getElements() [1/2]

template<class OBJECT_TYPES >
GridTypeListContainer< OBJECT_TYPES > & GridReferenceContainer< OBJECT_TYPES >::getElements ( void  )
inline
171{ return _elements; }

References GridReferenceContainer< OBJECT_TYPES >::_elements.

Referenced by VisitorHelper().

+ Here is the caller graph for this function:

◆ getElements() [2/2]

template<class OBJECT_TYPES >
const GridTypeListContainer< OBJECT_TYPES > & GridReferenceContainer< OBJECT_TYPES >::getElements ( void  ) const
inline

◆ insert()

template<class OBJECT_TYPES >
template<class SPECIFIC_TYPE >
bool GridReferenceContainer< OBJECT_TYPES >::insert ( SPECIFIC_TYPE *  obj)
inline

inserts a specific object into the container

165 {
166 assert(obj && !obj->has_valid_grid_reference());
167 SPECIFIC_TYPE* t = GridTypeListIterator::Insert(_elements, obj);
168 return (t != nullptr);
169 }
SPECIFIC_TYPE * Insert(GridTypeListContainer< SPECIFIC_TYPE > &elements, SPECIFIC_TYPE *obj)
Definition: GridReferenceContainer.hpp:65

References GridReferenceContainer< OBJECT_TYPES >::_elements, and GridTypeListIterator::Insert().

+ Here is the call graph for this function:

Member Data Documentation

◆ _elements


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