SyTen
syten::Vec< T > Class Template Reference

A thin wrapper around std::vector with some extra bells and whistles (and without others). More...

#include <vec.h>

+ Inheritance diagram for syten::Vec< T >:
+ Collaboration diagram for syten::Vec< T >:

Public Member Functions

MemoryUsage::MemorySize allocSize () const
 MemorySize support. More...
 
ConstSpan< T > cs () const
 Creates a ConstSpan over this vector. More...
 
MutSpan< T > ms ()
 Creates a MutSpan over this vector. More...
 
T & operator() (long long int v)
 Access the element at position restrict(v, this->size()), allowing for wrap-arounds and negative indices. More...
 
T const & operator() (long long int v) const
 Access the element at position restrict(v, this->size()), allowing for wrap-arounds and negative indices. More...
 
template<typename Archive >
void serialize (Archive &ar, const unsigned int)
 Boost serialisation. More...
 
template<std::size_t rank>
 Vec (std::array< T, rank > &&arr)
 Ctor from a std::array of the same type. More...
 
template<std::size_t rank>
 Vec (std::array< T, rank > const &arr)
 Ctor from a std::array of the same type. More...
 
 Vec (std::vector< T > &&v)
 Move-ctor. More...
 
 Vec (std::vector< T > const &v)
 Copy-ctor. More...
 
- Public Member Functions inherited from std::vector< T >
assign (T... args)
 
at (T... args)
 
back (T... args)
 
begin (T... args)
 
capacity (T... args)
 
cbegin (T... args)
 
cend (T... args)
 
clear (T... args)
 
crbegin (T... args)
 
crend (T... args)
 
data (T... args)
 
emplace (T... args)
 
emplace_back (T... args)
 
empty (T... args)
 
end (T... args)
 
erase (T... args)
 
front (T... args)
 
get_allocator (T... args)
 
insert (T... args)
 
max_size (T... args)
 
operator= (T... args)
 
operator[] (T... args)
 
pop_back (T... args)
 
push_back (T... args)
 
rbegin (T... args)
 
rend (T... args)
 
reserve (T... args)
 
resize (T... args)
 
shrink_to_fit (T... args)
 
size (T... args)
 
swap (T... args)
 
vector (T... args)
 
~vector (T... args)
 

Additional Inherited Members

- Public Attributes inherited from std::vector< T >
elements
 STL member. More...
 

Detailed Description

template<typename T>
class syten::Vec< T >

A thin wrapper around std::vector with some extra bells and whistles (and without others).

Remarks
To create a Vec<T> with some elements a, b and c, use the mve helper function: mve(a, b, c).

The documentation for this class was generated from the following file: