SOFA API  5448a14f
Open source framework for multi-physics simuation
sofa::type::fixed_array< T, N > Class Template Reference

#include <fixed_array.h>

Inheritance diagram for sofa::type::fixed_array< T, N >:

Public Attributes

elems [N] {}
 

Public Member Functions

constexpr fixed_array ()
 
constexpr fixed_array (value_type r1) noexcept requires(N
 Specific constructor for 1-element vectors. More...
 
void swap (fixed_array< T, N > &y)
 
constexpr const T * data () const noexcept
 
constexpr const Arrayarray () const noexcept
 direct access to array More...
 
constexpr Arrayarray () noexcept
 direct access to array More...
 
template<typename T2 >
constexpr fixed_array< T, N > & operator= (const fixed_array< T2, N > &rhs) noexcept
 
constexpr void assign (const T &value) noexcept
 

Friends

std::ostream & operator<< (std::ostream &out, const fixed_array< T, N > &a)
 
std::istream & operator>> (std::istream &in, fixed_array< T, N > &a)
 

Attribute details

◆ elems

template<class T , sofa::Size N>
T sofa::type::fixed_array< T, N >::elems[N] {}

Constructor details

◆ fixed_array() [1/2]

template<class T , sofa::Size N>
constexpr sofa::type::fixed_array< T, N >::fixed_array ( )
inlineconstexpr

◆ fixed_array() [2/2]

template<class T , sofa::Size N>
constexpr sofa::type::fixed_array< T, N >::fixed_array ( value_type  r1)
explicitconstexprnoexcept

Specific constructor for 1-element vectors.

Function details

◆ array() [1/2]

template<class T , sofa::Size N>
constexpr const Array& sofa::type::fixed_array< T, N >::array ( ) const
inlineconstexprnoexcept

direct access to array

◆ array() [2/2]

template<class T , sofa::Size N>
constexpr Array& sofa::type::fixed_array< T, N >::array ( )
inlineconstexprnoexcept

direct access to array

◆ assign()

template<class T , sofa::Size N>
constexpr void sofa::type::fixed_array< T, N >::assign ( const T &  value)
inlineconstexprnoexcept

◆ data()

template<class T , sofa::Size N>
constexpr const T* sofa::type::fixed_array< T, N >::data ( ) const
inlineconstexprnoexcept

◆ operator=()

template<class T , sofa::Size N>
template<typename T2 >
constexpr fixed_array<T,N>& sofa::type::fixed_array< T, N >::operator= ( const fixed_array< T2, N > &  rhs)
inlineconstexprnoexcept

◆ swap()

template<class T , sofa::Size N>
void sofa::type::fixed_array< T, N >::swap ( fixed_array< T, N > &  y)
inline

Related details

◆ operator<<

template<class T , sofa::Size N>
std::ostream& operator<< ( std::ostream &  out,
const fixed_array< T, N > &  a 
)
friend

◆ operator>>

template<class T , sofa::Size N>
std::istream& operator>> ( std::istream &  in,
fixed_array< T, N > &  a 
)
friend