KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
PointerVectorMap is a sorted associative container like stl map but using a vector to store pointers to its data. More...
#include <pointer_vector_map.h>
Public Member Functions | |
Life Cycle | |
PointerVectorMap () | |
Default constructor. More... | |
PointerVectorMap (const PointerVectorMap &rOther) | |
PointerVectorMap (const TContainerType &rContainer) | |
~PointerVectorMap () | |
Destructor. More... | |
Operators | |
PointerVectorMap & | operator= (const PointerVectorMap &rOther) |
TDataType & | operator[] (const key_type &Key) |
pointer | operator() (const key_type &Key) |
Operations | |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
reverse_iterator | rbegin () |
const_reverse_iterator | rbegin () const |
reverse_iterator | rend () |
const_reverse_iterator | rend () const |
pair_iterator | pair_begin () |
pair_const_iterator | pair_begin () const |
pair_iterator | pair_end () |
pair_const_iterator | pair_end () const |
pair_reverse_iterator | pair_rbegin () |
pair_const_reverse_iterator | pair_rbegin () const |
pair_reverse_iterator | pair_rend () |
pair_const_reverse_iterator | pair_rend () const |
reference | front () |
const_reference | front () const |
reference | back () |
const_reference | back () const |
size_type | size () const |
size_type | max_size () const |
key_compare | key_comp () const |
void | swap (PointerVectorMap &rOther) |
void | push_back (value_type x) |
iterator | insert (key_type const &Key, const TDataType &rData) |
iterator | insert (key_type const &Key, const TPointerType pData) |
iterator | erase (iterator pos) |
iterator | erase (iterator first, iterator last) |
iterator | erase (const key_type &k) |
void | clear () |
iterator | find (const key_type &Key) |
const_iterator | find (const key_type &Key) const |
size_type | count (const key_type &Key) |
TDataType & | at (const key_type &Key) |
TDataType & | at (const key_type &Key) const |
void | Sort () |
Access | |
TContainerType & | GetContainer () |
const TContainerType & | GetContainer () const |
size_type | GetMaxBufferSize () const |
Get the maximum size of buffer used in the container. More... | |
void | SetMaxBufferSize (const size_type NewSize) |
Set the maximum size of buffer used in the container. More... | |
size_type | GetSortedPartSize () const |
Get the sorted part size of buffer used in the container. More... | |
void | SetSortedPartSize (const size_type NewSize) |
Set the sorted part size of buffer used in the container. More... | |
Inquiry | |
bool | empty () const |
bool | IsSorted () const |
Input and output | |
std::string | Info () const |
Turn back information as a string. More... | |
void | PrintInfo (std::ostream &rOStream) const |
Print information about this object. More... | |
void | PrintData (std::ostream &rOStream) const |
Print object's data. More... | |
Type Definitions | |
typedef TKeyType | key_type |
Key type for searching in this container. More... | |
typedef TDataType | data_type |
data type stores in this container. More... | |
typedef std::pair< TKeyType, TPointerType > | value_type |
typedef TCompareType | key_compare |
typedef TPointerType | pointer |
typedef TDataType & | reference |
typedef const TDataType & | const_reference |
typedef TContainerType | ContainerType |
typedef PointerVectorMapIterator< typename TContainerType::iterator, TDataType > | iterator |
typedef PointerVectorMapIterator< typename TContainerType::const_iterator, TDataType > | const_iterator |
typedef PointerVectorMapIterator< typename TContainerType::reverse_iterator, TDataType > | reverse_iterator |
typedef PointerVectorMapIterator< typename TContainerType::const_reverse_iterator, TDataType > | const_reverse_iterator |
typedef TContainerType::size_type | size_type |
typedef TContainerType::iterator | pair_iterator |
typedef TContainerType::const_iterator | pair_const_iterator |
typedef TContainerType::reverse_iterator | pair_reverse_iterator |
typedef TContainerType::const_reverse_iterator | pair_const_reverse_iterator |
KRATOS_CLASS_POINTER_DEFINITION (PointerVectorMap) | |
Pointer definition of PointerVectorMap. More... | |
Serialization | |
class | Serializer |
PointerVectorMap is a sorted associative container like stl map but using a vector to store pointers to its data.
PointerVectorMap is a sorted associative container like stl map but using a vector to store pointers its data.
This Container unlike the boost one does not free the memory by itself and relies on using of counted pointers or manual deleting.
typedef PointerVectorMapIterator<typename TContainerType::const_iterator, TDataType> Kratos::PointerVectorMap< TKeyType, TDataType, TCompareType, TPointerType, TContainerType >::const_iterator |
typedef const TDataType& Kratos::PointerVectorMap< TKeyType, TDataType, TCompareType, TPointerType, TContainerType >::const_reference |
typedef PointerVectorMapIterator<typename TContainerType::const_reverse_iterator, TDataType> Kratos::PointerVectorMap< TKeyType, TDataType, TCompareType, TPointerType, TContainerType >::const_reverse_iterator |
typedef TContainerType Kratos::PointerVectorMap< TKeyType, TDataType, TCompareType, TPointerType, TContainerType >::ContainerType |
typedef TDataType Kratos::PointerVectorMap< TKeyType, TDataType, TCompareType, TPointerType, TContainerType >::data_type |
data type stores in this container.
typedef PointerVectorMapIterator<typename TContainerType::iterator, TDataType> Kratos::PointerVectorMap< TKeyType, TDataType, TCompareType, TPointerType, TContainerType >::iterator |
typedef TCompareType Kratos::PointerVectorMap< TKeyType, TDataType, TCompareType, TPointerType, TContainerType >::key_compare |
typedef TKeyType Kratos::PointerVectorMap< TKeyType, TDataType, TCompareType, TPointerType, TContainerType >::key_type |
Key type for searching in this container.
typedef TContainerType::const_iterator Kratos::PointerVectorMap< TKeyType, TDataType, TCompareType, TPointerType, TContainerType >::pair_const_iterator |
typedef TContainerType::const_reverse_iterator Kratos::PointerVectorMap< TKeyType, TDataType, TCompareType, TPointerType, TContainerType >::pair_const_reverse_iterator |
typedef TContainerType::iterator Kratos::PointerVectorMap< TKeyType, TDataType, TCompareType, TPointerType, TContainerType >::pair_iterator |
typedef TContainerType::reverse_iterator Kratos::PointerVectorMap< TKeyType, TDataType, TCompareType, TPointerType, TContainerType >::pair_reverse_iterator |
typedef TPointerType Kratos::PointerVectorMap< TKeyType, TDataType, TCompareType, TPointerType, TContainerType >::pointer |
typedef TDataType& Kratos::PointerVectorMap< TKeyType, TDataType, TCompareType, TPointerType, TContainerType >::reference |
typedef PointerVectorMapIterator<typename TContainerType::reverse_iterator, TDataType> Kratos::PointerVectorMap< TKeyType, TDataType, TCompareType, TPointerType, TContainerType >::reverse_iterator |
typedef TContainerType::size_type Kratos::PointerVectorMap< TKeyType, TDataType, TCompareType, TPointerType, TContainerType >::size_type |
typedef std::pair<TKeyType, TPointerType> Kratos::PointerVectorMap< TKeyType, TDataType, TCompareType, TPointerType, TContainerType >::value_type |
|
inline |
Default constructor.
|
inline |
|
inlineexplicit |
|
inline |
Destructor.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Gives a reference to underly normal container.
|
inline |
Gives a constant reference to underly normal container.
|
inline |
Get the maximum size of buffer used in the container.
|
inline |
Get the sorted part size of buffer used in the container.
|
inline |
Turn back information as a string.
|
inline |
|
inline |
|
inline |
|
inline |
Kratos::PointerVectorMap< TKeyType, TDataType, TCompareType, TPointerType, TContainerType >::KRATOS_CLASS_POINTER_DEFINITION | ( | PointerVectorMap< TKeyType, TDataType, TCompareType, TPointerType, TContainerType > | ) |
Pointer definition of PointerVectorMap.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Print object's data.
|
inline |
Print information about this object.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set the maximum size of buffer used in the container.
This container uses a buffer which keep data unsorted. After buffer size arrived to the MaxBufferSize it will sort all container and empties buffer.
NewSize | Is the new buffer maximum size. |
|
inline |
Set the sorted part size of buffer used in the container.
NewSize | Is the new buffer maximum size. |
|
inline |
|
inline |
|
inline |
|
friend |