Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
agg::pod_auto_array< T, Size > Class Template Reference

#include <src/agg/agg_array.h>

+ Collaboration diagram for agg::pod_auto_array< T, Size >:

Public Types

typedef T value_type
 
typedef pod_auto_array< T, Size > self_type
 

Public Member Functions

 pod_auto_array ()
 
 pod_auto_array (const T *c)
 
const self_typeoperator= (const T *c)
 
const T & operator[] (unsigned i) const
 
T & operator[] (unsigned i)
 
const T & at (unsigned i) const
 
T & at (unsigned i)
 
value_at (unsigned i) const
 

Static Public Member Functions

static unsigned size ()
 

Private Attributes

m_array [Size]
 

Detailed Description

template<class T, unsigned Size>
class agg::pod_auto_array< T, Size >

Member Typedef Documentation

◆ self_type

template<class T , unsigned Size>
typedef pod_auto_array<T, Size> agg::pod_auto_array< T, Size >::self_type

◆ value_type

template<class T , unsigned Size>
typedef T agg::pod_auto_array< T, Size >::value_type

Constructor & Destructor Documentation

◆ pod_auto_array() [1/2]

template<class T , unsigned Size>
agg::pod_auto_array< T, Size >::pod_auto_array ( )
inline
53{}

◆ pod_auto_array() [2/2]

template<class T , unsigned Size>
agg::pod_auto_array< T, Size >::pod_auto_array ( const T *  c)
inlineexplicit
55 {
56 memcpy(m_array, c, sizeof(T) * Size);
57 }
T m_array[Size]
Definition agg_array.h:73

References agg::pod_auto_array< T, Size >::m_array.

Member Function Documentation

◆ at() [1/2]

template<class T , unsigned Size>
T & agg::pod_auto_array< T, Size >::at ( unsigned  i)
inline
69{ return m_array[i]; }

References agg::pod_auto_array< T, Size >::m_array.

◆ at() [2/2]

template<class T , unsigned Size>
const T & agg::pod_auto_array< T, Size >::at ( unsigned  i) const
inline
68{ return m_array[i]; }

References agg::pod_auto_array< T, Size >::m_array.

◆ operator=()

template<class T , unsigned Size>
const self_type & agg::pod_auto_array< T, Size >::operator= ( const T *  c)
inline
60 {
61 memcpy(m_array, c, sizeof(T) * Size);
62 return *this;
63 }

References agg::pod_auto_array< T, Size >::m_array.

◆ operator[]() [1/2]

template<class T , unsigned Size>
T & agg::pod_auto_array< T, Size >::operator[] ( unsigned  i)
inline
67{ return m_array[i]; }

References agg::pod_auto_array< T, Size >::m_array.

◆ operator[]() [2/2]

template<class T , unsigned Size>
const T & agg::pod_auto_array< T, Size >::operator[] ( unsigned  i) const
inline
66{ return m_array[i]; }

References agg::pod_auto_array< T, Size >::m_array.

◆ size()

template<class T , unsigned Size>
static unsigned agg::pod_auto_array< T, Size >::size ( )
inlinestatic
65{ return Size; }

◆ value_at()

template<class T , unsigned Size>
T agg::pod_auto_array< T, Size >::value_at ( unsigned  i) const
inline
70{ return m_array[i]; }

References agg::pod_auto_array< T, Size >::m_array.

Member Data Documentation

◆ m_array


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