#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] |
Definition at line 172 of file PVector.h.
References ora::PVector< Tp >::m_vec.
reference ora::PVector< Tp >::at | ( | size_type | n | ) | [inline] |
Definition at line 147 of file PVector.h.
References ora::PVector< Tp >::m_vec.
const_reference ora::PVector< Tp >::at | ( | size_type | n | ) | const [inline] |
Definition at line 142 of file PVector.h.
References ora::PVector< Tp >::m_vec.
reference ora::PVector< Tp >::back | ( | ) | [inline] |
Definition at line 162 of file PVector.h.
References ora::PVector< Tp >::m_vec.
{ return m_vec.back(); }
const_reference ora::PVector< Tp >::back | ( | ) | const [inline] |
Definition at line 167 of file PVector.h.
References ora::PVector< Tp >::m_vec.
{ return m_vec.back(); }
iterator ora::PVector< Tp >::begin | ( | void | ) | [inline] |
Definition at line 62 of file PVector.h.
References ora::PVector< Tp >::m_vec.
{ return m_vec.begin(); }
const_iterator ora::PVector< Tp >::begin | ( | void | ) | const [inline] |
Definition at line 72 of file PVector.h.
References ora::PVector< Tp >::m_vec.
{ return m_vec.begin(); }
size_type ora::PVector< Tp >::capacity | ( | ) | const [inline] |
Definition at line 117 of file PVector.h.
References ora::PVector< Tp >::m_vec.
{ return m_vec.capacity(); }
void ora::PVector< Tp >::clear | ( | void | ) | [inline] |
bool ora::PVector< Tp >::empty | ( | ) | const [inline] |
Definition at line 122 of file PVector.h.
References ora::PVector< Tp >::m_vec.
{ return m_vec.empty(); }
const_iterator ora::PVector< Tp >::end | ( | void | ) | const [inline] |
Definition at line 77 of file PVector.h.
References ora::PVector< Tp >::m_vec.
{ return m_vec.end(); }
iterator ora::PVector< Tp >::end | ( | void | ) | [inline] |
Definition at line 67 of file PVector.h.
References ora::PVector< Tp >::m_vec.
{ return m_vec.end(); }
reference ora::PVector< Tp >::front | ( | ) | [inline] |
Definition at line 152 of file PVector.h.
References ora::PVector< Tp >::m_vec.
{ return m_vec.front(); }
const_reference ora::PVector< Tp >::front | ( | ) | const [inline] |
Definition at line 157 of file PVector.h.
References ora::PVector< Tp >::m_vec.
{ return m_vec.front(); }
size_type ora::PVector< Tp >::max_size | ( | ) | const [inline] |
Definition at line 107 of file PVector.h.
References ora::PVector< Tp >::m_vec.
{ return m_vec.max_size(); }
bool ora::PVector< Tp >::operator!= | ( | const PVector< Tp > & | vec | ) | const [inline] |
Definition at line 198 of file PVector.h.
References ora::PVector< Tp >::m_vec.
{ return m_vec!=vec.m_vec; }
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] |
Definition at line 193 of file PVector.h.
References ora::PVector< Tp >::m_vec.
{ return m_vec==vec.m_vec; }
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.
References ora::PVector< Tp >::m_persistentSize.
{ return m_persistentSize; }
void ora::PVector< Tp >::pop_back | ( | ) | [inline] |
Definition at line 182 of file PVector.h.
References ora::PVector< Tp >::m_vec.
{ m_vec.pop_back(); }
void ora::PVector< Tp >::push_back | ( | const Tp & | x | ) | [inline] |
Definition at line 177 of file PVector.h.
References ora::PVector< Tp >::m_vec.
const_reverse_iterator ora::PVector< Tp >::rbegin | ( | ) | const [inline] |
Definition at line 92 of file PVector.h.
References ora::PVector< Tp >::m_vec.
{ return m_vec.rbegin(); }
reverse_iterator ora::PVector< Tp >::rbegin | ( | ) | [inline] |
Definition at line 82 of file PVector.h.
References ora::PVector< Tp >::m_vec.
{ return m_vec.rbegin(); }
const_reverse_iterator ora::PVector< Tp >::rend | ( | ) | const [inline] |
Definition at line 97 of file PVector.h.
References ora::PVector< Tp >::m_vec.
{ return m_vec.rend(); }
reverse_iterator ora::PVector< Tp >::rend | ( | ) | [inline] |
Definition at line 87 of file PVector.h.
References ora::PVector< Tp >::m_vec.
{ return m_vec.rend(); }
void ora::PVector< Tp >::reserve | ( | size_type | n | ) | [inline] |
Definition at line 127 of file PVector.h.
References ora::PVector< Tp >::m_vec.
void ora::PVector< Tp >::resize | ( | size_type | n, |
const Tp & | value = Tp() |
||
) | [inline] |
Definition at line 112 of file PVector.h.
References ora::PVector< Tp >::m_vec, and relativeConstraints::value.
size_type ora::PVector< Tp >::size | ( | void | ) | const [inline] |
Definition at line 102 of file PVector.h.
References ora::PVector< Tp >::m_vec.
{ 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< Tp >::persistentSize().
std::vector<Tp> ora::PVector< Tp >::m_vec [private] |
Definition at line 221 of file PVector.h.
Referenced by ora::PVector< Tp >::assign(), ora::PVector< Tp >::at(), ora::PVector< Tp >::back(), ora::PVector< Tp >::begin(), ora::PVector< Tp >::capacity(), ora::PVector< Tp >::clear(), ora::PVector< Tp >::empty(), ora::PVector< Tp >::end(), ora::PVector< Tp >::front(), ora::PVector< Tp >::max_size(), ora::PVector< Tp >::operator!=(), ora::PVector< Tp >::operator=(), ora::PVector< Tp >::operator==(), ora::PVector< Tp >::operator[](), ora::PVector< Tp >::pop_back(), ora::PVector< Tp >::push_back(), ora::PVector< Tp >::rbegin(), ora::PVector< Tp >::rend(), ora::PVector< Tp >::reserve(), ora::PVector< Tp >::resize(), ora::PVector< Tp >::size(), and ora::PVector< Tp >::storageAddress().