The Gaudi Framework  v33r1 (b1225454)
ObjectList< TYPE > Class Template Reference

ObjectList is one of the basic Gaudi container classes capable of being registered in Data Stores. More...

#include <GaudiKernel/ObjectList.h>

Inheritance diagram for ObjectList< TYPE >:
Collaboration diagram for ObjectList< TYPE >:

Public Types

typedef TYPE contained_type
 
typedef std::list< TYPE * >::value_type value_type
 
typedef std::list< TYPE * >::reference reference
 
typedef std::list< TYPE * >::const_reference const_reference
 
typedef std::list< TYPE * >::iterator iterator
 
typedef std::list< TYPE * >::const_iterator const_iterator
 
typedef std::list< TYPE * >::reverse_iterator reverse_iterator
 
typedef std::list< TYPE * >::const_reverse_iterator const_reverse_iterator
 
typedef std::vector< TYPE * >::pointer pointer
 
typedef std::vector< TYPE * >::const_pointer const_pointer
 
- Public Types inherited from ObjectContainerBase
typedef size_t size_type
 size_type, to conform the STL container interface More...
 

Public Member Functions

 ObjectList ()=default
 Constructors. More...
 
 ObjectList (const ObjectList< TYPE > &)=delete
 
ObjectListoperator= (const ObjectList< TYPE > &)=delete
 
 ~ObjectList () override
 Destructor. More...
 
const CLIDclID () const override
 Retrieve pointer to class definition structure. More...
 
ObjectList< TYPE >::iterator begin ()
 Return an iterator pointing to the beginning of the container. More...
 
ObjectList< TYPE >::const_iterator begin () const
 Return a const_iterator pointing to the beginning of the container. More...
 
ObjectList< TYPE >::iterator end ()
 Return an iterator pointing to the end of the container. More...
 
ObjectList< TYPE >::const_iterator end () const
 Return a const_iterator pointing to the end of the container. More...
 
ObjectList< TYPE >::reverse_iterator rbegin ()
 Return a reverse_iterator pointing to the beginning of the reversed container. More...
 
ObjectList< TYPE >::const_reverse_iterator rbegin () const
 Return a const_reverse_iterator pointing to the beginning of the reversed container. More...
 
ObjectList< TYPE >::reverse_iterator rend ()
 Return a reverse_iterator pointing to the end of the reversed container. More...
 
ObjectList< TYPE >::const_reverse_iterator rend () const
 Return a const_reverse_iterator pointing to the end of the reversed container. More...
 
ObjectList< TYPE >::size_type size () const
 Return the size of the container Size means the number of objects stored in the container, independently on the amount of information stored in each object. More...
 
ObjectList< TYPE >::size_type numberOfObjects () const override
 The same as size(), return number of objects in the container. More...
 
ObjectList< TYPE >::size_type max_size () const
 Return the largest possible size of the container. More...
 
bool empty () const
 Return true if the size of the container is 0. More...
 
ObjectList< TYPE >::reference front ()
 Return reference to the first element. More...
 
ObjectList< TYPE >::const_reference front () const
 Return const_reference to the first element. More...
 
ObjectList< TYPE >::reference back ()
 Return reference to the last element. More...
 
ObjectList< TYPE >::const_reference back () const
 Return const_reference to the last element. More...
 
void push_back (typename ObjectList< TYPE >::const_reference value)
 push_back = append = insert a new element at the end of the container More...
 
long add (ContainedObject *pObject) override
 Add an object to the container. More...
 
void pop_back ()
 pop_back = remove the last element from the container The removed object will be deleted (see the method release) More...
 
long remove (ContainedObject *value) override
 Release object from the container (the pointer will be removed from the container, but the object itself will remain alive) (see the method pop_back) More...
 
ObjectList< TYPE >::iterator insert (typename ObjectList< TYPE >::iterator position, typename ObjectList< TYPE >::const_reference value)
 Insert "value" before "position". More...
 
void erase (typename ObjectList< TYPE >::iterator position)
 Erase the object at "position" from the container. The removed object will be deleted. More...
 
void erase (typename ObjectList< TYPE >::iterator first, typename ObjectList< TYPE >::iterator last)
 Erase the range [first, last) from the container. The removed object will be deleted. More...
 
void clear ()
 Clear the entire content of the container and delete all contained objects. More...
 
long index (const ContainedObject *obj) const override
 Return distance of a given object from the beginning of its container It corresponds to the "index" ( from 0 to size()-1 ) If "obj" not fount, return -1. More...
 
