Lugdunum  0.1.0
Public Member Functions | Private Attributes | List of all members
lug::Math::ValArray< Size, T > Class Template Reference

#include <ValArray.hpp>

Inheritance diagram for lug::Math::ValArray< Size, T >:
[legend]
Collaboration diagram for lug::Math::ValArray< Size, T >:
[legend]

Public Member Functions

 ValArray ()=default
 
 ValArray (const T &value)
 
 ValArray (const T *values)
 
 ValArray (const ValArray< Size, T > &rhs)=default
 
 ValArray (ValArray< Size, T > &&rhs)=default
 
 ValArray (std::initializer_list< T > list)
 
ValArray< Size, T > & operator= (const ValArray< Size, T > &rhs)=default
 
ValArray< Size, T > & operator= (ValArray< Size, T > &&rhs)=default
 
 ~ValArray ()=default
 
const T & operator[] (size_t pos) const
 
T & operator[] (size_t pos)
 
const std::array< T, Size > & data () const
 
std::array< T, Size > & data ()
 
constexpr size_t size () const
 
sum () const
 
ValArray< Size, T > & operator+= (const T &rhs)
 
ValArray< Size, T > & operator-= (const T &rhs)
 
ValArray< Size, T > & operator*= (const T &rhs)
 
ValArray< Size, T > & operator/= (const T &rhs)
 
ValArray< Size, T > & operator+= (const ValArray< Size, T > &rhs)
 
ValArray< Size, T > & operator-= (const ValArray< Size, T > &rhs)
 
ValArray< Size, T > & operator*= (const ValArray< Size, T > &rhs)
 
ValArray< Size, T > & operator/= (const ValArray< Size, T > &rhs)
 

Private Attributes

std::array< T, Size > _data
 

Detailed Description

template<size_t Size, typename T = float>
class lug::Math::ValArray< Size, T >

Definition at line 13 of file ValArray.hpp.

Constructor & Destructor Documentation

◆ ValArray() [1/6]

template<size_t Size, typename T = float>
lug::Math::ValArray< Size, T >::ValArray ( )
default

◆ ValArray() [2/6]

template<size_t Size, typename T = float>
ValArray::ValArray ( const T &  value)
explicit

Definition at line 2 of file ValArray.inl.

◆ ValArray() [3/6]

template<size_t Size, typename T = float>
ValArray::ValArray ( const T *  values)
explicit

Definition at line 7 of file ValArray.inl.

◆ ValArray() [4/6]

template<size_t Size, typename T = float>
lug::Math::ValArray< Size, T >::ValArray ( const ValArray< Size, T > &  rhs)
default

◆ ValArray() [5/6]

template<size_t Size, typename T = float>
lug::Math::ValArray< Size, T >::ValArray ( ValArray< Size, T > &&  rhs)
default

◆ ValArray() [6/6]

template<size_t Size, typename T = float>
ValArray::ValArray ( std::initializer_list< T >  list)

Definition at line 12 of file ValArray.inl.

◆ ~ValArray()

template<size_t Size, typename T = float>
lug::Math::ValArray< Size, T >::~ValArray ( )
default

Member Function Documentation

◆ operator=() [1/2]

template<size_t Size, typename T = float>
ValArray<Size, T>& lug::Math::ValArray< Size, T >::operator= ( const ValArray< Size, T > &  rhs)
default

◆ operator=() [2/2]

template<size_t Size, typename T = float>
ValArray<Size, T>& lug::Math::ValArray< Size, T >::operator= ( ValArray< Size, T > &&  rhs)
default

◆ operator[]() [1/2]

template<size_t Size, typename T = float>
const T & ValArray::operator[] ( size_t  pos) const
inline

Definition at line 17 of file ValArray.inl.

◆ operator[]() [2/2]

template<size_t Size, typename T = float>
T & ValArray::operator[] ( size_t  pos)
inline

Definition at line 22 of file ValArray.inl.

◆ data() [1/2]

template<size_t Size, typename T = float>
const std::array< T, Size > & ValArray::data ( ) const
inline

Definition at line 27 of file ValArray.inl.

◆ data() [2/2]

template<size_t Size, typename T = float>
std::array< T, Size > & ValArray::data ( )
inline

Definition at line 32 of file ValArray.inl.

◆ size()

template<size_t Size, typename T = float>
constexpr size_t ValArray::size ( ) const
inline

Definition at line 37 of file ValArray.inl.

◆ sum()

template<size_t Size, typename T = float>
T ValArray::sum ( ) const
inline

Definition at line 42 of file ValArray.inl.

◆ operator+=() [1/2]

template<size_t Size, typename T = float>
ValArray< Size, T > & ValArray::operator+= ( const T &  rhs)
inline

Definition at line 48 of file ValArray.inl.

◆ operator-=() [1/2]

template<size_t Size, typename T = float>
ValArray< Size, T > & ValArray::operator-= ( const T &  rhs)
inline

Definition at line 57 of file ValArray.inl.

◆ operator*=() [1/2]

template<size_t Size, typename T = float>
ValArray< Size, T > & ValArray::operator*= ( const T &  rhs)
inline

Definition at line 66 of file ValArray.inl.

◆ operator/=() [1/2]

template<size_t Size, typename T = float>
ValArray< Size, T > & ValArray::operator/= ( const T &  rhs)
inline

Definition at line 75 of file ValArray.inl.

◆ operator+=() [2/2]

template<size_t Size, typename T = float>
ValArray< Size, T > & ValArray::operator+= ( const ValArray< Size, T > &  rhs)
inline

Definition at line 85 of file ValArray.inl.

◆ operator-=() [2/2]

template<size_t Size, typename T = float>
ValArray< Size, T > & ValArray::operator-= ( const ValArray< Size, T > &  rhs)
inline

Definition at line 94 of file ValArray.inl.

◆ operator*=() [2/2]

template<size_t Size, typename T = float>
ValArray< Size, T > & ValArray::operator*= ( const ValArray< Size, T > &  rhs)
inline

Definition at line 103 of file ValArray.inl.

◆ operator/=() [2/2]

template<size_t Size, typename T = float>
ValArray< Size, T > & ValArray::operator/= ( const ValArray< Size, T > &  rhs)
inline

Definition at line 112 of file ValArray.inl.

Member Data Documentation

◆ _data

template<size_t Size, typename T = float>
std::array<T, Size> lug::Math::ValArray< Size, T >::_data
private

Definition at line 50 of file ValArray.hpp.


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