![]() |
Rosetta Utilities
2015.25
|
std::vector with 1-based indexing More...
#include <vector1.hh>
Public Member Functions | |
| vector1 (allocator_type const &alloc=allocator_type()) | |
| Default constructor. More... | |
| vector1 (vector1 const &v) | |
| Copy constructor. More... | |
| template<ssize_type L_, typename T_ , typename A_ > | |
| vector1 (vectorL< L_, T_, A_ > const &v) | |
| Assignable copy constructor. More... | |
| vector1 (super const &v) | |
| std::vector constructor More... | |
| template<typename T_ , typename A_ > | |
| vector1 (std::vector< T_, A_ > const &v) | |
| Assignable std::vector constructor. More... | |
| vector1 (size_type const num) | |
| Size constructor. More... | |
| vector1 (size_type const num, value_type const &value, allocator_type const &alloc=allocator_type()) | |
| Uniform value constructor. More... | |
| template<typename InputIterator > | |
| vector1 (InputIterator const beg, InputIterator const end, allocator_type const &alloc=allocator_type()) | |
| Iterator range constructor. More... | |
| virtual | ~vector1 () |
| Destructor. More... | |
| vector1 & | operator= (vector1 const &v) |
| Copy assignment. More... | |
| template<ssize_type L_, typename T_ , typename A_ > | |
| vector1 & | operator= (vectorL< L_, T_, A_ > const &v) |
| Assignable copy assignment. More... | |
| vector1 & | operator= (super const &v) |
| std::vector assignment More... | |
| template<typename T_ , typename A_ > | |
| vector1 & | operator= (std::vector< T_, A_ > const &v) |
| Assignable std::vector assignment. More... | |
| int | index (T const t) const |
| Find the index of an element. If not found then return 0;. More... | |
| bool | has_value (T const t) const |
| useful function – was commented out previously due, I think, to a conflict with has() in OptionKeys! Now renamed to has_value(). More... | |
Private Types | |
| typedef vectorL< 1, T, A > | super |
std::vector with 1-based indexing
| typedef super::Allocator utility::vector1< T, A >::Allocator |
| typedef super::allocator_type utility::vector1< T, A >::allocator_type |
| typedef super::const_iterator utility::vector1< T, A >::const_iterator |
| typedef super::const_pointer utility::vector1< T, A >::const_pointer |
| typedef super::const_reference utility::vector1< T, A >::const_reference |
| typedef super::const_reverse_iterator utility::vector1< T, A >::const_reverse_iterator |
| typedef super::ConstIterator utility::vector1< T, A >::ConstIterator |
| typedef super::ConstPointer utility::vector1< T, A >::ConstPointer |
| typedef super::ConstReference utility::vector1< T, A >::ConstReference |
| typedef super::ConstReverseIterator utility::vector1< T, A >::ConstReverseIterator |
| typedef super::Difference utility::vector1< T, A >::Difference |
| typedef super::difference_type utility::vector1< T, A >::difference_type |
| typedef super::Index utility::vector1< T, A >::Index |
| typedef super::index_type utility::vector1< T, A >::index_type |
| typedef super::iterator utility::vector1< T, A >::iterator |
| typedef super::Iterator utility::vector1< T, A >::Iterator |
| typedef super::pointer utility::vector1< T, A >::pointer |
| typedef super::Pointer utility::vector1< T, A >::Pointer |
| typedef super::reference utility::vector1< T, A >::reference |
| typedef super::Reference utility::vector1< T, A >::Reference |
| typedef super::reverse_iterator utility::vector1< T, A >::reverse_iterator |
| typedef super::ReverseIterator utility::vector1< T, A >::ReverseIterator |
| typedef super::Size utility::vector1< T, A >::Size |
| typedef super::size_type utility::vector1< T, A >::size_type |
| typedef super::SSize utility::vector1< T, A >::SSize |
| typedef super::ssize_type utility::vector1< T, A >::ssize_type |
|
private |
| typedef super::Value utility::vector1< T, A >::Value |
| typedef super::value_type utility::vector1< T, A >::value_type |
|
inlineexplicit |
Default constructor.
|
inline |
Copy constructor.
|
inline |
Assignable copy constructor.
|
inlineexplicit |
std::vector constructor
|
inlineexplicit |
Assignable std::vector constructor.
|
inlineexplicit |
Size constructor.
|
inline |
Uniform value constructor.
|
inline |
Iterator range constructor.
|
inlinevirtual |
Destructor.
|
inline |
useful function – was commented out previously due, I think, to a conflict with has() in OptionKeys! Now renamed to has_value().
|
inline |
Find the index of an element. If not found then return 0;.
|
inline |
Copy assignment.
|
inline |
Assignable copy assignment.
|
inline |
std::vector assignment
|
inline |
Assignable std::vector assignment.
1.8.7