const ContainedObjectcontainedObject (long dist) const override
 Return const pointer to an object of a given distance. More...
 
ContainedObjectcontainedObject (long dist) override
 Return const pointer to an object of a given distance. More...
 
std::ostreamfillStream (std::ostream &s) const override
 Fill the output stream (ASCII) More...
 
- Public Member Functions inherited from DataObject
 DataObject ()
 Standard Constructor. More...
 
 DataObject (const DataObject &rhs)
 Copy Constructor. More...
 
DataObjectoperator= (const DataObject &rhs)
 Assignment Operator. More...
 
 DataObject (DataObject &&rhs)
 Move Constructor. More...
 
DataObjectoperator= (DataObject &&rhs)
 Move Assignment Operator. More...
 
virtual ~DataObject ()
 Standard Destructor. More...
 
virtual unsigned long addRef ()
 Add reference to object. More...
 
virtual unsigned long release ()
 release reference to object More...
 
const std::stringname () const
 Retreive DataObject name. It is the name when registered in the store. More...
 
virtual StatusCode update ()
 Provide empty placeholder for internal object reconfiguration callback. More...
 
void setRegistry (IRegistry *pRegistry)
 Set pointer to Registry. More...
 
IRegistryregistry () const
 Get pointer to Registry. More...
 
LinkManagerlinkMgr () const
 Retrieve Link manager. More...
 
unsigned char version () const
 Retrieve version number of this object representation. More...
 
void setVersion (unsigned char vsn)
 Set version number of this object representation. More...
 
unsigned long refCount () const
 Return the refcount. More...
 

Static Public Member Functions

static const CLIDclassID ()
 
- Static Public Member Functions inherited from DataObject
static const CLIDclassID ()
 Retrieve reference to class definition structure (static access) More...
 

Private Attributes

std::list< TYPE * > m_list
 The STL list. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ObjectContainerBase
 ObjectContainerBase ()=default
 Constructor. More...
 
 ObjectContainerBase (ObjectContainerBase &&)=default
 
ObjectContainerBaseoperator= (ObjectContainerBase &&)=default
 
 ~ObjectContainerBase () override=default
 

Detailed Description

template<class TYPE>
class ObjectList< TYPE >

ObjectList is one of the basic Gaudi container classes capable of being registered in Data Stores.

