Rosetta
|
std::vector with assert-checked bounds More...
#include <vector0.fwd.hh>
Public Member Functions | |
vector0 (allocator_type const &alloc=allocator_type()) | |
Default constructor. More... | |
vector0 (vector0 const &v) | |
Copy constructor. More... | |
template<ssize_type L_, typename T_ , typename A_ > | |
vector0 (vectorL< L_, T_, A_ > const &v) | |
Assignable copy constructor. More... | |
vector0 (super const &v) | |
std::vector constructor More... | |
template<typename T_ , typename A_ > | |
vector0 (std::vector< T_, A_ > const &v) | |
Assignable std::vector constructor. More... | |
vector0 (size_type const num) | |
Size constructor. More... | |
vector0 (size_type const num, value_type const &value, allocator_type const &alloc=allocator_type()) | |
Uniform value constructor. More... | |
template<typename InputIterator > | |
vector0 (InputIterator const beg, InputIterator const end, allocator_type const &alloc=allocator_type()) | |
Iterator range constructor. More... | |
virtual | ~vector0 () |
Destructor. More... | |
vector0 & | operator= (vector0 const &v) |
Copy assignment. More... | |
template<ssize_type L_, typename T_ , typename A_ > | |
vector0 & | operator= (vectorL< L_, T_, A_ > const &v) |
Assignable copy assignment. More... | |
vector0 & | operator= (super const &v) |
std::vector assignment More... | |
template<typename T_ , typename A_ > | |
vector0 & | operator= (std::vector< T_, A_ > const &v) |
Assignable std::vector assignment. More... | |
![]() | |
vectorL (allocator_type const &alloc=allocator_type()) | |
Default constructor. More... | |
vectorL (vectorL const &v) | |
Copy constructor. More... | |
vectorL (vectorL< L_, T_, A_ > const &v) | |
Assignable copy constructor. More... | |
vectorL (super const &v) | |
std::vector constructor More... | |
vectorL (std::vector< T_, A_ > const &v) | |
Assignable std::vector constructor. More... | |
vectorL (size_type const num) | |
Size constructor. More... | |
vectorL (size_type const num, value_type const &value, allocator_type const &alloc=allocator_type()) | |
Uniform value constructor. More... | |
vectorL (InputIterator const beg, InputIterator const end, allocator_type const &alloc=allocator_type()) | |
Iterator range constructor. More... | |
virtual | ~vectorL () |
Destructor. More... | |
vectorL & | operator= (vectorL const &v) |
Copy assignment. More... | |
vectorL & | operator= (vectorL< L_, T_, A_ > const &v) |
Assignable copy assignment. More... | |
vectorL & | operator= (super const &v) |
std::vector assignment More... | |
vectorL & | operator= (std::vector< T_, A_ > const &v) |
Assignable std::vector assignment. More... | |
super const & | vector () const |
std::vector const explicit conversion More... | |
super & | vector () |
std::vector explicit conversion More... | |
vectorL & | append (vectorL const &v) |
Append another vectorL to the back of the vector. More... | |
vectorL & | add_back (T const &t) |
Add an element to the back of the vector. More... | |
vectorL & | remove_back () |
Remove the element at the back of the vector. More... | |
void | shrink () |
Shrink the index map to remove unused capacity. More... | |
bool | contains (T const &t) const |
Check if vector contains a given element. More... | |
SSize | index_of (T const &t) |
Return the index of a given element or exit if not found. More... | |
bool | has (index_type const i) const |
Has an element with an index? More... | |
const_reference | operator[] (index_type const i) const |
vectorL[ i ] const More... | |
reference | operator[] (index_type const i) |
vectorL[ i ] More... | |
const_reference | at (index_type const i) const |
vectorL.at( i ) const More... | |
reference | at (index_type const i) |
vectorL.at( i ) More... | |
index_type | l () const |
Lower index. More... | |
index_type | u () const |
Upper index. More... | |
void | swap (vectorL &v) |
swap( vectorL ) More... | |
Private Types | |
typedef vectorL< 0, T, A > | super |
Additional Inherited Members | |
![]() | |
typedef | vectorL_IndexSelector< L > |
![]() | |
typedef std::vector< T, A > | root |
std::vector with assert-checked bounds
Definition at line 44 of file vector0.fwd.hh.
typedef super::Allocator utility::vector0< T, A >::Allocator |
Definition at line 82 of file vector0.hh.
typedef super::allocator_type utility::vector0< T, A >::allocator_type |
Definition at line 66 of file vector0.hh.
typedef super::const_iterator utility::vector0< T, A >::const_iterator |
Definition at line 61 of file vector0.hh.
typedef super::const_pointer utility::vector0< T, A >::const_pointer |
Definition at line 59 of file vector0.hh.
typedef super::const_reference utility::vector0< T, A >::const_reference |
Definition at line 57 of file vector0.hh.
typedef super::const_reverse_iterator utility::vector0< T, A >::const_reverse_iterator |
Definition at line 63 of file vector0.hh.
typedef super::ConstIterator utility::vector0< T, A >::ConstIterator |
Definition at line 77 of file vector0.hh.
typedef super::ConstPointer utility::vector0< T, A >::ConstPointer |
Definition at line 75 of file vector0.hh.
typedef super::ConstReference utility::vector0< T, A >::ConstReference |
Definition at line 73 of file vector0.hh.
typedef super::ConstReverseIterator utility::vector0< T, A >::ConstReverseIterator |
Definition at line 79 of file vector0.hh.
typedef super::Difference utility::vector0< T, A >::Difference |
Definition at line 81 of file vector0.hh.
typedef super::difference_type utility::vector0< T, A >::difference_type |
Definition at line 65 of file vector0.hh.
typedef super::Index utility::vector0< T, A >::Index |
Definition at line 83 of file vector0.hh.
typedef super::index_type utility::vector0< T, A >::index_type |
Definition at line 67 of file vector0.hh.
typedef super::iterator utility::vector0< T, A >::iterator |
Definition at line 60 of file vector0.hh.
typedef super::Iterator utility::vector0< T, A >::Iterator |
Definition at line 76 of file vector0.hh.
typedef super::pointer utility::vector0< T, A >::pointer |
Definition at line 58 of file vector0.hh.
typedef super::Pointer utility::vector0< T, A >::Pointer |
Definition at line 74 of file vector0.hh.
typedef super::reference utility::vector0< T, A >::reference |
Definition at line 56 of file vector0.hh.
typedef super::Reference utility::vector0< T, A >::Reference |
Definition at line 72 of file vector0.hh.
typedef super::reverse_iterator utility::vector0< T, A >::reverse_iterator |
Definition at line 62 of file vector0.hh.
typedef super::ReverseIterator utility::vector0< T, A >::ReverseIterator |
Definition at line 78 of file vector0.hh.
typedef super::Size utility::vector0< T, A >::Size |
Definition at line 80 of file vector0.hh.
typedef super::size_type utility::vector0< T, A >::size_type |
Definition at line 64 of file vector0.hh.
typedef super::SSize utility::vector0< T, A >::SSize |
Definition at line 84 of file vector0.hh.
typedef super::ssize_type utility::vector0< T, A >::ssize_type |
Definition at line 68 of file vector0.hh.
|
private |
Definition at line 48 of file vector0.hh.
typedef super::Value utility::vector0< T, A >::Value |
Definition at line 71 of file vector0.hh.
typedef super::value_type utility::vector0< T, A >::value_type |
Definition at line 55 of file vector0.hh.
|
inlineexplicit |
Default constructor.
Definition at line 120 of file vector0.hh.
|
inline |
Copy constructor.
Definition at line 127 of file vector0.hh.
|
inline |
Assignable copy constructor.
Definition at line 135 of file vector0.hh.
|
inlineexplicit |
std::vector constructor
Definition at line 143 of file vector0.hh.
|
inlineexplicit |
Assignable std::vector constructor.
Definition at line 152 of file vector0.hh.
|
inlineexplicit |
Size constructor.
Definition at line 160 of file vector0.hh.
|
inline |
Uniform value constructor.
Definition at line 167 of file vector0.hh.
|
inline |
Iterator range constructor.
Definition at line 179 of file vector0.hh.
|
inlinevirtual |
Destructor.
Definition at line 191 of file vector0.hh.
|
inline |
Copy assignment.
Definition at line 201 of file vector0.hh.
|
inline |
Assignable copy assignment.
Definition at line 214 of file vector0.hh.
|
inline |
std::vector assignment
Definition at line 224 of file vector0.hh.
|
inline |
Assignable std::vector assignment.
Definition at line 235 of file vector0.hh.