#include <PVector.h>
Container class replicating std::vector functionality, designed for update/append operations in CMS-ORA with no need of delete queries. Write and Read are like standards vectors. Update assumes the following:
typedef std::vector<Tp>::const_iterator ora::PVector< Tp >::const_iterator |
typedef std::vector<Tp>::const_reference ora::PVector< Tp >::const_reference |
typedef std::vector<Tp>::const_reverse_iterator ora::PVector< Tp >::const_reverse_iterator |
typedef std::vector<Tp>::iterator ora::PVector< Tp >::iterator |
typedef std::vector<Tp>::reference ora::PVector< Tp >::reference |
typedef std::vector<Tp>::reverse_iterator ora::PVector< Tp >::reverse_iterator |
typedef std::vector<Tp>::size_type ora::PVector< Tp >::size_type |
typedef std::vector<Tp> ora::PVector< Tp >::store_type |
typedef std::vector<Tp>::value_type ora::PVector< Tp >::value_type |
ora::PVector< Tp >::PVector | ( | ) |
Definition at line 230 of file PVector.h.
:m_vec(),m_persistentSize(0){ }
ora::PVector< Tp >::PVector | ( | size_type | n, |
const Tp & | value = Tp() |
||
) | [explicit] |
ora::PVector< Tp >::PVector | ( | const PVector< Tp > & | v | ) |
virtual ora::PVector< Tp >::~PVector | ( | ) | [inline, virtual] |
void ora::PVector< Tp >::assign | ( | size_type | n, |
const Tp & | u | ||
) | [inline] |
reference ora::PVector< Tp >::at | ( | size_type | n | ) | [inline] |
const_reference ora::PVector< Tp >::at | ( | size_type | n | ) | const [inline] |
reference ora::PVector< Tp >::back | ( | ) | [inline] |
Definition at line 162 of file PVector.h.
Referenced by ora::QueryableVectorData< Tp >::back().
{ return m_vec.back(); }
const_reference ora::PVector< Tp >::back | ( | ) | const [inline] |
iterator ora::PVector< Tp >::begin | ( | void | ) | [inline] |
Definition at line 62 of file PVector.h.
Referenced by ora::QueryableVectorData< Tp >::begin(), ora::QueryableVectorData< Tp >::cbegin(), cond::IOV::find(), and cond::IOVSequence::sortMe().
{ return m_vec.begin(); }
const_iterator ora::PVector< Tp >::begin | ( | void | ) | const [inline] |
size_type ora::PVector< Tp >::capacity | ( | ) | const [inline] |
Definition at line 117 of file PVector.h.
Referenced by ora::QueryableVectorData< Tp >::capacity().
{ return m_vec.capacity(); }
void ora::PVector< Tp >::clear | ( | void | ) | [inline] |
Definition at line 187 of file PVector.h.
Referenced by ora::QueryableVectorData< Tp >::clear().
{ m_vec.clear(); }
bool ora::PVector< Tp >::empty | ( | ) | const [inline] |
Definition at line 122 of file PVector.h.
Referenced by ora::QueryableVectorData< Tp >::empty().
{ return m_vec.empty(); }
const_iterator ora::PVector< Tp >::end | ( | void | ) | const [inline] |
iterator ora::PVector< Tp >::end | ( | void | ) | [inline] |
Definition at line 67 of file PVector.h.
Referenced by ora::QueryableVectorData< Tp >::cend(), ora::QueryableVectorData< Tp >::end(), cond::IOVSequence::exist(), cond::IOVSequence::find(), cond::IOV::find(), cond::IOVSequence::findSince(), and cond::IOVSequence::sortMe().
{ return m_vec.end(); }
reference ora::PVector< Tp >::front | ( | ) | [inline] |
Definition at line 152 of file PVector.h.
Referenced by cond::IOVSequence::firstSince(), and ora::QueryableVectorData< Tp >::front().
{ return m_vec.front(); }
const_reference ora::PVector< Tp >::front | ( | ) | const [inline] |
size_type ora::PVector< Tp >::max_size | ( | ) | const [inline] |
Definition at line 107 of file PVector.h.
Referenced by ora::QueryableVectorData< Tp >::max_size().
{ return m_vec.max_size(); }
bool ora::PVector< Tp >::operator!= | ( | const PVector< Tp > & | vec | ) | const [inline] |
ora::PVector< Tp > & ora::PVector< Tp >::operator= | ( | const PVector< Tp > & | v | ) |
Definition at line 239 of file PVector.h.
References ora::PVector< Tp >::m_persistentSize, and ora::PVector< Tp >::m_vec.
{ m_vec = v.m_vec; m_persistentSize = v.m_persistentSize; return *this; }
bool ora::PVector< Tp >::operator== | ( | const PVector< Tp > & | vec | ) | const [inline] |
reference ora::PVector< Tp >::operator[] | ( | size_type | n | ) | [inline] |
const_reference ora::PVector< Tp >::operator[] | ( | size_type | n | ) | const [inline] |
size_type ora::PVector< Tp >::persistentSize | ( | ) | const [inline] |
Definition at line 212 of file PVector.h.
Referenced by ora::QueryableVectorData< Tp >::persistentSize().
{ return m_persistentSize; }
void ora::PVector< Tp >::pop_back | ( | ) | [inline] |
Definition at line 182 of file PVector.h.
Referenced by ora::QueryableVectorData< Tp >::pop_back(), and cond::IOVSequence::truncate().
{ m_vec.pop_back(); }
void ora::PVector< Tp >::push_back | ( | const Tp & | x | ) | [inline] |
Definition at line 177 of file PVector.h.
Referenced by cond::IOVSequence::add(), cond::IOV::add(), and ora::QueryableVectorData< Tp >::push_back().
const_reverse_iterator ora::PVector< Tp >::rbegin | ( | ) | const [inline] |
reverse_iterator ora::PVector< Tp >::rbegin | ( | ) | [inline] |
Definition at line 82 of file PVector.h.
Referenced by ora::QueryableVectorData< Tp >::crbegin(), and ora::QueryableVectorData< Tp >::rbegin().
{ return m_vec.rbegin(); }
const_reverse_iterator ora::PVector< Tp >::rend | ( | ) | const [inline] |
reverse_iterator ora::PVector< Tp >::rend | ( | ) | [inline] |
Definition at line 87 of file PVector.h.
Referenced by ora::QueryableVectorData< Tp >::crend(), and ora::QueryableVectorData< Tp >::rend().
{ return m_vec.rend(); }
void ora::PVector< Tp >::reserve | ( | size_type | n | ) | [inline] |
Definition at line 127 of file PVector.h.
Referenced by ora::QueryableVectorData< Tp >::reserve().
void ora::PVector< Tp >::resize | ( | size_type | n, |
const Tp & | value = Tp() |
||
) | [inline] |
size_type ora::PVector< Tp >::size | ( | void | ) | const [inline] |
Definition at line 102 of file PVector.h.
Referenced by cond::IOVSequence::add(), cond::IOV::add(), ora::QueryableVectorData< Tp >::push_back(), ora::QueryableVectorData< Tp >::size(), and cond::IOVSequence::truncate().
{ return m_vec.size(); }
const void* ora::PVector< Tp >::storageAddress | ( | ) | const [inline] |
size_type ora::PVector< Tp >::m_persistentSize [private] |
Definition at line 224 of file PVector.h.
Referenced by ora::PVector< Tp >::operator=(), and ora::PVector< std::pair< size_t, Tp > >::persistentSize().
std::vector<Tp> ora::PVector< Tp >::m_vec [private] |
Definition at line 221 of file PVector.h.
Referenced by ora::PVector< std::pair< size_t, Tp > >::assign(), ora::PVector< std::pair< size_t, Tp > >::at(), ora::PVector< std::pair< size_t, Tp > >::back(), ora::PVector< std::pair< size_t, Tp > >::begin(), ora::PVector< std::pair< size_t, Tp > >::capacity(), ora::PVector< std::pair< size_t, Tp > >::clear(), ora::PVector< std::pair< size_t, Tp > >::empty(), ora::PVector< std::pair< size_t, Tp > >::end(), ora::PVector< std::pair< size_t, Tp > >::front(), ora::PVector< std::pair< size_t, Tp > >::max_size(), ora::PVector< std::pair< size_t, Tp > >::operator!=(), ora::PVector< Tp >::operator=(), ora::PVector< std::pair< size_t, Tp > >::operator==(), ora::PVector< std::pair< size_t, Tp > >::operator[](), ora::PVector< std::pair< size_t, Tp > >::pop_back(), ora::PVector< std::pair< size_t, Tp > >::push_back(), ora::PVector< std::pair< size_t, Tp > >::rbegin(), ora::PVector< std::pair< size_t, Tp > >::rend(), ora::PVector< std::pair< size_t, Tp > >::reserve(), ora::PVector< std::pair< size_t, Tp > >::resize(), ora::PVector< std::pair< size_t, Tp > >::size(), and ora::PVector< std::pair< size_t, Tp > >::storageAddress().