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

#include <src/agg/agg_array.h>

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

Public Types

typedef T value_type
 
typedef pod_auto_vector< T, Size > self_type
 

Public Member Functions

 pod_auto_vector ()
 
void remove_all ()
 
void clear ()
 
void add (const T &v)
 
void push_back (const T &v)
 
void inc_size (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

m_array [Size]
 
unsigned m_size
 

Detailed Description

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

Member Typedef Documentation

◆ self_type

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

◆ value_type

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

Constructor & Destructor Documentation

◆ pod_auto_vector()

template<class T , unsigned Size>
agg::pod_auto_vector< T, Size >::pod_auto_vector ( )
inline
84: m_size(0) {}
unsigned m_size
Definition agg_array.h:101

Member Function Documentation

◆ add()

template<class T , unsigned Size>
void agg::pod_auto_vector< T, Size >::add ( const T &  v)
inline

◆ at() [1/2]

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

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

◆ at() [2/2]

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

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

◆ clear()

template<class T , unsigned Size>
void agg::pod_auto_vector< T, Size >::clear ( )
inline

◆ inc_size()

template<class T , unsigned Size>
void agg::pod_auto_vector< T, Size >::inc_size ( unsigned  size)
inline
90{ m_size += size; }
unsigned size() const
Definition agg_array.h:92

References agg::pod_auto_vector< T, Size >::m_size, and agg::pod_auto_vector< T, Size >::size().

+ Here is the call graph for this function:

◆ operator[]() [1/2]

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

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

◆ operator[]() [2/2]

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

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

◆ push_back()

template<class T , unsigned Size>
void agg::pod_auto_vector< T, Size >::push_back ( const T &  v)
inline

◆ remove_all()

template<class T , unsigned Size>
void agg::pod_auto_vector< T, Size >::remove_all ( )
inline

◆ size()

template<class T , unsigned Size>
unsigned agg::pod_auto_vector< T, Size >::size ( ) const
inline
92{ return m_size; }

References agg::pod_auto_vector< T, Size >::m_size.

Referenced by agg::pod_auto_vector< T, Size >::inc_size().

+ Here is the caller graph for this function:

◆ value_at()

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

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

Member Data Documentation

◆ m_array

◆ m_size


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