The Gaudi Framework  master (37c0b60a)
KeyedContainer.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #ifndef GAUDIKERNEL_KEYEDCONTAINER_H
12 #define GAUDIKERNEL_KEYEDCONTAINER_H
13 
14 // Include files
15 #include <algorithm>
16 #include <iterator>
17 
18 namespace GaudiDict {
19  template <class T>
21 }
22 
23 // Framework include files
27 
28 // Forward declarations
29 // template <class T, class M> class KeyedContainer;
30 
31 #ifdef WIN32
32 # define FORCE_INLINE __forceinline
33 #else
34 # define FORCE_INLINE inline
35 #endif
36 
73 template <class DATATYPE, class MAPPING = Containers::HashMap>
75  friend struct GaudiDict::KeyedContainerDict<DATATYPE>;
76 
77 public:
79  typedef DATATYPE contained_type;
81  typedef MAPPING container_type;
82 
89  typedef typename std::vector<contained_type*> seq_type;
94  typedef typename seq_type::value_type value_type;
96  typedef typename seq_type::reference reference;
98  typedef typename seq_type::const_reference const_reference;
100  typedef typename seq_type::iterator iterator;
102  typedef typename seq_type::const_iterator const_iterator;
104  typedef typename seq_type::reverse_iterator reverse_iterator;
108  typedef typename seq_type::const_reverse_iterator const_reverse_iterator;
110 private:
115 
119  container_type m_cont;
125 
127 #ifdef CHECK_KEYED_CONTAINER
128  value_type i_object( const key_type& k ) const {
129  if ( 0 == m_cont.isDirect() ) {
130  if ( traits::checkBounds( m_random, k ) ) {
131  value_type p = *( m_random->begin() + traits::hash( k ) );
132  if ( traits::checkKey( p, k ) ) { return p; }
133  }
134  return 0;
135  }
136  value_type p = value_type( m_cont.object( traits::hash( k ) ) );
137  return traits::checkKey( p, k ) ? p : 0;
138  }
139 #else
141  return 0 == m_cont.isDirect() ? value_type( *( m_random->begin() + traits::hash( k ) ) )
142  : value_type( m_cont.object( traits::hash( k ) ) );
143  }
144 #endif
145  long i_erase( const_reference v, const key_type& k ) {
147  value_type p = value_type( m_cont.erase( traits::hash( k ), v ) );
148  if ( p ) {
149  if ( p->parent() == this ) { p->setParent( 0 ); }
150  }
151  return traits::release( p ) <= 0 ? (long)Containers::OBJ_ERASED : (long)Containers::OBJ_DELETED;
152  }
153 
155  struct _InsertRelease {
158  void operator()( value_type p ) {
159  m_obj->insert( p );
160  traits::release( p );
161  }
162  };
163 
165  struct _RemoveRelease {
167  _RemoveRelease( ObjectContainerBase* p ) : m_obj( p ) {}
168  void operator()( value_type p ) {
169  const ObjectContainerBase* par = p->parent();
170  if ( par == m_obj ) { p->setParent( 0 ); }
171  traits::release( p );
172  }
173  };
175 
176 public:
180  KeyedContainer( void ) {
182  // avoid problems with strict-aliasing rules
183  seq_type** rptr = &m_random;
184  seq_type* sptr = &m_sequential;
185  m_cont.setup( (void*)sptr, (void**)rptr );
186  }
188  : ObjectContainerBase( std::move( other ) )
189  , m_cont( std::move( other.m_cont ) )
190  , m_sequential( std::move( other.m_sequential ) ) {
191  m_cont.setup( (void*)&m_sequential, (void**)&m_random );
192  std::for_each( begin(), end(), [this]( ContainedObject* obj ) { obj->setParent( this ); } );
193 
194  other.m_cont.setup( (void*)&other.m_sequential, (void**)&other.m_random );
195  }
196  KeyedContainer( const KeyedContainer& ) = delete;
198  ~KeyedContainer() override;
200 
206  const CLID& clID() const override { return this->classID(); }
209  static const CLID& classID() {
210  static CLID clid = contained_type::classID() + container_type::classID();
211  return clid;
212  }
214 
231  size_type numberOfObjects() const override { return m_sequential.size(); }
244  long add( ContainedObject* pObject ) override;
245 
258  long remove( ContainedObject* pObject ) override;
259 
263  ContainedObject* containedObject( long key_value ) override { return i_object( traits::makeKey( key_value ) ); }
264  ContainedObject const* containedObject( long key_value ) const override {
265  return i_object( traits::makeKey( key_value ) );
266  }
270  long index( const ContainedObject* p ) const override;
278 
284  size_type size() const { return m_sequential.size(); }
287  bool empty() const { return m_sequential.empty(); }
289  void reserve( size_type value ) { m_cont.reserve( value ); }
291  void clear() { erase( begin(), end() ); }
302  StatusCode update() override;
304 
318  iterator begin() { return m_sequential.begin(); }
321  const_iterator begin() const { return m_sequential.begin(); }
323  iterator end() { return m_sequential.end(); }
325  const_iterator end() const { return m_sequential.end(); }
327  reverse_iterator rbegin() { return m_sequential.rbegin(); }
329  const_reverse_iterator rbegin() const { return m_sequential.rbegin(); }
331  reverse_iterator rend() { return m_sequential.rend(); }
333  const_reverse_iterator rend() const { return m_sequential.rend(); }
335 
353  value_type object( const key_type& kval ) const { return i_object( kval ); }
354 
364  value_type operator()( const key_type& kval ) const { return i_object( kval ); }
366 
389  long erase( const key_type& kval ) { return i_erase( 0, kval ); }
390 
411  long erase( const value_type val ) { return ( val ) ? i_erase( val, val->key() ) : (long)Containers::OBJ_NOT_FOUND; }
412 
433  long erase( iterator pos ) { return erase( *pos ); }
434 
443  void erase( iterator pos_start, iterator pos_stop, bool use_temp = false );
444 
463  const key_type& insert( const value_type val, const key_type& kval );
464 
486  const key_type& insert( const value_type val );
488 };
489 
497 // Destructor
498 template <class DATATYPE, class MAPPING>
500  clear();
501  m_cont.clear();
502 }
503 
504 // Configure direct access
505 template <class DATATYPE, class MAPPING>
507  int count = 0;
508  m_cont.clearDirect();
509  for ( typename seq_type::value_type v : m_sequential ) {
510  if ( v ) {
511  if ( !v->hasKey() ) {
512  traits::setKey( v, v->key() );
513  traits::addRef( v );
514  }
515  long k0 = traits::hash( v->key() );
516  if ( m_cont.insertDirect( this, v, v, k0 ) == Containers::OBJ_INSERTED ) {}
517  } else {
518  ++count;
519  }
520  }
521  if ( count > 0 ) { Containers::cannotInsertToContainer(); }
522  return StatusCode::SUCCESS;
523 }
524 
525 // Retrieve the full content of the object container by reference.
526 template <class DATATYPE, class MAPPING>
528  return (const std::vector<const ContainedObject*>*)( ( 0 == m_cont.isDirect() ) ? m_random : &m_sequential );
529 }
530 
531 template <class DATATYPE, class MAPPING>
532 inline const typename KeyedContainer<DATATYPE, MAPPING>::key_type&
534  if ( val ) {
535  long k0 = traits::hash( kval );
536  if ( !val->hasKey() || ( traits::hash( val->key() ) == k0 ) ) {
537  if ( m_cont.insert( this, val, val, k0 ) == Containers::OBJ_INSERTED ) {
538  if ( !val->hasKey() ) traits::setKey( val, kval );
539  traits::addRef( val );
540  return val->key();
541  }
542  }
543  }
544  // Cannot insert object...indicate bad object insertion...
546  return val->key();
547 }
548 
549 // Insert object
550 template <class DATATYPE, class MAPPING> // inline
553  if ( 0 != val ) {
554  if ( val->hasKey() ) {
555  if ( m_cont.insert( this, val, val, traits::hash( val->key() ) ) == Containers::OBJ_INSERTED ) {
556  traits::addRef( val );
557  return val->key();
558  }
559  }
560  long k0;
561  if ( m_cont.insert( this, val, val, &k0 ) == Containers::OBJ_INSERTED ) {
562  traits::setKey( val, traits::makeKey( k0 ) );
563  traits::addRef( val );
564  return val->key();
565  }
566  }
567  // Cannot insert object...indicate bad object insertion...
569  return val->key();
570 }
571 
572 template <class DATATYPE, class MAPPING>
574  const contained_type* ptr = dynamic_cast<const contained_type*>( p );
575  if ( ptr ) return traits::identifier( ptr->key() );
576  return -1;
577 }
578 
579 // Retrieve the full content of the object container.
580 template <class DATATYPE, class MAPPING>
583  vec.clear();
584  vec.reserve( size() );
585  for ( typename seq_type::value_type v : m_sequential ) {
586  ContainedObject* p = const_cast<typename seq_type::value_type>( v );
587  vec.push_back( p );
588  }
589  return vec.size();
590 }
591 
592 // ObjectContainerBase overload: Add an object to the container.
593 template <class DATATYPE, class MAPPING>
595  return traits::identifier( insert( dynamic_cast<typename seq_type::value_type>( pObject ) ) );
596 }
597 
598 // ObjectContainerBase overload: Remove an object from the container.
599 template <class DATATYPE, class MAPPING>
601  contained_type* p1 = dynamic_cast<contained_type*>( p );
602  if ( p1 ) { // Normal case; object still fully intact
603  return this->erase( p1 );
604  } else if ( p ) {
605  const ObjectContainerBase* par = p->parent();
606  // The following should never occur: object is in a funny state,
607  // Because the parent was explicitly set to NULL in the
608  // KeyeObject destructor.
609  // - It cannot be a KeyedObject: It would not have a parent
610  // - Still the parent is present: We are not in the destructor
611  // of KeyedObject
613  return m_cont.erase( 0, p ) == 0 ? (long)Containers::OBJ_ERASED : (long)Containers::OBJ_NOT_FOUND;
614  }
615  return (long)Containers::OBJ_NOT_FOUND;
616 }
617 
618 template <class DATATYPE, class MAPPING>
619 inline void KeyedContainer<DATATYPE, MAPPING>::erase( iterator start_pos, iterator stop_pos, bool use_tmp ) {
620  bool is_start = start_pos == m_sequential.begin();
621  bool is_stop = stop_pos == m_sequential.end();
622  if ( is_start && is_stop ) {
623  // Nothing special. Taken care of by Keyed object manager
624  } else if ( is_start || is_stop || use_tmp ) {
625  std::vector<DATATYPE*> tmp( m_sequential.begin(), start_pos );
626  tmp.insert( tmp.end(), stop_pos, m_sequential.end() );
627  std::for_each( tmp.begin(), tmp.end(), traits::addRef );
628  this->erase( m_sequential.begin(), m_sequential.end() );
629  std::for_each( tmp.begin(), tmp.end(), _InsertRelease( this ) );
630  return;
631  }
632  std::for_each( start_pos, stop_pos, _RemoveRelease( this ) );
633  seq_type* sptr = &m_sequential; // avoid problems with strict-aliasing rules
635  std::vector<void*>::iterator i1 = v->begin() + std::distance( m_sequential.begin(), start_pos );
636  std::vector<void*>::iterator i2 = v->begin() + std::distance( m_sequential.begin(), stop_pos );
637  m_cont.erase( i1, i2 ); // cppcheck-suppress iterators1
638 }
639 
640 #undef FORCE_INLINE
641 #endif // GAUDIKERNEL_KEYEDCONTAINER_H
KeyedContainer::erase
long erase(const key_type &kval)
Remove/erase object (identified by key) from the container.
Definition: KeyedContainer.h:389
KeyedContainer::empty
bool empty() const
For consistency with STL: check if container is empty.
Definition: KeyedContainer.h:287
Containers::OBJ_ERASED
@ OBJ_ERASED
Object was removed, but not deleted
Definition: KeyedTraits.h:35
KeyedContainer::end
iterator end()
Retrieve terminating iterator.
Definition: KeyedContainer.h:323
Containers::cannotInsertToContainer
GAUDI_API void cannotInsertToContainer()
Function to be called to indicate that an object cannot be inserted to the container.
Definition: KeyedObjectManager.cpp:83
Containers::KeyedObjectManager
KeyedObjectManager Class to manage keyed objects.
Definition: KeyedObjectManager.h:55
std::for_each
T for_each(T... args)
KeyedContainer::containedObject
ContainedObject * containedObject(long key_value) override
ObjectContainerBase overload: Retrieve the object by reference given the long integer representation ...
Definition: KeyedContainer.h:263
Containers::OBJ_INSERTED
@ OBJ_INSERTED
Object was inserted into the container.
Definition: KeyedTraits.h:36
KeyedObjectManager.h
details::size
constexpr auto size(const T &, Args &&...) noexcept
Definition: AnyDataWrapper.h:23
Containers::KeyedObjectManager::insertDirect
long insertDirect(ObjectContainerBase *b, ContainedObject *c, void *o, long k)
Insert element into direct access map.
Definition: KeyedObjectManager.cpp:176
KeyedContainer::key_type
contained_type::key_type key_type
Definition of the key type: re-use definition of contained type.
Definition: KeyedContainer.h:92
KeyedContainer::m_random
seq_type * m_random
Array to allow random access to objects (not exposed)
Definition: KeyedContainer.h:124
KeyedContainer::const_iterator
seq_type::const_iterator const_iterator
Sequential access: const iterator type used in sequential container.
Definition: KeyedContainer.h:102
std::vector::reserve
T reserve(T... args)
KeyedContainer::update
StatusCode update() override
Reconfigure direct access to elements (Needed by POOL data loading) This function reuses the "update"...
Definition: KeyedContainer.h:506
KeyedContainer::begin
const_iterator begin() const
Retrieve start const iterator.
Definition: KeyedContainer.h:321
std::vector< contained_type * >
std::vector::size
T size(T... args)
KeyedContainer::rend
reverse_iterator rend()
reverse_iterator pointing to the end of the reversed container
Definition: KeyedContainer.h:331
KeyedContainer::operator()
value_type operator()(const key_type &kval) const
STL algorithms support for object access.
Definition: KeyedContainer.h:364
KeyedContainer::const_reverse_iterator
seq_type::const_reverse_iterator const_reverse_iterator
Sequential access: const reverse iterator type used in sequential container.
Definition: KeyedContainer.h:108
Containers::KeyedObjectManager::insert
long insert(ObjectContainerBase *b, ContainedObject *c, void *o, long *k)
Insert new object into container.
Definition: KeyedObjectManager.cpp:143
Containers::KeyedObjectManager::clearDirect
void clearDirect()
Clear all direct access fields.
Definition: KeyedObjectManager.cpp:251
std::distance
T distance(T... args)
conf.release
string release
Definition: conf.py:27
KeyedContainer::_RemoveRelease::operator()
void operator()(value_type p)
Definition: KeyedContainer.h:168
KeyedObject.h
KeyedContainer::value_type
seq_type::value_type value_type
Sequential access: definition of type stored in sequential container.
Definition: KeyedContainer.h:94
KeyedContainer::containedObject
ContainedObject const * containedObject(long key_value) const override
Pointer to an object of a given distance.
Definition: KeyedContainer.h:264
Containers::invalidContainerOperation
GAUDI_API void invalidContainerOperation()
Function to be called to indicate that an operation should be performed on the container or it's cont...
Definition: KeyedObjectManager.cpp:92
KeyedContainer::_RemoveRelease
Internal functor for insertion of objects.
Definition: KeyedContainer.h:165
std::vector::clear
T clear(T... args)
KeyedContainer::reserve
void reserve(size_type value)
Reserve place for "value" objects in the container.
Definition: KeyedContainer.h:289
KeyedContainer::_InsertRelease::operator()
void operator()(value_type p)
Definition: KeyedContainer.h:158
KeyedContainer::clear
void clear()
Clear the entire content and erase the objects from the container.
Definition: KeyedContainer.h:291
std::vector::push_back
T push_back(T... args)
compareOutputFiles.par
par
Definition: compareOutputFiles.py:477
KeyedContainer::_InsertRelease::m_obj
KeyedContainer< DATATYPE, MAPPING > * m_obj
Definition: KeyedContainer.h:156
KeyedContainer::add
long add(ContainedObject *pObject) override
ObjectContainerBase overload: Add an object to the container.
Definition: KeyedContainer.h:594
Containers::KeyedObjectManager::object
void * object(long key) const
Retrieve object identified by a key from the container.
Definition: KeyedObjectManager.cpp:223
KeyedContainer::container_type
MAPPING container_type
Definition of the implementing container type.
Definition: KeyedContainer.h:81
Gaudi::Utils::begin
AttribStringParser::Iterator begin(const AttribStringParser &parser)
Definition: AttribStringParser.h:136
KeyedContainer::_RemoveRelease::m_obj
ObjectContainerBase * m_obj
Definition: KeyedContainer.h:166
KeyedContainer::object
value_type object(const key_type &kval) const
Object access by key.
Definition: KeyedContainer.h:353
StatusCode
Definition: StatusCode.h:65
KeyedContainer::contained_type
DATATYPE contained_type
Definition of the contained object type.
Definition: KeyedContainer.h:79
KeyedContainer::erase
long erase(const value_type val)
Remove/erase object (identified by pointer value) from the container.
Definition: KeyedContainer.h:411
Containers::OBJ_DELETED
@ OBJ_DELETED
Object was removed from the container and deleted.
Definition: KeyedTraits.h:34
KeyedContainer::const_reference
seq_type::const_reference const_reference
Sequential access: const reference type used in sequential container.
Definition: KeyedContainer.h:98
AlgSequencer.p1
p1
Definition: AlgSequencer.py:29
Containers::OBJ_NOT_FOUND
@ OBJ_NOT_FOUND
Object not present in the container.
Definition: KeyedTraits.h:33
ObjectContainerBase::size_type
size_t size_type
size_type, to conform the STL container interface
Definition: ObjectContainerBase.h:40
KeyedContainer
template class KeyedContainer, KeyedContainer.h
Definition: KeyedContainer.h:74
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:18
KeyedContainer::rbegin
reverse_iterator rbegin()
reverse_iterator returns the beginning of the reversed container
Definition: KeyedContainer.h:327
KeyedContainer::insert
const key_type & insert(const value_type val, const key_type &kval)
Insert entry to the container with a valid key.
Definition: KeyedContainer.h:533
GaudiDict::KeyedContainerDict
Definition: KeyedContainer.h:20
KeyedContainer::iterator
seq_type::iterator iterator
Sequential access: iterator type used in sequential container.
Definition: KeyedContainer.h:100
Containers::KeyedObjectManager::erase
void * erase(long key, const void *obj)
Remove object from container (very inefficient if key is invalid)
Definition: KeyedObjectManager.cpp:201
std::vector::rend
T rend(T... args)
KeyedContainer::classID
static const CLID & classID()
Retrieve class ID.
Definition: KeyedContainer.h:209
ContainedObject::parent
const ObjectContainerBase * parent() const
Access to parent object.
Definition: ContainedObject.h:63
KeyedObject< int >::key_type
int key_type
Definition of the key-type to access object.
Definition: KeyedObject.h:44
KeyedContainer::KeyedContainer
KeyedContainer(const KeyedContainer &)=delete
Containers::KeyedObjectManager::reserve
void reserve(long size)
Reserve buffer space.
Definition: KeyedObjectManager.cpp:231
KeyedContainer::_InsertRelease::_InsertRelease
_InsertRelease(KeyedContainer< DATATYPE, MAPPING > *p)
Definition: KeyedContainer.h:157
KeyedContainer::end
const_iterator end() const
Retrieve terminating const iterator.
Definition: KeyedContainer.h:325
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition: StatusCode.h:100
KeyedContainer::index
long index(const ContainedObject *p) const override
ObjectContainerBase overload: Retrieve the full long integer representation of the object's key from ...
Definition: KeyedContainer.h:573
ContainedObject::setParent
void setParent(ObjectContainerBase *value)
Update parent member.
Definition: ContainedObject.h:65
KeyedContainer::_RemoveRelease::_RemoveRelease
_RemoveRelease(ObjectContainerBase *p)
Definition: KeyedContainer.h:167
ObjectContainerBase
Definition: ObjectContainerBase.h:29
std::vector::begin
T begin(T... args)
KeyedContainer::containedObjects
virtual const std::vector< const ContainedObject * > * containedObjects() const
Retrieve the full content of the object container by reference.
Definition: KeyedContainer.h:527
GaudiDict
Definition: KeyedContainer.h:18
std
STL namespace.
KeyedContainer::_InsertRelease
Internal functor for insertion of objects.
Definition: KeyedContainer.h:155
std::vector::insert
T insert(T... args)
KeyedContainer::erase
long erase(iterator pos)
Remove/erase object (identified by iterator) from the container.
Definition: KeyedContainer.h:433
KeyedContainer::erase
void erase(iterator pos_start, iterator pos_stop, bool use_temp=false)
Remove/erase objects by iterator range.
Definition: KeyedContainer.h:619
Containers::traits
Container traits class.
Definition: KeyedTraits.h:44
Containers::KeyedObjectManager::setup
void setup(void *seq, void **rndm)
Setup of the Map and the parent object.
Definition: KeyedObjectManager.cpp:128
fixtures.reference
Generator[dict, None, None] reference(request, Optional[Path] reference_path)
Definition: fixtures.py:211
KeyedContainer::i_object
FORCE_INLINE value_type i_object(const key_type &k) const
Internal function to access objects within the container.
Definition: KeyedContainer.h:140
KeyedContainer::m_sequential
seq_type m_sequential
Array to allow sequential access to the object (can be ordered).
Definition: KeyedContainer.h:122
ObjectContainerBase.h
KeyedContainer::reverse_iterator
seq_type::reverse_iterator reverse_iterator
Sequential access: reverse iterator type used in sequential container.
Definition: KeyedContainer.h:104
std::vector::empty
T empty(T... args)
KeyedContainer::remove
long remove(ContainedObject *pObject) override
ObjectContainerBase overload: Remove an object from the container.
Definition: KeyedContainer.h:600
Properties.v
v
Definition: Properties.py:122
KeyedContainer::reference
seq_type::reference reference
Sequential access: reference type used in sequential container.
Definition: KeyedContainer.h:96
Containers::KeyedObjectManager::isDirect
long isDirect() const
Check if the container is dirty.
Definition: KeyedObjectManager.h:83
FORCE_INLINE
#define FORCE_INLINE
Definition: KeyedContainer.h:34
ObjectContainerBase::numberOfObjects
virtual size_type numberOfObjects() const =0
Number of objects in the container.
KeyedContainer::traits
Containers::traits< container_type, contained_type > traits
Traits class definition.
Definition: KeyedContainer.h:114
std::vector::end
T end(T... args)
IOTest.end
end
Definition: IOTest.py:125
KeyedContainer::containedObjects
virtual size_type containedObjects(std::vector< ContainedObject * > &v) const
Retrieve the full content of the object container.
Definition: KeyedContainer.h:582
DataObject::classID
static const CLID & classID()
Retrieve reference to class definition structure (static access)
Definition: DataObject.cpp:69
DataObject::clID
virtual const CLID & clID() const
Retrieve reference to class definition structure.
Definition: DataObject.cpp:66
Gaudi::Functional::details::insert
constexpr struct Gaudi::Functional::details::insert_t insert
KeyedContainer::~KeyedContainer
~KeyedContainer() override
Destructor.
Definition: KeyedContainer.h:499
KeyedContainer::KeyedContainer
KeyedContainer(KeyedContainer &&other)
Definition: KeyedContainer.h:187
KeyedContainer::rend
const_reverse_iterator rend() const
const reverse_iterator pointing to the end of the reversed container
Definition: KeyedContainer.h:333
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:81
KeyedContainer::insert
const key_type & insert(const value_type val)
Insert entry to the container with automatic key assignment.
Definition: KeyedContainer.h:552
KeyedContainer::rbegin
const_reverse_iterator rbegin() const
const reverse_iterator returns the beginning of the reversed container
Definition: KeyedContainer.h:329
ContainedObject
Definition: ContainedObject.h:41
std::vector::rbegin
T rbegin(T... args)
Containers::KeyedObjectManager::clear
void clear()
Clear content of the vector.
Definition: KeyedObjectManager.cpp:245