It is based on Standard Library (STL) std::list (see STL Programmer's Guide) ObjectList has all functions of the std::list interface,

Each object is allowed to belong into a single container only. After inserting the object into the container, it takes over all responsibilities for the object. E.g. erasing the object from its container causes removing the object's pointer from the container and deleting the object itself.

Author
Pavel Binko
Pere Mato
Date
19/10/1999, 30/11/2000

Definition at line 24 of file ContainedObject.h.

Member Typedef Documentation

◆ const_iterator

template<class TYPE>
typedef std::list<TYPE*>::const_iterator ObjectList< TYPE >::const_iterator

Definition at line 55 of file ObjectList.h.

◆ const_pointer

template<class TYPE>
typedef std::vector<TYPE*>::const_pointer ObjectList< TYPE >::const_pointer

Definition at line 65 of file ObjectList.h.

◆ const_reference

template<class TYPE>
typedef std::list<TYPE*>::const_reference ObjectList< TYPE >::const_reference

Definition at line 52 of file ObjectList.h.

◆ const_reverse_iterator

template<class TYPE>
typedef std::list<TYPE*>::const_reverse_iterator ObjectList< TYPE >::const_reverse_iterator

Definition at line 58 of file ObjectList.h.

◆ contained_type

template<class TYPE>
typedef TYPE ObjectList< TYPE >::contained_type

Definition at line 48 of file ObjectList.h.

◆ iterator

template<class TYPE>
typedef std::list<TYPE*>::iterator ObjectList< TYPE >::iterator

Definition at line 54 of file ObjectList.h.

◆ pointer

template<class TYPE>
typedef std::vector<TYPE*>::pointer ObjectList< TYPE >::pointer

Definition at line 64 of file ObjectList.h.

◆ reference

template<class TYPE>
typedef std::list<TYPE*>::reference ObjectList< TYPE >::reference

Definition at line 51 of file ObjectList.h.

◆ reverse_iterator

template<class TYPE>
typedef std::list<TYPE*>::reverse_iterator ObjectList< TYPE >::reverse_iterator

Definition at line 57 of file ObjectList.h.

◆ value_type

template<class TYPE>
typedef std::list<TYPE*>::value_type ObjectList< TYPE >::value_type

Definition at line 49 of file ObjectList.h.

Constructor & Destructor Documentation

◆ ObjectList() [1/2]

template<class TYPE>
ObjectList< TYPE >::ObjectList ( )
default

Constructors.

◆ ObjectList() [2/2]

template<class TYPE>
ObjectList< TYPE >::ObjectList ( const ObjectList< TYPE > &  )
delete

◆ ~ObjectList()

template<class TYPE>
ObjectList< TYPE >::~ObjectList ( )
inlineoverride

Destructor.

Definition at line 76 of file ObjectList.h.

76 { clear(); }
void clear()
Clear the entire content of the container and delete all contained objects.
Definition: ObjectList.h:220

Member Function Documentation

◆ add()

template<class TYPE>
long ObjectList< TYPE >::add ( ContainedObject pObject)
inlineoverridevirtual

Add an object to the container.

Implements ObjectContainerBase.

Definition at line 146 of file ObjectList.h.

146  {
147  try {
148  auto ptr = dynamic_cast<typename ObjectList<TYPE>::value_type>( pObject );
149  if ( ptr ) {
150  push_back( ptr );
151  return m_list.size() - 1;
152  }
153  } catch ( ... ) {}
154  return -1;
155  }
std::list< TYPE * >::value_type value_type
Definition: ObjectList.h:49
std::list< TYPE * > m_list
The STL list.
Definition: ObjectList.h:255
T size(T... args)
void push_back(typename ObjectList< TYPE >::const_reference value)
push_back = append = insert a new element at the end of the container
Definition: ObjectList.h:139

◆ back() [1/2]

template<class TYPE>
ObjectList<TYPE>::reference ObjectList< TYPE >::back ( )
inline

Return reference to the last element.

Definition at line 133 of file ObjectList.h.

133 { return m_list.back(); }
std::list< TYPE * > m_list
The STL list.
Definition: ObjectList.h:255
T back(T... args)

◆ back() [2/2]

template<class TYPE>
ObjectList<TYPE>::const_reference ObjectList< TYPE >::back ( ) const
inline

Return const_reference to the last element.

Definition at line 136 of file ObjectList.h.

136 { return m_list.back(); }
std::list< TYPE * > m_list
The STL list.
Definition: ObjectList.h:255
T back(T... args)

◆ begin() [1/2]

template<class TYPE>
ObjectList<TYPE>::iterator ObjectList< TYPE >::begin ( )
inline

Return an iterator pointing to the beginning of the container.

Definition at line 86 of file ObjectList.h.

86 { return m_list.begin(); }
std::list< TYPE * > m_list
The STL list.
Definition: ObjectList.h:255
T begin(T... args)

◆ begin() [2/2]

template<class TYPE>
ObjectList<TYPE>::const_iterator ObjectList< TYPE >::begin ( ) const
inline

Return a const_iterator pointing to the beginning of the container.

Definition at line 89 of file ObjectList.h.

89 { return m_list.begin(); }
std::list< TYPE * > m_list
The STL list.
Definition: ObjectList.h:255
T begin(T... args)

◆ classID()

template<class TYPE>
static const CLID& ObjectList< TYPE >::classID ( )
inlinestatic

Definition at line 80 of file ObjectList.h.

80  {
81  static CLID clid = TYPE::classID() + CLID_ObjectList;
82  return clid;
83  }
unsigned int CLID
Class ID definition.
Definition: ClassID.h:18

◆ clear()

template<class TYPE>
void ObjectList< TYPE >::clear ( )
inline

Clear the entire content of the container and delete all contained objects.

Definition at line 220 of file ObjectList.h.

220 { erase( begin(), end() ); }
ObjectList< TYPE >::iterator begin()
Return an iterator pointing to the beginning of the container.
Definition: ObjectList.h:86
void erase(typename ObjectList< TYPE >::iterator position)
Erase the object at "position" from the container. The removed object will be deleted.
Definition: ObjectList.h:196
ObjectList< TYPE >::iterator end()
Return an iterator pointing to the end of the container.
Definition: ObjectList.h:92

◆ clID()

template<class TYPE>
const CLID& ObjectList< TYPE >::clID ( ) const
inlineoverridevirtual

Retrieve pointer to class definition structure.

Reimplemented from DataObject.

Definition at line 79 of file ObjectList.h.

79 { return ObjectList<TYPE>::classID(); }
static const CLID & classID()
Definition: ObjectList.h:80

◆ containedObject() [1/2]

template<class TYPE>
const ContainedObject* ObjectList< TYPE >::containedObject ( long  dist) const
inlineoverridevirtual

Return const pointer to an object of a given distance.

Implements ObjectContainerBase.

Definition at line 230 of file ObjectList.h.

230  {
231  return dist < size() ? *std::next( begin(), dist ) : nullptr;
232  }
ObjectList< TYPE >::size_type size() const
Return the size of the container Size means the number of objects stored in the container,...
Definition: ObjectList.h:113
T next(T... args)
ObjectList< TYPE >::iterator begin()
Return an iterator pointing to the beginning of the container.
Definition: ObjectList.h:86

◆ containedObject() [2/2]

template<class TYPE>
ContainedObject* ObjectList< TYPE >::containedObject ( long  dist)
inlineoverridevirtual

Return const pointer to an object of a given distance.

Implements ObjectContainerBase.

Definition at line 234 of file ObjectList.h.

234  {
235  return dist < size() ? *std::next( begin(), dist ) : nullptr;
236  }
ObjectList< TYPE >::size_type size() const
Return the size of the container Size means the number of objects stored in the container,...
Definition: ObjectList.h:113
T next(T... args)
ObjectList< TYPE >::iterator begin()
Return an iterator pointing to the beginning of the container.
Definition: ObjectList.h:86

◆ empty()

template<class TYPE>
bool ObjectList< TYPE >::empty ( ) const
inline

Return true if the size of the container is 0.

Definition at line 124 of file ObjectList.h.

124 { return m_list.empty(); }
T empty(T... args)
std::list< TYPE * > m_list
The STL list.
Definition: ObjectList.h:255

◆ end() [1/2]

template<class TYPE>
ObjectList<TYPE>::iterator ObjectList< TYPE >::end ( )
inline

Return an iterator pointing to the end of the container.

Definition at line 92 of file ObjectList.h.

92 { return m_list.end(); }
T end(T... args)
std::list< TYPE * > m_list
The STL list.
Definition: ObjectList.h:255

◆ end() [2/2]

template<class TYPE>
ObjectList<TYPE>::const_iterator ObjectList< TYPE >::end ( ) const
inline

Return a const_iterator pointing to the end of the container.

Definition at line 95 of file ObjectList.h.

95 { return m_list.end(); }
T end(T... args)
std::list< TYPE * > m_list
The STL list.
Definition: ObjectList.h:255

◆ erase() [1/2]

template<class TYPE>
void ObjectList< TYPE >::erase ( typename ObjectList< TYPE >::iterator  position)
inline

Erase the object at "position" from the container. The removed object will be deleted.

Definition at line 196 of file ObjectList.h.

196  {
197  if ( ( *position )->parent() ) {
198  // Set the back pointer to 0 to avoid repetitional searching
199  // for the object in the container, and deleting the object
200  ( *position )->setParent( nullptr );
201  delete *position;
202  }
203  // Removing from the container itself
204  m_list.erase( position );
205  }
T erase(T... args)
std::list< TYPE * > m_list
The STL list.
Definition: ObjectList.h:255

◆ erase() [2/2]

template<class TYPE>
void ObjectList< TYPE >::erase ( typename ObjectList< TYPE >::iterator  first,
typename ObjectList< TYPE >::iterator  last 
)
inline

Erase the range [first, last) from the container. The removed object will be deleted.

Definition at line 208 of file ObjectList.h.

208  {
209  for ( auto iter = first; iter != last; ++iter ) {
210  // Set the back pointer to 0 to avoid repetitional searching
211  // for the object in the container, and deleting the object
212  ( *iter )->setParent( nullptr );
213  delete *iter;
214  }
215  // Removing from the container itself
216  m_list.erase( first, last );
217  }
T erase(T... args)
std::list< TYPE * > m_list
The STL list.
Definition: ObjectList.h:255

◆ fillStream()

template<class TYPE>
std::ostream& ObjectList< TYPE >::fillStream ( std::ostream s) const
inlineoverridevirtual

Fill the output stream (ASCII)

Reimplemented from DataObject.

Definition at line 239 of file ObjectList.h.

239  {
240  s << "class ObjectList : size = " << std::setw( 12 ) << size() << "\n";
241  // Output the base class
242  // ObjectContainerBase::fillStream(s);
243  if ( !empty() ) {
244  s << "\nContents of the STL list :";
245  long count = 0;
246  for ( const auto& iter : m_list ) {
247  s << "\nIndex " << std::setw( 12 ) << count++ << " of object of type " << *iter;
248  }
249  }
250  return s;
251  }
bool empty() const
Return true if the size of the container is 0.
Definition: ObjectList.h:124
ObjectList< TYPE >::size_type size() const
Return the size of the container Size means the number of objects stored in the container,...
Definition: ObjectList.h:113
T setw(T... args)
T count(T... args)
std::list< TYPE * > m_list
The STL list.
Definition: ObjectList.h:255
string s
Definition: gaudirun.py:328

◆ front() [1/2]

template<class TYPE>
ObjectList<TYPE>::reference ObjectList< TYPE >::front ( )
inline

Return reference to the first element.

Definition at line 127 of file ObjectList.h.

127 { return m_list.front(); }
T front(T... args)
std::list< TYPE * > m_list
The STL list.
Definition: ObjectList.h:255

◆ front() [2/2]

template<class TYPE>
ObjectList<TYPE>::const_reference ObjectList< TYPE >::front ( ) const
inline

Return const_reference to the first element.

Definition at line 130 of file ObjectList.h.

130 { return m_list.front(); }
T front(T... args)
std::list< TYPE * > m_list
The STL list.
Definition: ObjectList.h:255

◆ index()

template<class TYPE>
long ObjectList< TYPE >::index ( const ContainedObject obj) const
inlineoverridevirtual

Return distance of a given object from the beginning of its container It corresponds to the "index" ( from 0 to size()-1 ) If "obj" not fount, return -1.

Implements ObjectContainerBase.

Definition at line 224 of file ObjectList.h.

224  {
225  auto i = std::find_if( begin(), end(), [&]( const ContainedObject* o ) { return o == obj; } );
226  return i != end() ? std::distance( begin(), i ) : -1;
227  }
T distance(T... args)
ObjectList< TYPE >::iterator begin()
Return an iterator pointing to the beginning of the container.
Definition: ObjectList.h:86
All classes that their objects may be contained in an LHCb ObjectContainer (e.g.
T find_if(T... args)
ObjectList< TYPE >::iterator end()
Return an iterator pointing to the end of the container.
Definition: ObjectList.h:92

◆ insert()

template<class TYPE>
ObjectList<TYPE>::iterator ObjectList< TYPE >::insert ( typename ObjectList< TYPE >::iterator  position,
typename ObjectList< TYPE >::const_reference  value 
)
inline

Insert "value" before "position".

Definition at line 189 of file ObjectList.h.

190  {
191  value->setParent( this );
192  return m_list.insert( position, value );
193  }
std::list< TYPE * > m_list
The STL list.
Definition: ObjectList.h:255
T insert(T... args)

◆ max_size()

template<class TYPE>
ObjectList<TYPE>::size_type ObjectList< TYPE >::max_size ( ) const
inline

Return the largest possible size of the container.

Definition at line 121 of file ObjectList.h.

121 { return m_list.max_size(); }
std::list< TYPE * > m_list
The STL list.
Definition: ObjectList.h:255
T max_size(T... args)

◆ numberOfObjects()

template<class TYPE>
ObjectList<TYPE>::size_type ObjectList< TYPE >::numberOfObjects ( ) const
inlineoverridevirtual

The same as size(), return number of objects in the container.

Implements ObjectContainerBase.

Definition at line 118 of file ObjectList.h.

118 { return m_list.size(); }
std::list< TYPE * > m_list
The STL list.
Definition: ObjectList.h:255
T size(T... args)

◆ operator=()

template<class TYPE>
ObjectList& ObjectList< TYPE >::operator= ( const ObjectList< TYPE > &  )
delete

◆ pop_back()

template<class TYPE>
void ObjectList< TYPE >::pop_back ( )
inline

pop_back = remove the last element from the container The removed object will be deleted (see the method release)

Definition at line 159 of file ObjectList.h.

159  {
160  auto position = m_list.back();
161  // Set the back pointer to 0 to avoid repetitional searching
162  // for the object in the container, and deleting the object
163  position->setParent( nullptr );
164  delete position;
165  // Removing from the container itself
166  m_list.pop_back();
167  }
T pop_back(T... args)
std::list< TYPE * > m_list
The STL list.
Definition: ObjectList.h:255
T back(T... args)

◆ push_back()

template<class TYPE>
void ObjectList< TYPE >::push_back ( typename ObjectList< TYPE >::const_reference  value)
inline

push_back = append = insert a new element at the end of the container

Definition at line 139 of file ObjectList.h.

139  {
140  if ( value->parent() ) { const_cast<ObjectContainerBase*>( value->parent() )->remove( value ); }
141  value->setParent( this );
142  m_list.push_back( value );
143  }
T push_back(T... args)
std::list< TYPE * > m_list
The STL list.
Definition: ObjectList.h:255
long remove(ContainedObject *value) override
Release object from the container (the pointer will be removed from the container,...
Definition: ObjectList.h:171

◆ rbegin() [1/2]

template<class TYPE>
ObjectList<TYPE>::reverse_iterator ObjectList< TYPE >::rbegin ( )
inline

Return a reverse_iterator pointing to the beginning of the reversed container.

Definition at line 99 of file ObjectList.h.

99 { return m_list.rbegin(); }
std::list< TYPE * > m_list
The STL list.
Definition: ObjectList.h:255
T rbegin(T... args)

◆ rbegin() [2/2]

template<class TYPE>
ObjectList<TYPE>::const_reverse_iterator ObjectList< TYPE >::rbegin ( ) const
inline

Return a const_reverse_iterator pointing to the beginning of the reversed container.

Definition at line 102 of file ObjectList.h.

102 { return m_list.rbegin(); }
std::list< TYPE * > m_list
The STL list.
Definition: ObjectList.h:255
T rbegin(T... args)

◆ remove()

template<class TYPE>
long ObjectList< TYPE >::remove ( ContainedObject value)
inlineoverridevirtual

Release object from the container (the pointer will be removed from the container, but the object itself will remain alive) (see the method pop_back)

Implements ObjectContainerBase.

Definition at line 171 of file ObjectList.h.

171  {
172  // Find the object of value value
173  long idx = 0;
174  auto iter = std::find_if( begin(), end(), [&]( const ContainedObject* i ) { return i == value; } );
175  if ( iter == end() ) {
176  // Object cannot be released from the container,
177  // as it is not contained in it
178  return -1;
179  }
180 
181  // Set the back pointer to 0 to avoid repetitional searching
182  // for the object in the container and deleting the object
183  ( *iter )->setParent( nullptr );
184  erase( iter );
185  return idx;
186  }
ObjectList< TYPE >::iterator begin()
Return an iterator pointing to the beginning of the container.
Definition: ObjectList.h:86
All classes that their objects may be contained in an LHCb ObjectContainer (e.g.
T find_if(T... args)
void erase(typename ObjectList< TYPE >::iterator position)
Erase the object at "position" from the container. The removed object will be deleted.
Definition: ObjectList.h:196
ObjectList< TYPE >::iterator end()
Return an iterator pointing to the end of the container.
Definition: ObjectList.h:92

◆ rend() [1/2]

template<class TYPE>
ObjectList<TYPE>::reverse_iterator ObjectList< TYPE >::rend ( )
inline

Return a reverse_iterator pointing to the end of the reversed container.

Definition at line 105 of file ObjectList.h.

105 { return m_list.rend(); }
T rend(T... args)
std::list< TYPE * > m_list
The STL list.
Definition: ObjectList.h:255

◆ rend() [2/2]

template<class TYPE>
ObjectList<TYPE>::const_reverse_iterator ObjectList< TYPE >::rend ( ) const
inline

Return a const_reverse_iterator pointing to the end of the reversed container.

Definition at line 108 of file ObjectList.h.

108 { return m_list.rend(); }
T rend(T... args)
std::list< TYPE * > m_list
The STL list.
Definition: ObjectList.h:255

◆ size()

template<class TYPE>
ObjectList<TYPE>::size_type ObjectList< TYPE >::size ( ) const
inline

Return the size of the container Size means the number of objects stored in the container, independently on the amount of information stored in each object.

Definition at line 113 of file ObjectList.h.

113  {
114  // C++11: std::list::size is constant (pre C++11 it could be linear!)
115  return m_list.size();
116  }
std::list< TYPE * > m_list
The STL list.
Definition: ObjectList.h:255
T size(T... args)

Member Data Documentation

◆ m_list

template<class TYPE>
std::list<TYPE*> ObjectList< TYPE >::m_list
private

The STL list.

Definition at line 255 of file ObjectList.h.


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