ATLAS Offline Software
|
#include <ArrayStore.h>
Public Types | |
typedef std::less< IdType > | lessp |
typedef std::map< IdType, int, lessp > | BufferMap |
typedef BufferMap::const_iterator | map_citr |
typedef BufferMap::iterator | map_itr |
Public Member Functions | |
ArrayStore () | |
constructors, optionally with a tag More... | |
ArrayStore (const std::string &tag) | |
virtual | ~ArrayStore () |
destructor More... | |
const std::string & | tag () const |
Tag accessor. More... | |
int | numberOfIDs () |
Size accessor. More... | |
const StorageType & | operator[] (const IdType &ident) const |
Overload [] const access. More... | |
bool | sharedID (const IdType &ident) |
returns flag for index sharing data More... | |
bool | existID (const IdType &ident) |
returns flag for index existing in the std::map More... | |
void | dbg () const |
print method More... | |
map_citr | cbegin () const |
begin/end const iterators More... | |
map_citr | cend () const |
StorageType & | operator[] (const IdType &ident) |
Overload [] modifier. More... | |
void | share (const IdType &ident, const IdType &referenceIdent) |
makes index ident share data with referenceIdent More... | |
void | push_back (const IdType &ident, const StorageType &value) |
makes new index More... | |
void | removeID (const IdType &ident) |
remove index More... | |
void | clear () |
remove all indices More... | |
void | cleanUp () |
remove data with no index pointing to it More... | |
map_itr | begin () |
begin/end iterators More... | |
map_itr | end () |
Private Attributes | |
std::string | m_tag |
The tag std::string. More... | |
BufferMap | m_bufmap |
The std::map. More... | |
std::vector< StorageType > | m_buf |
The object stored in each second element. More... | |
Access and manipulate an indexed storage
Definition at line 32 of file ArrayStore.h.
typedef std::map<IdType,int,lessp> ArrayStore< IdType, StorageType >::BufferMap |
Definition at line 36 of file ArrayStore.h.
typedef std::less<IdType> ArrayStore< IdType, StorageType >::lessp |
Definition at line 35 of file ArrayStore.h.
typedef BufferMap::const_iterator ArrayStore< IdType, StorageType >::map_citr |
Definition at line 37 of file ArrayStore.h.
typedef BufferMap::iterator ArrayStore< IdType, StorageType >::map_itr |
Definition at line 38 of file ArrayStore.h.
|
inline |
|
inline |
Definition at line 91 of file ArrayStore.h.
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
Definition at line 147 of file ArrayStore.h.
void ArrayStore< IdType, StorageType >::cleanUp |
|
inline |
remove all indices
Definition at line 97 of file ArrayStore.h.
|
inline |
print method
Definition at line 118 of file ArrayStore.h.
|
inline |
Definition at line 141 of file ArrayStore.h.
|
inline |
returns flag for index existing in the std::map
Definition at line 112 of file ArrayStore.h.
|
inline |
|
inline |
Overload [] modifier.
Definition at line 124 of file ArrayStore.h.
|
inline |
Overload [] const access.
Definition at line 121 of file ArrayStore.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
The object stored in each second element.
Definition at line 82 of file ArrayStore.h.
|
private |
The std::map.
Definition at line 81 of file ArrayStore.h.
|
private |
The tag std::string.
Definition at line 80 of file ArrayStore.h.