![]() |
Rosetta
2021.16
|
std::vector with L-based indexing More...
#include <vectorL.hh>

Public Member Functions | |
| vectorL (allocator_type const &alloc=allocator_type()) | |
| Default constructor. More... | |
| vectorL (vectorL const &v) | |
| Copy constructor. More... | |
| template<ssize_type L_, typename T_ , typename A_ > | |
| vectorL (vectorL< L_, T_, A_ > const &v) | |
| Assignable copy constructor. More... | |
| vectorL (super const &v) | |
| std::vector constructor More... | |
| template<typename T_ , typename A_ > | |
| 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... | |
| template<typename InputIterator > | |
| vectorL (InputIterator const beg, InputIterator const ending, allocator_type const &alloc=allocator_type()) | |
| Iterator range constructor. More... | |
| vectorL (vectorL &&v) | |
| C++11 Move constructor. More... | |
| vectorL (super &&v) | |
| C++11 std::vector move constructor. More... | |
| vectorL (std::initializer_list< T > init, const A &alloc=A()) | |
| C++11 initializer list constructor. More... | |
| virtual | ~vectorL () |
| Destructor. More... | |
| vectorL & | operator= (vectorL const &v) |
| Copy assignment. More... | |
| template<ssize_type L_, typename T_ , typename A_ > | |
| vectorL & | operator= (vectorL< L_, T_, A_ > const &v) |
| Assignable copy assignment. More... | |
| vectorL & | operator= (super const &v) |
| std::vector assignment More... | |
| template<typename T_ , typename A_ > | |
| 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... | |
| vectorL & | pop (T const &t) |
| Remove an element of the vector. More... | |
| void | erase_index (index_type const i) |
| Deletes the index from the vector. Has same thread-safety/iterator guarantees as std::vector::erase() (That is, it's not safe to access anything past the point of deletion, including the end() iterator.) 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... | |
Public Attributes | |
| typedef | vectorL_IndexSelector< L > = 0 >::index_type index_type |
Protected Types | |
| typedef std::vector< T, A > | root |
Private Types | |
| typedef std::vector< T, A > | super |
Static Private Attributes | |
| static index_type const | l_ |
| Lower index in index type. More... | |
Friends | |
| bool | operator== (vectorL const &a, vectorL const &b) |
| vectorL == vectorL More... | |
| bool | operator!= (vectorL const &a, vectorL const &b) |
| vectorL != vectorL More... | |
| bool | operator< (vectorL const &a, vectorL const &b) |
| vectorL < vectorL More... | |
| bool | operator<= (vectorL const &a, vectorL const &b) |
| vectorL <= vectorL More... | |
| bool | operator>= (vectorL const &a, vectorL const &b) |
| vectorL >= vectorL More... | |
| bool | operator> (vectorL const &a, vectorL const &b) |
| vectorL > vectorL More... | |
| bool | operator== (vectorL const &a, super const &b) |
| vectorL == std::vector More... | |
| bool | operator!= (vectorL const &a, super const &b) |
| vectorL != std::vector More... | |
| bool | operator< (vectorL const &a, super const &b) |
| vectorL < std::vector More... | |
| bool | operator<= (vectorL const &a, super const &b) |
| vectorL <= std::vector More... | |
| bool | operator>= (vectorL const &a, super const &b) |
| vectorL >= std::vector More... | |
| bool | operator> (vectorL const &a, super const &b) |
| vectorL > std::vector More... | |
| bool | operator== (super const &a, vectorL const &b) |
| std::vector == vectorL More... | |
| bool | operator!= (super const &a, vectorL const &b) |
| std::vector != vectorL More... | |
| bool | operator< (super const &a, vectorL const &b) |
| std::vector < vectorL More... | |
| bool | operator<= (super const &a, vectorL const &b) |
| std::vector <= vectorL More... | |
| bool | operator>= (super const &a, vectorL const &b) |
| std::vector >= vectorL More... | |
| bool | operator> (super const &a, vectorL const &b) |
| std::vector > vectorL More... | |
| template<platform::SSize LL, typename TT , typename AA > | |
| void | swap (vectorL< LL, TT, AA > &a, vectorL< LL, TT, AA > &b) |
| swap( vectorL, vectorL ) More... | |
| template<platform::SSize LL, typename TT , typename AA > | |
| void | swap (vectorL< LL, TT, AA > &a, std::vector< TT, AA > &b) |
| swap( vectorL, std::vector ) More... | |
| template<platform::SSize LL, typename TT , typename AA > | |
| void | swap (std::vector< TT, AA > &a, vectorL< LL, TT, AA > &b) |
| swap( std::vector, vectorL ) More... | |
std::vector with L-based indexing
| typedef super::allocator_type utility::vectorL< SSize, T, A >::Allocator |
| typedef super::allocator_type utility::vectorL< SSize, T, A >::allocator_type |
| typedef super::const_iterator utility::vectorL< SSize, T, A >::const_iterator |
| typedef super::const_pointer utility::vectorL< SSize, T, A >::const_pointer |
| typedef super::const_reference utility::vectorL< SSize, T, A >::const_reference |
| typedef super::const_reverse_iterator utility::vectorL< SSize, T, A >::const_reverse_iterator |
| typedef super::const_iterator utility::vectorL< SSize, T, A >::ConstIterator |
| typedef super::const_pointer utility::vectorL< SSize, T, A >::ConstPointer |
| typedef super::const_reference utility::vectorL< SSize, T, A >::ConstReference |
| typedef super::const_reverse_iterator utility::vectorL< SSize, T, A >::ConstReverseIterator |
| typedef super::difference_type utility::vectorL< SSize, T, A >::Difference |
| typedef super::difference_type utility::vectorL< SSize, T, A >::difference_type |
| typedef super::iterator utility::vectorL< SSize, T, A >::iterator |
| typedef super::iterator utility::vectorL< SSize, T, A >::Iterator |
| typedef super::pointer utility::vectorL< SSize, T, A >::pointer |
| typedef super::pointer utility::vectorL< SSize, T, A >::Pointer |
| typedef super::reference utility::vectorL< SSize, T, A >::reference |
| typedef super::reference utility::vectorL< SSize, T, A >::Reference |
| typedef super::reverse_iterator utility::vectorL< SSize, T, A >::reverse_iterator |
| typedef super::reverse_iterator utility::vectorL< SSize, T, A >::ReverseIterator |
|
protected |
| typedef ::platform::Size utility::vectorL< SSize, T, A >::Size |
| typedef super::size_type utility::vectorL< SSize, T, A >::size_type |
| typedef ::platform::SSize utility::vectorL< SSize, T, A >::SSize |
| typedef ::platform::SSize utility::vectorL< SSize, T, A >::ssize_type |
|
private |
| typedef super::value_type utility::vectorL< SSize, T, A >::Value |
| typedef super::value_type utility::vectorL< SSize, T, A >::value_type |
|
inlineexplicit |
Default constructor.
Referenced by utility::vectorL< L, bool, A >::shrink(), and utility::vectorL< 1, std::string, A >::shrink().
|
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.
|
inline |
C++11 Move constructor.
|
inlineexplicit |
C++11 std::vector move constructor.
|
inline |
C++11 initializer list constructor.
|
inlinevirtual |
Destructor.
|
inline |
Add an element to the back of the vector.
|
inline |
Append another vectorL to the back of the vector.
Referenced by main(), make_mutation_tag(), and basic::options::process().
|
inline |
|
inline |
vectorL.at( i )
|
inline |
Check if vector contains a given element.
Referenced by basic::database::schema_generator::Schema::add_column(), basic::database::schema_generator::Schema::add_foreign_key(), get_sphere_xyz(), and read_silent_input_as_library().
|
inline |
Deletes the index from the vector. Has same thread-safety/iterator guarantees as std::vector::erase() (That is, it's not safe to access anything past the point of deletion, including the end() iterator.)
|
inline |
Has an element with an index?
Referenced by utility::keys::ClassKeyMap< K, T, C >::activate(), utility::keys::ClassKeyVector< K, T, C >::activate(), utility::keys::SmallKeyMap< K, T >::active(), utility::keys::KeyVector< K, T >::active(), utility::keys::SmallKeyVector< PathVectorOptionKey, PathVectorOption >::active(), utility::keys::SmallKeyMap< K, T >::add_key(), utility::keys::SmallKeyVector< PathVectorOptionKey, PathVectorOption >::add_key(), energy_cluster(), utility::keys::ClassKeyMap< K, T, C >::has(), utility::keys::KeyVector< K, T >::has(), utility::keys::ClassKeyVector< K, T, C >::has(), utility::keys::SmallKeyMap< K, T >::inactive(), utility::keys::KeyVector< K, T >::inactive(), and utility::keys::SmallKeyVector< PathVectorOptionKey, PathVectorOption >::inactive().
|
inline |
Return the index of a given element or exit if not found.
|
inline |
Lower index.
|
inline |
Copy assignment.
|
inline |
Assignable copy assignment.
|
inline |
std::vector assignment
|
inline |
Assignable std::vector assignment.
|
inline |
vectorL[ i ] const
|
inline |
vectorL[ i ]
|
inline |
Remove an element of the vector.
Referenced by MPDomainAssembly::apply().
|
inline |
Remove the element at the back of the vector.
|
inline |
Shrink the index map to remove unused capacity.
Referenced by utility::keys::ClassKeyMap< K, T, C >::map_shrink(), utility::keys::ClassKeyVector< K, T, C >::map_shrink(), utility::keys::ClassKeyMap< K, T, C >::shrink(), utility::keys::SmallKeyMap< K, T >::shrink(), utility::keys::KeyVector< K, T >::shrink(), utility::keys::ClassKeyVector< K, T, C >::shrink(), and utility::keys::SmallKeyVector< PathVectorOptionKey, PathVectorOption >::shrink().
|
inline |
Upper index.
|
inline |
std::vector const explicit conversion
|
inline |
std::vector explicit conversion
|
friend |
vectorL != std::vector
|
friend |
std::vector != vectorL
|
friend |
vectorL < std::vector
|
friend |
std::vector < vectorL
|
friend |
vectorL <= std::vector
|
friend |
std::vector <= vectorL
|
friend |
vectorL == std::vector
|
friend |
std::vector == vectorL
|
friend |
vectorL > std::vector
|
friend |
std::vector > vectorL
|
friend |
vectorL >= std::vector
|
friend |
std::vector >= vectorL
|
friend |
swap( vectorL, vectorL )
|
friend |
swap( vectorL, std::vector )
|
friend |
swap( std::vector, vectorL )
|
staticprivate |
Lower index in index type.
Referenced by utility::vectorL< L, bool, A >::at(), utility::vectorL< 1, std::string, A >::at(), utility::vectorL< L, bool, A >::erase_index(), utility::vectorL< 1, std::string, A >::erase_index(), utility::vectorL< L, bool, A >::has(), utility::vectorL< 1, std::string, A >::has(), utility::vectorL< 1, std::string, A >::index_of(), utility::vectorL< L, bool, A >::l(), utility::vectorL< 1, std::string, A >::l(), utility::vectorL< L, bool, A >::operator[](), utility::vectorL< 1, std::string, A >::operator[](), utility::vectorL< L, bool, A >::u(), and utility::vectorL< 1, std::string, A >::u().
| typedef utility::vectorL< SSize, T, A >::vectorL_IndexSelector< L > = 0 >::index_type index_type |
1.8.7