Orxonox  0.0.5 Codename: Arcturus
Public Types | Public Member Functions | Private Attributes | List of all members
orxonox::ObjectList< T > Class Template Reference

The ObjectList contains all objects of the given class. More...

#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/core/CorePrereqs.h>

Public Types

typedef ObjectListIterator< T > iterator
 

Public Member Functions

 ObjectList ()
 
 ObjectList (Context *context)
 
 ObjectList (ObjectListBase *list)
 
ObjectListIterator< T > begin ()
 Returns an Iterator to the first element in the list. More...
 
ObjectListIterator< T > end ()
 Returns an Iterator to the element after the last element in the list. More...
 
ObjectListIterator< T > rbegin ()
 Returns an Iterator to the last element in the list. More...
 
ObjectListIterator< T > rend ()
 Returns an Iterator to the element before the first element in the list. More...
 
size_t size ()
 Returns the size of the list. More...
 

Private Attributes

ObjectListBaselist_
 

Detailed Description

template<class T>
class orxonox::ObjectList< T >

The ObjectList contains all objects of the given class.

Wraps the ObjectListBase which contains all objects of type T. Use ObjectListIterator<T> or its typedef ObjectList<T>::iterator to iterate through all objects in the list.

Member Typedef Documentation

template<class T>
typedef ObjectListIterator<T> orxonox::ObjectList< T >::iterator

Constructor & Destructor Documentation

template<class T>
orxonox::ObjectList< T >::ObjectList ( )
inline
template<class T>
orxonox::ObjectList< T >::ObjectList ( Context context)
inline
template<class T>
orxonox::ObjectList< T >::ObjectList ( ObjectListBase list)
inline

Member Function Documentation

template<class T>
ObjectListIterator<T> orxonox::ObjectList< T >::begin ( )
inline

Returns an Iterator to the first element in the list.

template<class T>
ObjectListIterator<T> orxonox::ObjectList< T >::end ( )
inline

Returns an Iterator to the element after the last element in the list.

template<class T>
ObjectListIterator<T> orxonox::ObjectList< T >::rbegin ( )
inline

Returns an Iterator to the last element in the list.

template<class T>
ObjectListIterator<T> orxonox::ObjectList< T >::rend ( )
inline

Returns an Iterator to the element before the first element in the list.

template<class T>
size_t orxonox::ObjectList< T >::size ( )
inline

Returns the size of the list.

Member Data Documentation

template<class T>
ObjectListBase* orxonox::ObjectList< T >::list_
private

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