#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... | |
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... | |
range | get (ID id) const |
get a range of objects with specified identifier 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... | |
Private Attributes | |
C | collection_ |
stored collection More... | |
mapType | map_ |
identifier map More... | |
Definition at line 34 of file RangeMap.h.
typedef C::const_iterator edm::RangeMap< ID, C, P >::const_iterator |
constant access iterator type
Definition at line 45 of file RangeMap.h.
typedef std::map<ID, pairType> edm::RangeMap< ID, C, P >::mapType |
map of identifier to index range
Definition at line 50 of file RangeMap.h.
typedef std::pair<unsigned int, unsigned int> edm::RangeMap< ID, C, P >::pairType |
index range
Definition at line 48 of file RangeMap.h.
typedef C::pointer edm::RangeMap< ID, C, P >::pointer |
pointer type
Definition at line 43 of file RangeMap.h.
typedef std::pair<const_iterator, const_iterator> edm::RangeMap< ID, C, P >::range |
iterator range
Definition at line 52 of file RangeMap.h.
typedef C::reference edm::RangeMap< ID, C, P >::reference |
reference type
Definition at line 41 of file RangeMap.h.
typedef C::size_type edm::RangeMap< ID, C, P >::size_type |
collection size type
Definition at line 39 of file RangeMap.h.
typedef C::value_type edm::RangeMap< ID, C, P >::value_type |
contained object type
Definition at line 37 of file RangeMap.h.
|
inline |
|
inline |
first collection iterator
Definition at line 134 of file RangeMap.h.
Referenced by edm::RangeMap< det_id_type, edm::OwnVector< double_binary > >::get().
|
inline |
last collection iterator
Definition at line 136 of file RangeMap.h.
Referenced by Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), edm::RangeMap< det_id_type, edm::OwnVector< double_binary > >::get(), and edm::RangeMap< det_id_type, edm::OwnVector< double_binary > >::put().
|
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 81 of file RangeMap.h.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), and FastElectronSeedGenerator::run().
|
inline |
get range of objects matching a specified identifier with a specified comparator.
Definition at line 102 of file RangeMap.h.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().
|
inline |
get a range of objects with specified identifier
Definition at line 106 of file RangeMap.h.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().
|
inline |
first identifier iterator
Definition at line 173 of file RangeMap.h.
Referenced by edm::RangeMap< det_id_type, edm::OwnVector< double_binary > >::ids().
|
inline |
last identifier iterator
Definition at line 175 of file RangeMap.h.
Referenced by edm::RangeMap< det_id_type, edm::OwnVector< double_binary > >::ids().
|
inline |
number of contained identifiers
Definition at line 177 of file RangeMap.h.
Referenced by edm::RangeMap< det_id_type, edm::OwnVector< double_binary > >::ids().
|
inline |
indentifier vector
Definition at line 179 of file RangeMap.h.
Referenced by FastElectronSeedGenerator::run().
|
inline |
copy assignment
Definition at line 214 of file RangeMap.h.
References edm::RangeMap< ID, C, P >::swap(), and groupFilesInBlocks::temp.
|
inline |
|
inline |
perfor post insert action
Definition at line 158 of file RangeMap.h.
|
inline |
insert an object range with specified identifier
Definition at line 119 of file RangeMap.h.
Referenced by SiTrackerGaussianSmearingRecHitConverter::loadClusters(), SiTrackerGaussianSmearingRecHitConverter::loadMatchedRecHits(), TrackingRecHitTranslator::loadRecHits(), and SiTrackerGaussianSmearingRecHitConverter::loadRecHits().
|
inline |
return number of contained object
Definition at line 132 of file RangeMap.h.
Referenced by FastElectronSeedGenerator::run().
|
inline |
swap member function
Definition at line 206 of file RangeMap.h.
Referenced by edm::RangeMap< ID, C, P >::operator=(), and edm::swap().
|
private |
stored collection
Definition at line 198 of file RangeMap.h.
Referenced by edm::RangeMap< det_id_type, edm::OwnVector< double_binary > >::begin(), edm::RangeMap< det_id_type, edm::OwnVector< double_binary > >::end(), edm::RangeMap< det_id_type, edm::OwnVector< double_binary > >::get(), edm::RangeMap< det_id_type, edm::OwnVector< double_binary > >::operator[](), edm::RangeMap< det_id_type, edm::OwnVector< double_binary > >::post_insert(), edm::RangeMap< det_id_type, edm::OwnVector< double_binary > >::put(), and edm::RangeMap< det_id_type, edm::OwnVector< double_binary > >::size().
|
private |
identifier map
Definition at line 200 of file RangeMap.h.
Referenced by edm::RangeMap< det_id_type, edm::OwnVector< double_binary > >::get(), edm::RangeMap< det_id_type, edm::OwnVector< double_binary > >::id_begin(), edm::RangeMap< det_id_type, edm::OwnVector< double_binary > >::id_end(), edm::RangeMap< det_id_type, edm::OwnVector< double_binary > >::id_size(), edm::RangeMap< det_id_type, edm::OwnVector< double_binary > >::post_insert(), and edm::RangeMap< det_id_type, edm::OwnVector< double_binary > >::put().