#include <LazyGetter.h>
Public Types | |
typedef boost::transform_iterator < LazyAdapter< T >, typename register_type::const_iterator > | const_iterator |
typedef record_type::const_iterator | record_iterator |
typedef std::vector< T > | record_type |
typedef boost::transform_iterator < UpdateGetterAdapter< T > , typename register_type::const_iterator > | register_iterator |
typedef std::vector < RegionIndex< T > > | register_type |
typedef Ref< LazyGetter< T > , T, FindValue< T > > | value_ref |
Public Member Functions | |
const_iterator | begin () const |
Returns an iterator to the first register_. | |
register_iterator | begin_nounpack () const |
Returns an iterator to the start of the register_ without unpacking. | |
record_iterator | begin_record () const |
Returns an iterator to the start of record_. | |
bool | empty () const |
Returns true if record_ is empty. | |
const_iterator | end () const |
Returns the off-the-end iterator. | |
register_iterator | end_nounpack () const |
Returns the off-the-end iter. | |
record_iterator | end_record () const |
Returns an off-the-end iterator. | |
const_iterator | find (uint32_t index) const |
Returns an iterator to the register_ for a given index. | |
LazyGetter () | |
Default constructor. | |
LazyGetter (uint32_t, const boost::shared_ptr< LazyUnpacker< T > > &) | |
Constructor with unpacker. | |
const RegionIndex< T > & | operator[] (uint32_t index) const |
Returns a reference to the register_ for a given index. | |
uint32_t | regions () const |
Returns the size of LazyUnpacker::register_. | |
uint32_t | size () const |
Returns the size of the record_. | |
void | swap (LazyGetter &other) |
Swap contents of class. | |
bool | unpacked (uint32_t) const |
Private Member Functions | |
BOOST_CLASS_REQUIRE (T, boost, LessThanComparableConcept) | |
Private Attributes | |
std::vector< T > | record_ |
std::vector< RegionIndex< T > > | register_ |
boost::shared_ptr < LazyUnpacker< T > > | unpacker_ |
Definition at line 296 of file LazyGetter.h.
typedef boost::transform_iterator< LazyAdapter<T>, typename register_type::const_iterator > edm::LazyGetter< T >::const_iterator |
Definition at line 307 of file LazyGetter.h.
typedef record_type::const_iterator edm::LazyGetter< T >::record_iterator |
Definition at line 306 of file LazyGetter.h.
typedef std::vector<T> edm::LazyGetter< T >::record_type |
Definition at line 304 of file LazyGetter.h.
typedef boost::transform_iterator< UpdateGetterAdapter<T>, typename register_type::const_iterator > edm::LazyGetter< T >::register_iterator |
Definition at line 305 of file LazyGetter.h.
typedef std::vector< RegionIndex<T> > edm::LazyGetter< T >::register_type |
Definition at line 303 of file LazyGetter.h.
typedef Ref< LazyGetter<T>, T, FindValue<T> > edm::LazyGetter< T >::value_ref |
Definition at line 308 of file LazyGetter.h.
edm::LazyGetter< T >::LazyGetter | ( | ) | [inline] |
Default constructor.
Definition at line 365 of file LazyGetter.h.
edm::LazyGetter< T >::LazyGetter | ( | uint32_t | nregions, |
const boost::shared_ptr< LazyUnpacker< T > > & | unpacker | ||
) | [inline] |
Constructor with unpacker.
Definition at line 370 of file LazyGetter.h.
References edm::LazyGetter< T >::record_, and edm::LazyGetter< T >::register_.
LazyGetter< T >::const_iterator edm::LazyGetter< T >::begin | ( | void | ) | const [inline] |
Returns an iterator to the first register_.
Definition at line 423 of file LazyGetter.h.
LazyGetter< T >::register_iterator edm::LazyGetter< T >::begin_nounpack | ( | ) | const [inline] |
Returns an iterator to the start of the register_ without unpacking.
Definition at line 441 of file LazyGetter.h.
{ const UpdateGetterAdapter<T> adapter(this); return boost::make_transform_iterator(register_.begin(),adapter); }
LazyGetter< T >::record_iterator edm::LazyGetter< T >::begin_record | ( | ) | const [inline] |
Returns an iterator to the start of record_.
Definition at line 467 of file LazyGetter.h.
{ return record_.begin(); }
edm::LazyGetter< T >::BOOST_CLASS_REQUIRE | ( | T | , |
boost | , | ||
LessThanComparableConcept | |||
) | [private] |
bool edm::LazyGetter< T >::empty | ( | ) | const [inline] |
Returns true if record_ is empty.
Definition at line 491 of file LazyGetter.h.
{ return record_.empty(); }
LazyGetter< T >::const_iterator edm::LazyGetter< T >::end | ( | void | ) | const [inline] |
Returns the off-the-end iterator.
Definition at line 432 of file LazyGetter.h.
LazyGetter< T >::register_iterator edm::LazyGetter< T >::end_nounpack | ( | ) | const [inline] |
Returns the off-the-end iter.
Definition at line 450 of file LazyGetter.h.
{ const UpdateGetterAdapter<T> adapter(this); return boost::make_transform_iterator(register_.end(),adapter); }
LazyGetter< T >::record_iterator edm::LazyGetter< T >::end_record | ( | ) | const [inline] |
Returns an off-the-end iterator.
Definition at line 475 of file LazyGetter.h.
{ return record_.end(); }
LazyGetter< T >::const_iterator edm::LazyGetter< T >::find | ( | uint32_t | index | ) | const [inline] |
Returns an iterator to the register_ for a given index.
Definition at line 401 of file LazyGetter.h.
References end, and getHLTprescales::index.
const RegionIndex< T > & edm::LazyGetter< T >::operator[] | ( | uint32_t | index | ) | const [inline] |
Returns a reference to the register_ for a given index.
Definition at line 412 of file LazyGetter.h.
References edm::dslvdetail::_throw_range(), and getHLTprescales::index.
uint32_t edm::LazyGetter< T >::regions | ( | ) | const [inline] |
Returns the size of LazyUnpacker::register_.
Definition at line 393 of file LazyGetter.h.
{ return register_.size(); }
uint32_t edm::LazyGetter< T >::size | ( | void | ) | const [inline] |
Returns the size of the record_.
Definition at line 483 of file LazyGetter.h.
{ return record_.size(); }
void edm::LazyGetter< T >::swap | ( | LazyGetter< T > & | other | ) | [inline] |
Swap contents of class.
Definition at line 383 of file LazyGetter.h.
References edm::LazyGetter< T >::record_, edm::LazyGetter< T >::register_, edm::swap(), and edm::LazyGetter< T >::unpacker_.
Referenced by edm::swap().
bool edm::LazyGetter< T >::unpacked | ( | uint32_t | index | ) | const [inline] |
Returns boolean describing unpacking status of a given region without unpacking
Definition at line 459 of file LazyGetter.h.
References getHLTprescales::index.
std::vector<T> edm::LazyGetter< T >::record_ [private] |
Definition at line 359 of file LazyGetter.h.
Referenced by edm::LazyGetter< T >::LazyGetter(), and edm::LazyGetter< T >::swap().
std::vector< RegionIndex<T> > edm::LazyGetter< T >::register_ [private] |
Definition at line 360 of file LazyGetter.h.
Referenced by edm::LazyGetter< T >::LazyGetter(), and edm::LazyGetter< T >::swap().
boost::shared_ptr< LazyUnpacker<T> > edm::LazyGetter< T >::unpacker_ [private] |
Definition at line 358 of file LazyGetter.h.
Referenced by edm::LazyGetter< T >::swap().