SyTen
syten::ArrayImpl::Array< T, Sz > Class Template Reference

A thin wrapper around std::array with some extra bells and whistles. More...

#include <array.h>

+ Inheritance diagram for syten::ArrayImpl::Array< T, Sz >:
+ Collaboration diagram for syten::ArrayImpl::Array< T, Sz >:

Public Member Functions

MemoryUsage::MemorySize allocSize () const
 MemorySize support. More...
 
 Array (std::array< T, Sz > const &other)
 Copy ctor from an array. More...
 
 Array (std::initializer_list< T > list)
 Ctor from an initializer list. More...
 
ConstSpan< T > cs () const
 Creates a ConstSpan over this array. More...
 
MutSpan< T > ms ()
 Creates a MutSpan over this array. 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...
 
- Public Member Functions inherited from std::array< T, Sz >
at (T... args)
 
back (T... args)
 
begin (T... args)
 
cbegin (T... args)
 
cend (T... args)
 
crbegin (T... args)
 
crend (T... args)
 
data (T... args)
 
empty (T... args)
 
end (T... args)
 
fill (T... args)
 
front (T... args)
 
max_size (T... args)
 
operator[] (T... args)
 
rbegin (T... args)
 
rend (T... args)
 
size (T... args)
 
swap (T... args)
 

Additional Inherited Members

- Public Attributes inherited from std::array< T, Sz >
elements
 STL member. More...
 

Detailed Description

template<typename T, Size Sz>
class syten::ArrayImpl::Array< T, Sz >

A thin wrapper around std::array with some extra bells and whistles.

Template Parameters
Tthe contained type
Sznumber of Ts that fit

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