LMMS
Loading...
Searching...
No Matches
dsp::basic_pool< T > Struct Template Reference

A basic preallocated var-array with append and. More...

#include <synth.h>

Public Types

typedef T * iterator
typedef const T * const_iterator

Public Member Functions

 basic_pool ()
void init (int max_count)
T * begin ()
T * end ()
const T * begin () const
const T * end () const
bool empty () const
size_t size () const
bool add (T v)
iterator erase (iterator iter)
void erase (int pos)
pop ()
 ~basic_pool ()

Public Attributes

T * items
int count
int alloc_size

Detailed Description

template<class T>
struct dsp::basic_pool< T >

A basic preallocated var-array with append and.

Member Typedef Documentation

◆ const_iterator

template<class T>
typedef const T* dsp::basic_pool< T >::const_iterator

◆ iterator

template<class T>
typedef T* dsp::basic_pool< T >::iterator

Constructor & Destructor Documentation

◆ basic_pool()

template<class T>
dsp::basic_pool< T >::basic_pool ( )
inline

◆ ~basic_pool()

template<class T>
dsp::basic_pool< T >::~basic_pool ( )
inline

Member Function Documentation

◆ add()

template<class T>
bool dsp::basic_pool< T >::add ( T v)
inline

◆ begin() [1/2]

template<class T>
T * dsp::basic_pool< T >::begin ( )
inline

◆ begin() [2/2]

template<class T>
const T * dsp::basic_pool< T >::begin ( ) const
inline

◆ empty()

template<class T>
bool dsp::basic_pool< T >::empty ( ) const
inline

◆ end() [1/2]

template<class T>
T * dsp::basic_pool< T >::end ( )
inline

◆ end() [2/2]

template<class T>
const T * dsp::basic_pool< T >::end ( ) const
inline

◆ erase() [1/2]

template<class T>
void dsp::basic_pool< T >::erase ( int pos)
inline

◆ erase() [2/2]

template<class T>
iterator dsp::basic_pool< T >::erase ( iterator iter)
inline

◆ init()

template<class T>
void dsp::basic_pool< T >::init ( int max_count)
inline

◆ pop()

template<class T>
T dsp::basic_pool< T >::pop ( )
inline

◆ size()

template<class T>
size_t dsp::basic_pool< T >::size ( ) const
inline

Member Data Documentation

◆ alloc_size

template<class T>
int dsp::basic_pool< T >::alloc_size

◆ count

template<class T>
int dsp::basic_pool< T >::count

◆ items

template<class T>
T* dsp::basic_pool< T >::items

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