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

#include <src/agg/agg_array.h>

Public Types

typedef T value_type
 

Public Member Functions

 pod_array_adaptor (T *array, unsigned size)
 
unsigned size () const
 
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
 

Private Attributes

T * m_array
 
unsigned m_size
 

Detailed Description

template<class T>
class agg::pod_array_adaptor< T >

Member Typedef Documentation

◆ value_type

template<class T >
typedef T agg::pod_array_adaptor< T >::value_type

Constructor & Destructor Documentation

◆ pod_array_adaptor()

template<class T >
agg::pod_array_adaptor< T >::pod_array_adaptor ( T *  array,
unsigned  size 
)
inline
30 :
31 m_array(array), m_size(size) {}
unsigned size() const
Definition agg_array.h:33
unsigned m_size
Definition agg_array.h:42
T * m_array
Definition agg_array.h:41

Member Function Documentation

◆ at() [1/2]

template<class T >
T & agg::pod_array_adaptor< T >::at ( unsigned  i)
inline
37{ return m_array[i]; }

References agg::pod_array_adaptor< T >::m_array.

◆ at() [2/2]

template<class T >
const T & agg::pod_array_adaptor< T >::at ( unsigned  i) const
inline
36{ return m_array[i]; }

References agg::pod_array_adaptor< T >::m_array.

◆ operator[]() [1/2]

template<class T >
T & agg::pod_array_adaptor< T >::operator[] ( unsigned  i)
inline
35{ return m_array[i]; }

References agg::pod_array_adaptor< T >::m_array.

◆ operator[]() [2/2]

template<class T >
const T & agg::pod_array_adaptor< T >::operator[] ( unsigned  i) const
inline
34{ return m_array[i]; }

References agg::pod_array_adaptor< T >::m_array.

◆ size()

template<class T >
unsigned agg::pod_array_adaptor< T >::size ( ) const
inline
33{ return m_size; }

References agg::pod_array_adaptor< T >::m_size.

◆ value_at()

template<class T >
T agg::pod_array_adaptor< T >::value_at ( unsigned  i) const
inline
38{ return m_array[i]; }

References agg::pod_array_adaptor< T >::m_array.

Member Data Documentation

◆ m_array

◆ m_size

template<class T >
unsigned agg::pod_array_adaptor< T >::m_size
private

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