Main purpose to introduce the class was to customize operator []. More...
#include <MED_Vector.hxx>
Public Types | |
typedef size_t | size_type |
typedef std::vector< _Tp, _Alloc > | superclass |
typedef superclass::allocator_type | allocator_type |
typedef _Tp | value_type |
typedef value_type & | reference |
typedef const value_type & | const_reference |
Public Member Functions | |
TVector (const allocator_type &__a=allocator_type()) | |
TVector (size_type __n, const value_type &__val, const allocator_type &__a=allocator_type()) | |
TVector (size_type __n) | |
TVector (const TVector &__x) | |
template<typename _InputIterator > | |
TVector (_InputIterator __first, _InputIterator __last, const allocator_type &__a=allocator_type()) | |
template<typename _Yp , typename _Al > | |
TVector (TVector< _Yp, _Al > __y) | |
TVector & | operator= (const TVector &__x) |
template<typename _Yp , typename _Al > | |
TVector & | operator= (TVector< _Yp, _Al > __y) |
reference | operator[] (size_type __n) |
const_reference | operator[] (size_type __n) const |
reference | at (size_type __n) |
const_reference | at (size_type __n) const |
Data Fields | |
T | elements |
STL member. More... | |
Protected Member Functions | |
void | check_range (size_type __n) const |
const_reference | get_value (size_type __n) const |
reference | get_value (size_type __n) |
Main purpose to introduce the class was to customize operator [].
typedef superclass::allocator_type MED::TVector< _Tp, _Alloc >::allocator_type |
typedef const value_type& MED::TVector< _Tp, _Alloc >::const_reference |
typedef value_type& MED::TVector< _Tp, _Alloc >::reference |
typedef size_t MED::TVector< _Tp, _Alloc >::size_type |
typedef std::vector<_Tp, _Alloc> MED::TVector< _Tp, _Alloc >::superclass |
typedef _Tp MED::TVector< _Tp, _Alloc >::value_type |
|
explicit |
MED::TVector< _Tp, _Alloc >::TVector | ( | size_type | __n, |
const value_type & | __val, | ||
const allocator_type & | __a = allocator_type() |
||
) |
|
explicit |
MED::TVector< _Tp, _Alloc >::TVector | ( | const TVector< _Tp, _Alloc > & | __x | ) |
MED::TVector< _Tp, _Alloc >::TVector | ( | _InputIterator | __first, |
_InputIterator | __last, | ||
const allocator_type & | __a = allocator_type() |
||
) |
MED::TVector< _Tp, _Alloc >::TVector | ( | TVector< _Yp, _Al > | __y | ) |
reference MED::TVector< _Tp, _Alloc >::at | ( | size_type | __n | ) |
const_reference MED::TVector< _Tp, _Alloc >::at | ( | size_type | __n | ) | const |
|
protected |
Referenced by MED::TVector< TFloat >::at(), and MED::TVector< TFloat >::operator[]().
|
protected |
Referenced by MED::TVector< TFloat >::at(), and MED::TVector< TFloat >::operator[]().
|
protected |
TVector& MED::TVector< _Tp, _Alloc >::operator= | ( | const TVector< _Tp, _Alloc > & | __x | ) |
TVector& MED::TVector< _Tp, _Alloc >::operator= | ( | TVector< _Yp, _Al > | __y | ) |
reference MED::TVector< _Tp, _Alloc >::operator[] | ( | size_type | __n | ) |
const_reference MED::TVector< _Tp, _Alloc >::operator[] | ( | size_type | __n | ) | const |
|
inherited |
STL member.