The Gaudi Framework  v40r0 (475e45c1)
KeyedContainer.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2025 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 #pragma once
12 
16 #include <algorithm>
17 #include <iterator>
18 
19 namespace GaudiDict {
20  template <class T>
22 }
23 
24 #ifdef WIN32
25 # define FORCE_INLINE __forceinline
26 #else
27 # define FORCE_INLINE inline
28 #endif
29 
66 template <class DATATYPE, class MAPPING = Containers::HashMap>
68  friend struct GaudiDict::KeyedContainerDict<DATATYPE>;
69 
70 public:
72  typedef DATATYPE contained_type;
74  typedef MAPPING container_type;
75 
82  typedef typename std::vector<contained_type*> seq_type;
87  typedef typename seq_type::value_type value_type;
89  typedef typename seq_type::reference reference;
91  typedef typename seq_type::const_reference const_reference;
93  typedef typename seq_type::iterator iterator;
95  typedef typename seq_type::const_iterator const_iterator;
97  typedef typename seq_type::reverse_iterator reverse_iterator;
101  typedef typename seq_type::const_reverse_iterator const_reverse_iterator;
103 private:
108 
112  container_type m_cont;
118 
120 #ifdef CHECK_KEYED_CONTAINER
121  value_type i_object( const key_type& k ) const {
122  if ( 0 == m_cont.isDirect() ) {
123  if ( traits::checkBounds( m_random, k ) ) {
124  value_type p = *( m_random->begin() + traits::hash( k ) );
125  if ( traits::checkKey( p, k ) ) { return p; }
126  }
127  return 0;
128  }
129  value_type p = value_type( m_cont.object( traits::hash( k ) ) );
130  return traits::checkKey( p, k ) ? p : 0;
131  }
132 #else
134  return 0 == m_cont.isDirect() ? value_type( *( m_random->begin() + traits::hash( k ) ) )
135  : value_type( m_cont.object( traits::hash( k ) ) );
136  }
137 #endif
138  long i_erase( const_reference v, const key_type& k ) {
140  value_type p = value_type( m_cont.erase( traits::hash( k ), v ) );
141  if ( p ) {
142  if ( p->parent() == this ) { p->setParent( 0 ); }
143  }
144  return traits::release( p ) <= 0 ? (long)Containers::OBJ_ERASED : (long)Containers::OBJ_DELETED;
145  }
146 
148  struct _InsertRelease {
151  void operator()( value_type p ) {
152  m_obj->insert( p );
153  traits::release( p );
154  }
155  };
156 
158  struct _RemoveRelease {
160  _RemoveRelease( ObjectContainerBase* p ) : m_obj( p ) {}
161  void operator()( value_type p ) {
162  const ObjectContainerBase* par = p->parent();
163  if ( par == m_obj ) { p->setParent( 0 ); }
164  traits::release( p );
165  }
166  };
168 
169 public:
173  KeyedContainer( void ) {
175  // avoid problems with strict-aliasing rules
176  seq_type** rptr = &m_random;
177  seq_type* sptr = &m_sequential;
178  m_cont.setup( (void*)sptr, (void**)rptr );
179  }
181  : ObjectContainerBase( std::move( other ) )
182  , m_cont( std::move( other.m_cont ) )
183  , m_sequential( std::move( other.m_sequential ) ) {
184  m_cont.setup( (void*)&m_sequential, (void**)&m_random );
185  std::for_each( begin(), end(), [this]( ContainedObject* obj ) { obj->setParent( this ); } );
186 
187  other.m_cont.setup( (void*)&other.m_sequential, (void**)&other.m_random );
188  }
189  KeyedContainer( const KeyedContainer& ) = delete;
191  ~KeyedContainer() override;
193 
199  const CLID& clID() const override { return this->classID(); }
202  static const CLID& classID() {
203  static CLID clid = contained_type::classID() + container_type::classID();
204  return clid;
205  }
207 
224  size_type numberOfObjects() const override { return m_sequential.size(); }
237  long add( ContainedObject* pObject ) override;
238 
251  long remove( ContainedObject* pObject ) override;
252 
256  ContainedObject* containedObject( long key_value ) override { return i_object( traits::makeKey( key_value ) ); }
257  ContainedObject const* containedObject( long key_value ) const override {
258  return i_object( traits::makeKey( key_value ) );
259  }
263  long index( const ContainedObject* p ) const override;
269  virtual size_type containedObjects( std::vector<ContainedObject*>& v ) const;
271 
277  size_type size() const { return m_sequential.size(); }
280  bool empty() const { return m_sequential.empty(); }
282  void reserve( size_type value ) { m_cont.reserve( value ); }
284  void clear() { erase( begin(), end() ); }
290  virtual const std::vector<const ContainedObject*>* containedObjects() const;
295  StatusCode update() override;
297 
311  iterator begin() { return m_sequential.begin(); }
314  const_iterator begin() const { return m_sequential.begin(); }
316  iterator end() { return m_sequential.end(); }
318  const_iterator end() const { return m_sequential.end(); }
320  reverse_iterator rbegin() { return m_sequential.rbegin(); }
322  const_reverse_iterator rbegin() const { return m_sequential.rbegin(); }
324  reverse_iterator rend() { return m_sequential.rend(); }
326  const_reverse_iterator rend() const { return m_sequential.rend(); }
328 
346  value_type object( const key_type& kval ) const { return i_object( kval ); }
347 
357  value_type operator()( const key_type& kval ) const { return i_object( kval ); }
359 
382  long erase( const key_type& kval ) { return i_erase( 0, kval ); }
383 
404  long erase( const value_type val ) { return ( val ) ? i_erase( val, val->key() ) : (long)Containers::OBJ_NOT_FOUND; }
405 
426  long erase( iterator pos ) { return erase( *pos ); }
427 
436  void erase( iterator pos_start, iterator pos_stop, bool use_temp = false );
437 
456  const key_type& insert( const value_type val, const key_type& kval );
457 
479  const key_type& insert( const value_type val );
481 };
482 
490 // Destructor
491 template <class DATATYPE, class MAPPING>
493  clear();
494  m_cont.clear();
495 }
496 
497 // Configure direct access
498 template <class DATATYPE, class MAPPING>
500  int count = 0;
501  m_cont.clearDirect();
502  for ( typename seq_type::value_type v : m_sequential ) {
503  if ( v ) {
504  if ( !v->hasKey() ) {
505  traits::setKey( v, v->key() );
506  traits::addRef( v );
507  }
508  long k0 = traits::hash( v->key() );
509  if ( m_cont.insertDirect( this, v, v, k0 ) == Containers::OBJ_INSERTED ) {}
510  } else {
511  ++count;
512  }
513  }
514  if ( count > 0 ) { Containers::cannotInsertToContainer(); }
515  return StatusCode::SUCCESS;
516 }
517 
518 // Retrieve the full content of the object container by reference.
519 template <class DATATYPE, class MAPPING>
520 inline const std::vector<const ContainedObject*>* KeyedContainer<DATATYPE, MAPPING>::containedObjects() const {
521  return (const std::vector<const ContainedObject*>*)( ( 0 == m_cont.isDirect() ) ? m_random : &m_sequential );
522 }
523 
524 template <class DATATYPE, class MAPPING>
525 inline const typename KeyedContainer<DATATYPE, MAPPING>::key_type&
527  if ( val ) {
528  long k0 = traits::hash( kval );
529  if ( !val->hasKey() || ( traits::hash( val->key() ) == k0 ) ) {
530  if ( m_cont.insert( this, val, val, k0 ) == Containers::OBJ_INSERTED ) {
531  if ( !val->hasKey() ) traits::setKey( val, kval );
532  traits::addRef( val );
533  return val->key();
534  }
535  }
536  }
537  // Cannot insert object...indicate bad object insertion...
539  return val->key();
540 }
541 
542 // Insert object
543 template <class DATATYPE, class MAPPING> // inline
546  if ( 0 != val ) {
547  if ( val->hasKey() ) {
548  if ( m_cont.insert( this, val, val, traits::hash( val->key() ) ) == Containers::OBJ_INSERTED ) {
549  traits::addRef( val );
550  return val->key();
551  }
552  }
553  long k0;
554  if ( m_cont.insert( this, val, val, &k0 ) == Containers::OBJ_INSERTED ) {
555  traits::setKey( val, traits::makeKey( k0 ) );
556  traits::addRef( val );
557  return val->key();
558  }
559  }
560  // Cannot insert object...indicate bad object insertion...
562  return val->key();
563 }
564 
565 template <class DATATYPE, class MAPPING>
567  const contained_type* ptr = dynamic_cast<const contained_type*>( p );
568  if ( ptr ) return traits::identifier( ptr->key() );
569  return -1;
570 }
571 
572 // Retrieve the full content of the object container.
573 template <class DATATYPE, class MAPPING>
575 KeyedContainer<DATATYPE, MAPPING>::containedObjects( std::vector<ContainedObject*>& vec ) const {
576  vec.clear();
577  vec.reserve( size() );
578  for ( typename seq_type::value_type v : m_sequential ) {
579  ContainedObject* p = const_cast<typename seq_type::value_type>( v );
580  vec.push_back( p );
581  }
582  return vec.size();
583 }
584 
585 // ObjectContainerBase overload: Add an object to the container.
586 template <class DATATYPE, class MAPPING>
588  return traits::identifier( insert( dynamic_cast<typename seq_type::value_type>( pObject ) ) );
589 }
590 
591 // ObjectContainerBase overload: Remove an object from the container.
592 template <class DATATYPE, class MAPPING>
594  contained_type* p1 = dynamic_cast<contained_type*>( p );
595  if ( p1 ) { // Normal case; object still fully intact
596  return this->erase( p1 );
597  } else if ( p ) {
598  const ObjectContainerBase* par = p->parent();
599  // The following should never occur: object is in a funny state,
600  // Because the parent was explicitly set to NULL in the
601  // KeyeObject destructor.
602  // - It cannot be a KeyedObject: It would not have a parent
603  // - Still the parent is present: We are not in the destructor
604  // of KeyedObject
606  return m_cont.erase( 0, p ) == 0 ? (long)Containers::OBJ_ERASED : (long)Containers::OBJ_NOT_FOUND;
607  }
608  return (long)Containers::OBJ_NOT_FOUND;
609 }
610 
611 template <class DATATYPE, class MAPPING>
612 inline void KeyedContainer<DATATYPE, MAPPING>::erase( iterator start_pos, iterator stop_pos, bool use_tmp ) {
613  bool is_start = start_pos == m_sequential.begin();
614  bool is_stop = stop_pos == m_sequential.end();
615  if ( is_start && is_stop ) {
616  // Nothing special. Taken care of by Keyed object manager
617  } else if ( is_start || is_stop || use_tmp ) {
618  std::vector<DATATYPE*> tmp( m_sequential.begin(), start_pos );
619  tmp.insert( tmp.end(), stop_pos, m_sequential.end() );
620  std::for_each( tmp.begin(), tmp.end(), traits::addRef );
621  this->erase( m_sequential.begin(), m_sequential.end() );
622  std::for_each( tmp.begin(), tmp.end(), _InsertRelease( this ) );
623  return;
624  }
625  std::for_each( start_pos, stop_pos, _RemoveRelease( this ) );
626  seq_type* sptr = &m_sequential; // avoid problems with strict-aliasing rules
627  std::vector<void*>* v = (std::vector<void*>*)sptr;
628  std::vector<void*>::iterator i1 = v->begin() + std::distance( m_sequential.begin(), start_pos );
629  std::vector<void*>::iterator i2 = v->begin() + std::distance( m_sequential.begin(), stop_pos );
630  m_cont.erase( i1, i2 ); // cppcheck-suppress iterators1
631 }
632 
633 #undef FORCE_INLINE
KeyedContainer::erase
long erase(const key_type &kval)
Remove/erase object (identified by key) from the container.
Definition: KeyedContainer.h:382
KeyedContainer::empty
bool empty() const
For consistency with STL: check if container is empty.
Definition: KeyedContainer.h:280
Containers::OBJ_ERASED
@ OBJ_ERASED
Object was removed, but not deleted
Definition: KeyedTraits.h:32
KeyedContainer::end
iterator end()
Retrieve terminating iterator.
Definition: KeyedContainer.h:316
Containers::cannotInsertToContainer
GAUDI_API void cannotInsertToContainer()
Function to be called to indicate that an object cannot be inserted to the container.
Definition: KeyedObjectManager.cpp:82
Containers::KeyedObjectManager
KeyedObjectManager Class to manage keyed objects.
Definition: KeyedObjectManager.h:47
KeyedContainer::containedObject
ContainedObject * containedObject(long key_value) override
ObjectContainerBase overload: Retrieve the object by reference given the long integer representation ...
Definition: KeyedContainer.h:256
Containers::OBJ_INSERTED
@ OBJ_INSERTED
Object was inserted into the container.
Definition: KeyedTraits.h:33
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:175
KeyedContainer::key_type
contained_type::key_type key_type
Definition of the key type: re-use definition of contained type.
Definition: KeyedContainer.h:85
GaudiPartProp.decorators.std
std
Definition: decorators.py:32
KeyedContainer::m_random
seq_type * m_random
Array to allow random access to objects (not exposed)
Definition: KeyedContainer.h:117
KeyedContainer::const_iterator
seq_type::const_iterator const_iterator
Sequential access: const iterator type used in sequential container.
Definition: KeyedContainer.h:95
KeyedContainer::update
StatusCode update() override
Reconfigure direct access to elements (Needed by POOL data loading) This function reuses the "update"...
Definition: KeyedContainer.h:499
KeyedContainer::begin
const_iterator begin() const
Retrieve start const iterator.
Definition: KeyedContainer.h:314
KeyedContainer::rend
reverse_iterator rend()
reverse_iterator pointing to the end of the reversed container
Definition: KeyedContainer.h:324
KeyedContainer::operator()
value_type operator()(const key_type &kval) const
STL algorithms support for object access.
Definition: KeyedContainer.h:357
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:101
Containers::KeyedObjectManager::insert
long insert(ObjectContainerBase *b, ContainedObject *c, void *o, long *k)
Insert new object into container.
Definition: KeyedObjectManager.cpp:142
Containers::KeyedObjectManager::clearDirect
void clearDirect()
Clear all direct access fields.
Definition: KeyedObjectManager.cpp:250
conf.release
string release
Definition: conf.py:27
KeyedContainer::_RemoveRelease::operator()
void operator()(value_type p)
Definition: KeyedContainer.h:161
KeyedObject.h
KeyedContainer::value_type
seq_type::value_type value_type
Sequential access: definition of type stored in sequential container.
Definition: KeyedContainer.h:87
KeyedContainer::containedObject
ContainedObject const * containedObject(long key_value) const override
Pointer to an object of a given distance.
Definition: KeyedContainer.h:257
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:91
KeyedContainer::_RemoveRelease
Internal functor for insertion of objects.
Definition: KeyedContainer.h:158
KeyedContainer::reserve
void reserve(size_type value)
Reserve place for "value" objects in the container.
Definition: KeyedContainer.h:282
KeyedContainer::_InsertRelease::operator()
void operator()(value_type p)
Definition: KeyedContainer.h:151
KeyedContainer::clear
void clear()
Clear the entire content and erase the objects from the container.
Definition: KeyedContainer.h:284
compareOutputFiles.par
par
Definition: compareOutputFiles.py:477
KeyedContainer::_InsertRelease::m_obj
KeyedContainer< DATATYPE, MAPPING > * m_obj
Definition: KeyedContainer.h:149
KeyedContainer::add
long add(ContainedObject *pObject) override
ObjectContainerBase overload: Add an object to the container.
Definition: KeyedContainer.h:587
Containers::KeyedObjectManager::object
void * object(long key) const
Retrieve object identified by a key from the container.
Definition: KeyedObjectManager.cpp:222
KeyedContainer::container_type
MAPPING container_type
Definition of the implementing container type.
Definition: KeyedContainer.h:74
Gaudi::Utils::begin
AttribStringParser::Iterator begin(const AttribStringParser &parser)
Definition: AttribStringParser.h:135
KeyedContainer::_RemoveRelease::m_obj
ObjectContainerBase * m_obj
Definition: KeyedContainer.h:159
KeyedContainer::object
value_type object(const key_type &kval) const
Object access by key.
Definition: KeyedContainer.h:346
StatusCode
Definition: StatusCode.h:64
Gaudi::cxx::for_each
void for_each(ContainerOfSynced &c, Fun &&f)
Definition: SynchronizedValue.h:98
KeyedContainer::contained_type
DATATYPE contained_type
Definition of the contained object type.
Definition: KeyedContainer.h:72
KeyedContainer::erase
long erase(const value_type val)
Remove/erase object (identified by pointer value) from the container.
Definition: KeyedContainer.h:404
Containers::OBJ_DELETED
@ OBJ_DELETED
Object was removed from the container and deleted.
Definition: KeyedTraits.h:31
KeyedContainer::const_reference
seq_type::const_reference const_reference
Sequential access: const reference type used in sequential container.
Definition: KeyedContainer.h:91
AlgSequencer.p1
p1
Definition: AlgSequencer.py:29
Containers::OBJ_NOT_FOUND
@ OBJ_NOT_FOUND
Object not present in the container.
Definition: KeyedTraits.h:30
ObjectContainerBase::size_type
size_t size_type
size_type, to conform the STL container interface
Definition: ObjectContainerBase.h:37
KeyedContainer
template class KeyedContainer, KeyedContainer.h
Definition: KeyedContainer.h:67
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:16
KeyedContainer::rbegin
reverse_iterator rbegin()
reverse_iterator returns the beginning of the reversed container
Definition: KeyedContainer.h:320
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:526
GaudiDict::KeyedContainerDict
Definition: KeyedContainer.h:21
KeyedContainer::iterator
seq_type::iterator iterator
Sequential access: iterator type used in sequential container.
Definition: KeyedContainer.h:93
Containers::KeyedObjectManager::erase
void * erase(long key, const void *obj)
Remove object from container (very inefficient if key is invalid)
Definition: KeyedObjectManager.cpp:200
KeyedContainer::classID
static const CLID & classID()
Retrieve class ID.
Definition: KeyedContainer.h:202
ContainedObject::parent
const ObjectContainerBase * parent() const
Access to parent object.
Definition: ContainedObject.h:59
KeyedObject< int >::key_type
int key_type
Definition of the key-type to access object.
Definition: KeyedObject.h:42
KeyedContainer::KeyedContainer
KeyedContainer(const KeyedContainer &)=delete
Containers::KeyedObjectManager::reserve
void reserve(long size)
Reserve buffer space.
Definition: KeyedObjectManager.cpp:230
KeyedContainer::_InsertRelease::_InsertRelease
_InsertRelease(KeyedContainer< DATATYPE, MAPPING > *p)
Definition: KeyedContainer.h:150
KeyedContainer::end
const_iterator end() const
Retrieve terminating const iterator.
Definition: KeyedContainer.h:318
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition: StatusCode.h:99
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:566
ContainedObject::setParent
void setParent(ObjectContainerBase *value)
Update parent member.
Definition: ContainedObject.h:61
KeyedContainer::_RemoveRelease::_RemoveRelease
_RemoveRelease(ObjectContainerBase *p)
Definition: KeyedContainer.h:160
ObjectContainerBase
Definition: ObjectContainerBase.h:26
KeyedContainer::containedObjects
virtual const std::vector< const ContainedObject * > * containedObjects() const
Retrieve the full content of the object container by reference.
Definition: KeyedContainer.h:520
GaudiDict
Definition: KeyedContainer.h:19
KeyedContainer::_InsertRelease
Internal functor for insertion of objects.
Definition: KeyedContainer.h:148
KeyedContainer::erase
long erase(iterator pos)
Remove/erase object (identified by iterator) from the container.
Definition: KeyedContainer.h:426
KeyedContainer::erase
void erase(iterator pos_start, iterator pos_stop, bool use_temp=false)
Remove/erase objects by iterator range.
Definition: KeyedContainer.h:612
Containers::traits
Container traits class.
Definition: KeyedTraits.h:39
Containers::KeyedObjectManager::setup
void setup(void *seq, void **rndm)
Setup of the Map and the parent object.
Definition: KeyedObjectManager.cpp:127
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:133
KeyedContainer::m_sequential
seq_type m_sequential
Array to allow sequential access to the object (can be ordered).
Definition: KeyedContainer.h:115
ObjectContainerBase.h
KeyedContainer::reverse_iterator
seq_type::reverse_iterator reverse_iterator
Sequential access: reverse iterator type used in sequential container.
Definition: KeyedContainer.h:97
KeyedContainer::remove
long remove(ContainedObject *pObject) override
ObjectContainerBase overload: Remove an object from the container.
Definition: KeyedContainer.h:593
Properties.v
v
Definition: Properties.py:122
KeyedContainer::reference
seq_type::reference reference
Sequential access: reference type used in sequential container.
Definition: KeyedContainer.h:89
Containers::KeyedObjectManager::isDirect
long isDirect() const
Check if the container is dirty.
Definition: KeyedObjectManager.h:75
FORCE_INLINE
#define FORCE_INLINE
Definition: KeyedContainer.h:27
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:107
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:575
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:492
KeyedContainer::KeyedContainer
KeyedContainer(KeyedContainer &&other)
Definition: KeyedContainer.h:180
KeyedContainer::rend
const_reverse_iterator rend() const
const reverse_iterator pointing to the end of the reversed container
Definition: KeyedContainer.h:326
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:83
KeyedContainer::insert
const key_type & insert(const value_type val)
Insert entry to the container with automatic key assignment.
Definition: KeyedContainer.h:545
KeyedContainer::rbegin
const_reverse_iterator rbegin() const
const reverse_iterator returns the beginning of the reversed container
Definition: KeyedContainer.h:322
ContainedObject
Definition: ContainedObject.h:37
Containers::KeyedObjectManager::clear
void clear()
Clear content of the vector.
Definition: KeyedObjectManager.cpp:244
KeyedContainer< Gaudi::TestSuite::MyTrack >::seq_type
std::vector< contained_type * > seq_type
General container specific type definitions.
Definition: KeyedContainer.h:83