librcsb-core-wrapper
1.000
|
#include <mapped_ptr_vector.h>
Public Member Functions | |
mapped_ptr_vector () | |
mapped_ptr_vector (const StringCompareT &cmp) | |
mapped_ptr_vector (const mapped_ptr_vector &inMappedVector) | |
~mapped_ptr_vector () | |
void | operator= (const mapped_ptr_vector &inMappedVector) |
unsigned int | size () const |
bool | empty () const |
void | clear () |
bool | operator== (const mapped_ptr_vector &inMappedVector) |
void | push_back (T *inP, const unsigned int fileIndex=0) |
void | push_back (const std::string &name, const unsigned int fileIndex=0) |
void | push_back (const std::vector< std::string > &names, const std::vector< unsigned int > &fileIndices) |
void | push_back (const std::vector< std::string > &names) |
void | set (T *inP) |
Associate the object pointer to already entered object name. More... | |
T & | operator[] (unsigned int index) |
T & | operator[] (const std::string &name) |
unsigned int | find (const std::string &name) |
void | rename (const std::string &oldName, const std::string &newName) |
void | erase (const std::string &name) |
Removes object pointer. More... | |
bool | is_read (const std::string &name) |
Is object de-serialized. More... | |
void | read (const std::string &name) |
De-serialize the object. More... | |
unsigned int | write (const std::string &name) |
Serialize the object. More... | |
std::pair< unsigned int, unsigned int > | get_indices (const std::string &name) |
std::string | get_name (const unsigned int index) |
void | get_sorted_indices (std::vector< unsigned int > &sortedIndices) |
This is a container of pointers to objects. The container maintains the order of the inserted elements (as vector does), but it provides for efficient element access, search, serialization and deserialization. Object names must be unique, i.e., for any two object names in the container operator==() must yield false.
mapped_ptr_vector< T, StringCompareT >::mapped_ptr_vector | ( | ) |
mapped_ptr_vector< T, StringCompareT >::mapped_ptr_vector | ( | const StringCompareT & | cmp | ) |
mapped_ptr_vector< T, StringCompareT >::mapped_ptr_vector | ( | const mapped_ptr_vector< T, StringCompareT > & | inMappedVector | ) |
mapped_ptr_vector< T, StringCompareT >::~mapped_ptr_vector | ( | ) |
void mapped_ptr_vector< T, StringCompareT >::clear | ( | ) |
bool mapped_ptr_vector< T, StringCompareT >::empty | ( | ) | const |
void mapped_ptr_vector< T, StringCompareT >::erase | ( | const std::string & | name | ) |
Removes object pointer.
unsigned int mapped_ptr_vector< T, StringCompareT >::find | ( | const std::string & | name | ) |
pair< unsigned int, unsigned int > mapped_ptr_vector< T, StringCompareT >::get_indices | ( | const std::string & | name | ) |
string mapped_ptr_vector< T, StringCompareT >::get_name | ( | const unsigned int | index | ) |
void mapped_ptr_vector< T, StringCompareT >::get_sorted_indices | ( | std::vector< unsigned int > & | sortedIndices | ) |
bool mapped_ptr_vector< T, StringCompareT >::is_read | ( | const std::string & | name | ) |
Is object de-serialized.
void mapped_ptr_vector< T, StringCompareT >::operator= | ( | const mapped_ptr_vector< T, StringCompareT > & | inMappedVector | ) |
bool mapped_ptr_vector< T, StringCompareT >::operator== | ( | const mapped_ptr_vector< T, StringCompareT > & | inMappedVector | ) |
T & mapped_ptr_vector< T, StringCompareT >::operator[] | ( | unsigned int | index | ) |
T& mapped_ptr_vector< T, StringCompareT >::operator[] | ( | const std::string & | name | ) |
void mapped_ptr_vector< T, StringCompareT >::push_back | ( | T * | inP, |
const unsigned int | fileIndex = 0 |
||
) |
void mapped_ptr_vector< T, StringCompareT >::push_back | ( | const std::string & | name, |
const unsigned int | fileIndex = 0 |
||
) |
void mapped_ptr_vector< T, StringCompareT >::push_back | ( | const std::vector< std::string > & | names, |
const std::vector< unsigned int > & | fileIndices | ||
) |
void mapped_ptr_vector< T, StringCompareT >::push_back | ( | const std::vector< std::string > & | names | ) |
void mapped_ptr_vector< T, StringCompareT >::read | ( | const std::string & | name | ) |
De-serialize the object.
void mapped_ptr_vector< T, StringCompareT >::rename | ( | const std::string & | oldName, |
const std::string & | newName | ||
) |
void mapped_ptr_vector< T, StringCompareT >::set | ( | T * | inP | ) |
Associate the object pointer to already entered object name.
unsigned int mapped_ptr_vector< T, StringCompareT >::size | ( | ) | const |
Referenced by TableFile::GetNumBlocks().
unsigned int mapped_ptr_vector< T, StringCompareT >::write | ( | const std::string & | name | ) |
Serialize the object.