#include <ThreadSafeIndexedRegistry.h>
Public Types | |
typedef std::vector< value_type > | collection_type |
typedef collection_type::const_iterator | const_iterator |
typedef E | extra_type |
typedef collection_type::size_type | size_type |
typedef T | value_type |
Public Member Functions | |
const_iterator | begin () const |
collection_type & | data () |
Provide access to the contained collection. | |
collection_type const & | data () const |
bool | empty () const |
Return true if there are no contained value_type objects. | |
const_iterator | end () const |
extra_type const & | extra () const |
extra_type & | extra () |
void | getMapped (size_type index, value_type &result) const |
void | insertCollection (collection_type const &c) |
bool | insertMapped (value_type const &v) |
bool | notEmpty () const |
Return true if there are any contained value_type objects. | |
void | print (std::ostream &os) const |
Print the contents of this registry to the given ostream. | |
size_type | size () const |
Return the number of contained value_type objects. | |
Static Public Member Functions | |
static ThreadSafeIndexedRegistry * | instance () |
Private Member Functions | |
ThreadSafeIndexedRegistry< T, E > & | operator= (ThreadSafeIndexedRegistry< T, E > const &) |
ThreadSafeIndexedRegistry () | |
ThreadSafeIndexedRegistry (ThreadSafeIndexedRegistry< T, E > const &) | |
~ThreadSafeIndexedRegistry () | |
Private Attributes | |
collection_type | data_ |
extra_type | extra_ |
Definition at line 24 of file ThreadSafeIndexedRegistry.h.
typedef std::vector<value_type> edm::detail::ThreadSafeIndexedRegistry< T, E >::collection_type |
Definition at line 28 of file ThreadSafeIndexedRegistry.h.
typedef collection_type::const_iterator edm::detail::ThreadSafeIndexedRegistry< T, E >::const_iterator |
Definition at line 31 of file ThreadSafeIndexedRegistry.h.
typedef E edm::detail::ThreadSafeIndexedRegistry< T, E >::extra_type |
Definition at line 27 of file ThreadSafeIndexedRegistry.h.
typedef collection_type::size_type edm::detail::ThreadSafeIndexedRegistry< T, E >::size_type |
Definition at line 29 of file ThreadSafeIndexedRegistry.h.
typedef T edm::detail::ThreadSafeIndexedRegistry< T, E >::value_type |
Definition at line 26 of file ThreadSafeIndexedRegistry.h.
edm::detail::ThreadSafeIndexedRegistry< T, E >::ThreadSafeIndexedRegistry | ( | ) | [private] |
Definition at line 181 of file ThreadSafeIndexedRegistry.h.
: data_() { }
edm::detail::ThreadSafeIndexedRegistry< T, E >::~ThreadSafeIndexedRegistry | ( | ) | [private] |
Definition at line 187 of file ThreadSafeIndexedRegistry.h.
{ }
edm::detail::ThreadSafeIndexedRegistry< T, E >::ThreadSafeIndexedRegistry | ( | ThreadSafeIndexedRegistry< T, E > const & | ) | [private] |
ThreadSafeIndexedRegistry< T, E >::const_iterator edm::detail::ThreadSafeIndexedRegistry< T, E >::begin | ( | void | ) | const [inline] |
Allow iteration through the contents of the registry. Only const access is provided to the entries of the registry.
Definition at line 132 of file ThreadSafeIndexedRegistry.h.
{ return data_.begin(); }
ThreadSafeIndexedRegistry< T, E >::collection_type & edm::detail::ThreadSafeIndexedRegistry< T, E >::data | ( | ) | [inline] |
Provide access to the contained collection.
Definition at line 155 of file ThreadSafeIndexedRegistry.h.
Referenced by edm::BranchIDListHelper::clearRegistries(), edm::BranchIDListHelper::updateFromInput(), and edm::BranchIDListHelper::updateRegistries().
{ return data_; }
ThreadSafeIndexedRegistry< T, E >::collection_type const & edm::detail::ThreadSafeIndexedRegistry< T, E >::data | ( | ) | const [inline] |
Definition at line 176 of file ThreadSafeIndexedRegistry.h.
{ return data_; }
bool edm::detail::ThreadSafeIndexedRegistry< T, E >::empty | ( | void | ) | const [inline] |
Return true if there are no contained value_type objects.
Definition at line 111 of file ThreadSafeIndexedRegistry.h.
{ return data_.empty(); }
ThreadSafeIndexedRegistry< T, E >::const_iterator edm::detail::ThreadSafeIndexedRegistry< T, E >::end | ( | void | ) | const [inline] |
Definition at line 139 of file ThreadSafeIndexedRegistry.h.
{ return data_.end(); }
ThreadSafeIndexedRegistry< T, E >::extra_type & edm::detail::ThreadSafeIndexedRegistry< T, E >::extra | ( | ) | [inline] |
Provide access to the appendage "extra". The ThreadSafeIndexedRegistry doesn't know what this is for, but instantiations of the template can use it.
Definition at line 162 of file ThreadSafeIndexedRegistry.h.
Referenced by edm::BranchIDListHelper::clearRegistries(), edm::BranchIDListHelper::fixBranchListIndexes(), edm::BranchIDListHelper::updateFromInput(), and edm::BranchIDListHelper::updateRegistries().
{ return extra_; }
ThreadSafeIndexedRegistry< T, E >::extra_type const & edm::detail::ThreadSafeIndexedRegistry< T, E >::extra | ( | ) | const [inline] |
Definition at line 169 of file ThreadSafeIndexedRegistry.h.
{ return extra_; }
void edm::detail::ThreadSafeIndexedRegistry< T, E >::getMapped | ( | size_type | index, |
value_type & | result | ||
) | const |
Retrieve the value_type object with the given index. If we return 'true', then 'result' carries the value_type object. If we return 'false, no matching index was found, and the value of 'result' is undefined.
void edm::detail::ThreadSafeIndexedRegistry< T, E >::insertCollection | ( | collection_type const & | c | ) |
put the value_type objects in the given collection into the registry.
Definition at line 102 of file ThreadSafeIndexedRegistry.h.
{ for (typename collection_type::const_iterator it = c.begin(), itEnd = c.end(); it != itEnd; ++it) { insertMapped(*it); } }
bool edm::detail::ThreadSafeIndexedRegistry< T, E >::insertMapped | ( | value_type const & | v | ) |
put the given value_type object into the registry.
Referenced by edm::BranchIDListHelper::updateFromInput(), and edm::BranchIDListHelper::updateRegistries().
static ThreadSafeIndexedRegistry* edm::detail::ThreadSafeIndexedRegistry< T, E >::instance | ( | ) | [static] |
Referenced by edm::EventPrincipal::pidToBid(), and edm::StreamSerializer::serializeRegistry().
bool edm::detail::ThreadSafeIndexedRegistry< T, E >::notEmpty | ( | ) | const [inline] |
Return true if there are any contained value_type objects.
Definition at line 118 of file ThreadSafeIndexedRegistry.h.
References relativeConstraints::empty.
{ return !empty(); }
ThreadSafeIndexedRegistry<T, E>& edm::detail::ThreadSafeIndexedRegistry< T, E >::operator= | ( | ThreadSafeIndexedRegistry< T, E > const & | ) | [private] |
void edm::detail::ThreadSafeIndexedRegistry< T, E >::print | ( | std::ostream & | os | ) | const |
Print the contents of this registry to the given ostream.
Definition at line 145 of file ThreadSafeIndexedRegistry.h.
References begin, alignCSCRings::e, end, i, and findQualityFiles::size.
ThreadSafeIndexedRegistry< T, E >::size_type edm::detail::ThreadSafeIndexedRegistry< T, E >::size | ( | void | ) | const [inline] |
Return the number of contained value_type objects.
Definition at line 125 of file ThreadSafeIndexedRegistry.h.
{ return data_.size(); }
collection_type edm::detail::ThreadSafeIndexedRegistry< T, E >::data_ [private] |
Definition at line 87 of file ThreadSafeIndexedRegistry.h.
extra_type edm::detail::ThreadSafeIndexedRegistry< T, E >::extra_ [private] |
Definition at line 88 of file ThreadSafeIndexedRegistry.h.