|
librcsb-core-wrapper 1.005
|
#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. | |
| 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. | |
| bool | is_read (const std::string &name) |
| Is object de-serialized. | |
| void | read (const std::string &name) |
| De-serialize the object. | |
| unsigned int | write (const std::string &name) |
| Serialize the object. | |
| 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 | ( | ) |
Referenced by mapped_ptr_vector(), operator=(), and operator==().
| 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 | ) |
References mapped_ptr_vector().
| 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.
References get_indices().
| unsigned int mapped_ptr_vector< T, StringCompareT >::find | ( | const std::string & | name | ) |
References get_indices().
| 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.
References get_indices().
| void mapped_ptr_vector< T, StringCompareT >::operator= | ( | const mapped_ptr_vector< T, StringCompareT > & | inMappedVector | ) |
References mapped_ptr_vector().
| bool mapped_ptr_vector< T, StringCompareT >::operator== | ( | const mapped_ptr_vector< T, StringCompareT > & | inMappedVector | ) |
References mapped_ptr_vector().
| T & mapped_ptr_vector< T, StringCompareT >::operator[] | ( | const std::string & | name | ) |
| T & mapped_ptr_vector< T, StringCompareT >::operator[] | ( | unsigned int | index | ) |
| 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 | ) |
| 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 | ( | T * | inP, |
| const unsigned int | fileIndex = 0 ) |
| void mapped_ptr_vector< T, StringCompareT >::read | ( | const std::string & | name | ) |
De-serialize the object.
References get_indices().
| void mapped_ptr_vector< T, StringCompareT >::rename | ( | const std::string & | oldName, |
| const std::string & | newName ) |
References get_indices().
| void mapped_ptr_vector< T, StringCompareT >::set | ( | T * | inP | ) |
Associate the object pointer to already entered object name.
References get_indices().
| unsigned int mapped_ptr_vector< T, StringCompareT >::size | ( | ) | const |
| unsigned int mapped_ptr_vector< T, StringCompareT >::write | ( | const std::string & | name | ) |
Serialize the object.
References get_indices().