#include <RangeMap.h>
Classes | |
struct | comp |
comparator helper class More... | |
struct | id_iterator |
identifier iterator More... | |
Public Types | |
typedef C::const_iterator | const_iterator |
constant access iterator type More... | |
typedef std::map< ID, pairType > | mapType |
map of identifier to index range More... | |
typedef std::pair< unsigned int, unsigned int > | pairType |
index range More... | |
typedef C::pointer | pointer |
pointer type More... | |
typedef std::pair< const_iterator, const_iterator > | range |
iterator range More... | |
typedef C::reference | reference |
reference type More... | |
typedef C::size_type | size_type |
collection size type More... | |
typedef C::value_type | value_type |
contained object type More... | |
Public Member Functions | |
C::const_iterator | begin () const |
first collection iterator More... | |
C::const_iterator | end () const |
last collection iterator More... | |
range | get (ID id) const |
get a range of objects with specified identifier More... | |
template<typename CMP > | |
range | get (ID id, CMP comparator) const |
template<typename CMP > | |
range | get (std::pair< ID, CMP > p) const |
get range of objects matching a specified identifier with a specified comparator. More... | |
id_iterator | id_begin () const |
first identifier iterator More... | |
id_iterator | id_end () const |
last identifier iterator More... | |
size_t | id_size () const |
number of contained identifiers More... | |
std::vector< ID > | ids () const |
indentifier vector More... | |
RangeMap & | operator= (RangeMap const &rhs) |
copy assignment More... | |
reference | operator[] (size_type i) |
direct access to an object in the collection More... | |
void | post_insert () |
perfor post insert action More... | |
template<typename CI > | |
void | put (ID id, CI begin, CI end) |
insert an object range with specified identifier More... | |
RangeMap () | |
default constructor More... | |
size_t | size () const |
return number of contained object More... | |
void | swap (RangeMap< ID, C, P > &other) |
swap member function More... | |
Static Public Member Functions | |
static short | Class_Version () |
Private Attributes | |
C | collection_ |
stored collection More... | |
mapType | map_ |
identifier map More... | |
Definition at line 32 of file RangeMap.h.
typedef C::const_iterator edm::RangeMap< ID, C, P >::const_iterator |
constant access iterator type
Definition at line 43 of file RangeMap.h.
typedef std::map<ID, pairType> edm::RangeMap< ID, C, P >::mapType |
map of identifier to index range
Definition at line 48 of file RangeMap.h.
typedef std::pair<unsigned int, unsigned int> edm::RangeMap< ID, C, P >::pairType |
index range
Definition at line 46 of file RangeMap.h.
typedef C::pointer edm::RangeMap< ID, C, P >::pointer |
pointer type
Definition at line 41 of file RangeMap.h.
typedef std::pair<const_iterator, const_iterator> edm::RangeMap< ID, C, P >::range |
iterator range
Definition at line 50 of file RangeMap.h.
typedef C::reference edm::RangeMap< ID, C, P >::reference |
reference type
Definition at line 39 of file RangeMap.h.
typedef C::size_type edm::RangeMap< ID, C, P >::size_type |
collection size type
Definition at line 37 of file RangeMap.h.
typedef C::value_type edm::RangeMap< ID, C, P >::value_type |
contained object type
Definition at line 35 of file RangeMap.h.
|
inline |
|
inline |
first collection iterator
Definition at line 126 of file RangeMap.h.
Referenced by edm::RangeMap< det_id_type, edm::OwnVector< B > >::get(), and edm::RangeMap< det_id_type, edm::OwnVector< B > >::put().
|
inlinestatic |
Definition at line 201 of file RangeMap.h.
|
inline |
last collection iterator
Definition at line 128 of file RangeMap.h.
Referenced by Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), edm::RangeMap< det_id_type, edm::OwnVector< B > >::get(), and edm::RangeMap< det_id_type, edm::OwnVector< B > >::put().
|
inline |
get a range of objects with specified identifier
Definition at line 98 of file RangeMap.h.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), util.rrapi.RRApi::columns(), rrapi.RRApi::columns(), util.rrapi.RRApi::count(), rrapi.RRApi::count(), rrapi.RRApi::data(), util.rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), rrapi.RRApi::report(), util.rrapi.RRApi::report(), rrapi.RRApi::reports(), util.rrapi.RRApi::reports(), util.rrapi.RRApi::tables(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), util.rrapi.RRApi::tags(), rrapi.RRApi::templates(), util.rrapi.RRApi::templates(), util.rrapi.RRApi::workspaces(), and rrapi.RRApi::workspaces().
|
inline |
get range of objects matching a specified identifier with a specified comparator. WARNING: the comparator has to be written in such a way that the std::equal_range function returns a meaningful range. Not properly written comparators may return an unpredictable range. It is recommended to use only comparators provided with CMSSW release.
Definition at line 75 of file RangeMap.h.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), util.rrapi.RRApi::columns(), rrapi.RRApi::columns(), rrapi.RRApi::count(), util.rrapi.RRApi::count(), rrapi.RRApi::data(), util.rrapi.RRApi::data(), edm::RangeMap< det_id_type, edm::OwnVector< B > >::get(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), edm::RangeMap< det_id_type, edm::OwnVector< B > >::post_insert(), util.rrapi.RRApi::report(), rrapi.RRApi::report(), rrapi.RRApi::reports(), util.rrapi.RRApi::reports(), rrapi.RRApi::tables(), util.rrapi.RRApi::tables(), util.rrapi.RRApi::tags(), rrapi.RRApi::tags(), util.rrapi.RRApi::templates(), rrapi.RRApi::templates(), util.rrapi.RRApi::workspaces(), and rrapi.RRApi::workspaces().
|
inline |
get range of objects matching a specified identifier with a specified comparator.
Definition at line 94 of file RangeMap.h.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), util.rrapi.RRApi::columns(), rrapi.RRApi::columns(), util.rrapi.RRApi::count(), rrapi.RRApi::count(), rrapi.RRApi::data(), util.rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), rrapi.RRApi::report(), util.rrapi.RRApi::report(), rrapi.RRApi::reports(), util.rrapi.RRApi::reports(), util.rrapi.RRApi::tables(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), util.rrapi.RRApi::tags(), rrapi.RRApi::templates(), util.rrapi.RRApi::templates(), util.rrapi.RRApi::workspaces(), and rrapi.RRApi::workspaces().
|
inline |
first identifier iterator
Definition at line 180 of file RangeMap.h.
Referenced by edm::RangeMap< det_id_type, edm::OwnVector< B > >::ids().
|
inline |
last identifier iterator
Definition at line 182 of file RangeMap.h.
Referenced by edm::RangeMap< det_id_type, edm::OwnVector< B > >::ids().
|
inline |
number of contained identifiers
Definition at line 184 of file RangeMap.h.
Referenced by edm::RangeMap< det_id_type, edm::OwnVector< B > >::ids().
|
inline |
|
inline |
copy assignment
Definition at line 217 of file RangeMap.h.
|
inline |
|
inline |
perfor post insert action
Definition at line 165 of file RangeMap.h.
|
inline |
insert an object range with specified identifier
Definition at line 111 of file RangeMap.h.
Referenced by CSCMake2DRecHit::hitFromStripAndWire(), and edmNew::dstvdetails::ToRM< B >::operator()().
|
inline |
return number of contained object
Definition at line 124 of file RangeMap.h.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and CSCMake2DRecHit::hitFromStripAndWire().
|
inline |
swap member function
Definition at line 211 of file RangeMap.h.
Referenced by edm::RangeMap< det_id_type, edm::OwnVector< B > >::operator=().
|
private |
stored collection
Definition at line 205 of file RangeMap.h.
Referenced by edm::RangeMap< det_id_type, edm::OwnVector< B > >::begin(), edm::RangeMap< det_id_type, edm::OwnVector< B > >::end(), edm::RangeMap< det_id_type, edm::OwnVector< B > >::get(), edm::RangeMap< det_id_type, edm::OwnVector< B > >::operator[](), edm::RangeMap< det_id_type, edm::OwnVector< B > >::post_insert(), edm::RangeMap< det_id_type, edm::OwnVector< B > >::put(), edm::RangeMap< det_id_type, edm::OwnVector< B > >::size(), and edm::RangeMap< det_id_type, edm::OwnVector< B > >::swap().
|
private |
identifier map
Definition at line 207 of file RangeMap.h.
Referenced by edm::RangeMap< det_id_type, edm::OwnVector< B > >::get(), edm::RangeMap< det_id_type, edm::OwnVector< B > >::id_begin(), edm::RangeMap< det_id_type, edm::OwnVector< B > >::id_end(), edm::RangeMap< det_id_type, edm::OwnVector< B > >::id_size(), edm::RangeMap< det_id_type, edm::OwnVector< B > >::post_insert(), edm::RangeMap< det_id_type, edm::OwnVector< B > >::put(), and edm::RangeMap< det_id_type, edm::OwnVector< B > >::swap().