numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Class of vectors wrapping std::vector class to use singed integers as indices. More...
#include <num_collect/util/vector.h>
Public Types | |
using | const_iterator = typename internal_vector_type::const_iterator |
Type of const iterators. | |
using | const_pointer = typename internal_vector_type::const_pointer |
Type of const pointers. | |
using | const_reference = typename internal_vector_type::const_reference |
Type of const references. | |
using | const_reverse_iterator |
Type of const reverse iterators. | |
using | difference_type = typename internal_vector_type::difference_type |
Type of differences of pointers. | |
using | internal_vector_type = std::vector<T> |
Type of actual vectors. | |
using | iterator = typename internal_vector_type::iterator |
Type of iterators. | |
using | pointer = typename internal_vector_type::pointer |
Type of pointers. | |
using | reference = typename internal_vector_type::reference |
Type of references. | |
using | reverse_iterator = typename internal_vector_type::reverse_iterator |
Type of reverse iterators. | |
using | size_type = index_type |
Type of sizes. | |
using | value_type = typename internal_vector_type::value_type |
Type of values. | |
Public Member Functions | |
vector ()=default | |
Constructor. | |
vector (index_type size, value_type value=value_type()) | |
Constructor. | |
vector (std::initializer_list< T > values) | |
Constructor. | |
auto | back () -> reference |
Access to the final element. | |
auto | back () const -> const_reference |
Access to the final element. | |
auto | begin () -> iterator |
Get the iterator to the first element. | |
auto | begin () const -> const_iterator |
Get the iterator to the first element. | |
auto | cbegin () const -> const_iterator |
Get the iterator to the first element. | |
auto | cend () const -> const_iterator |
Get the past-the-end iterator. | |
void | clear () |
Remove the all elements in this vector. | |
auto | data () const noexcept -> const_pointer |
Get the pointer to the first element. | |
auto | data () noexcept -> pointer |
Get the pointer to the first element. | |
auto | empty () const -> bool |
Check whether this vector is empty. | |
auto | end () -> iterator |
Get the past-the-end iterator. | |
auto | end () const -> const_iterator |
Get the past-the-end iterator. | |
auto | front () -> reference |
Access to the front element. | |
auto | front () const -> const_reference |
Access to the front element. | |
auto | operator[] (index_type index) -> reference |
Access to an element. | |
auto | operator[] (index_type index) const -> const_reference |
Access to an element. | |
void | push_back (const value_type &value) |
Add an element. | |
void | push_back (value_type &&value) |
Add an element. | |
void | reserve (index_type size) |
Reserve memory. | |
void | resize (index_type size) |
Change the size. | |
auto | size () const -> index_type |
Get the size of this vector. | |
Private Attributes | |
internal_vector_type | vector_ |
Actual vector. | |
Class of vectors wrapping std::vector class to use singed integers as indices.
T | Type of values. |
using num_collect::util::vector< T >::const_iterator = typename internal_vector_type::const_iterator |
using num_collect::util::vector< T >::const_pointer = typename internal_vector_type::const_pointer |
using num_collect::util::vector< T >::const_reference = typename internal_vector_type::const_reference |
using num_collect::util::vector< T >::const_reverse_iterator |
using num_collect::util::vector< T >::difference_type = typename internal_vector_type::difference_type |
using num_collect::util::vector< T >::internal_vector_type = std::vector<T> |
using num_collect::util::vector< T >::iterator = typename internal_vector_type::iterator |
using num_collect::util::vector< T >::pointer = typename internal_vector_type::pointer |
using num_collect::util::vector< T >::reference = typename internal_vector_type::reference |
using num_collect::util::vector< T >::reverse_iterator = typename internal_vector_type::reverse_iterator |
using num_collect::util::vector< T >::size_type = index_type |
using num_collect::util::vector< T >::value_type = typename internal_vector_type::value_type |
|
default |
Constructor.
This create an empty vector.
|
inlineexplicit |
|
inline |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inline |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenodiscard |
|
private |