Horizon Official Technical Documentation
TypeRefContainer< OBJECT_TYPES > Class Template Reference
+ Collaboration diagram for TypeRefContainer< 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...
 
ContainerMapList< OBJECT_TYPES > & get_elements (void)
 
const ContainerMapList< OBJECT_TYPES > & get_elements (void) const
 

Private Attributes

ContainerMapList< OBJECT_TYPES > _elements
 

Member Function Documentation

◆ count()

template<class OBJECT_TYPES >
template<class SPECIFIC_TYPE >
size_t TypeRefContainer< OBJECT_TYPES >::count ( ) const
inline
267 {
268 return TypeListIterator::count(_elements, (SPECIFIC_TYPE *) nullptr);
269 }
ContainerMapList< OBJECT_TYPES > _elements
Definition: ReferenceTypeListTest.cpp:289
size_t count(ContainerMapList< SPECIFIC_TYPE > const &elements, SPECIFIC_TYPE *)
Definition: ReferenceTypeListTest.cpp:213

References TypeRefContainer< OBJECT_TYPES >::_elements, and TypeListIterator::count().

Referenced by BOOST_AUTO_TEST_CASE(), and print_count().

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

◆ count_all()

template<class OBJECT_TYPES >
size_t TypeRefContainer< OBJECT_TYPES >::count_all ( ) const
inline
272 {
274 }
size_t count_all(ContainerMapList< TypeNull > const &elements)
Definition: ReferenceTypeListTest.cpp:245

References TypeRefContainer< OBJECT_TYPES >::_elements, and TypeListIterator::count_all().

Referenced by print_count().

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

◆ get_elements() [1/2]

template<class OBJECT_TYPES >
ContainerMapList< OBJECT_TYPES > & TypeRefContainer< OBJECT_TYPES >::get_elements ( void  )
inline
285{ return _elements; }

References TypeRefContainer< OBJECT_TYPES >::_elements.

Referenced by VisitorHelper().

+ Here is the caller graph for this function:

◆ get_elements() [2/2]

template<class OBJECT_TYPES >
const ContainerMapList< OBJECT_TYPES > & TypeRefContainer< OBJECT_TYPES >::get_elements ( void  ) const
inline

◆ insert()

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

inserts a specific object into the container

279 {
280 assert(!obj->is_valid());
281 SPECIFIC_TYPE* t = TypeListIterator::Insert(_elements, obj);
282 return (t != nullptr);
283 }
SPECIFIC_TYPE * Insert(ContainerMapList< SPECIFIC_TYPE > &elements, SPECIFIC_TYPE *obj)
Definition: ReferenceTypeListTest.cpp:178

References TypeRefContainer< OBJECT_TYPES >::_elements, and TypeListIterator::Insert().

+ Here is the call graph for this function:

Member Data Documentation

◆ _elements


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