LMMS
Loading...
Searching...
No Matches
WDL_TypedBuf< PTRTYPE > Class Template Reference

#include <heapbuf.h>

Public Member Functions

PTRTYPE * Get () const
PTRTYPE * GetFast () const
int GetSize () const
PTRTYPE * Resize (int newsize, bool resizedown=true)
PTRTYPE * ResizeOK (int newsize, bool resizedown=true)
PTRTYPE * GetAligned (int align) const
PTRTYPE * Add (PTRTYPE val)
PTRTYPE * Add (const PTRTYPE *buf, int bufsz)
PTRTYPE * Set (const PTRTYPE *buf, int bufsz)
PTRTYPE * Insert (PTRTYPE val, int idx)
void Delete (int idx)
void SetGranul (int gran)
int Find (PTRTYPE val) const
 WDL_TypedBuf (int granul=4096)
 ~WDL_TypedBuf ()
WDL_HeapBufGetHeapBuf ()
const WDL_HeapBufGetHeapBuf () const
int DeleteBatch (bool(*proc)(PTRTYPE *p, void *ctx), void *ctx=NULL)

Private Attributes

WDL_HeapBuf m_hb

Constructor & Destructor Documentation

◆ WDL_TypedBuf()

template<class PTRTYPE>
WDL_TypedBuf< PTRTYPE >::WDL_TypedBuf ( int granul = 4096)
inlineexplicit

◆ ~WDL_TypedBuf()

template<class PTRTYPE>
WDL_TypedBuf< PTRTYPE >::~WDL_TypedBuf ( )
inline

Member Function Documentation

◆ Add() [1/2]

template<class PTRTYPE>
PTRTYPE * WDL_TypedBuf< PTRTYPE >::Add ( const PTRTYPE * buf,
int bufsz )
inline

◆ Add() [2/2]

template<class PTRTYPE>
PTRTYPE * WDL_TypedBuf< PTRTYPE >::Add ( PTRTYPE val)
inline

◆ Delete()

template<class PTRTYPE>
void WDL_TypedBuf< PTRTYPE >::Delete ( int idx)
inline

◆ DeleteBatch()

template<class PTRTYPE>
int WDL_TypedBuf< PTRTYPE >::DeleteBatch ( bool(* proc )(PTRTYPE *p, void *ctx),
void * ctx = NULL )
inline

◆ Find()

template<class PTRTYPE>
int WDL_TypedBuf< PTRTYPE >::Find ( PTRTYPE val) const
inline

◆ Get()

template<class PTRTYPE>
PTRTYPE * WDL_TypedBuf< PTRTYPE >::Get ( ) const
inline

◆ GetAligned()

template<class PTRTYPE>
PTRTYPE * WDL_TypedBuf< PTRTYPE >::GetAligned ( int align) const
inline

◆ GetFast()

template<class PTRTYPE>
PTRTYPE * WDL_TypedBuf< PTRTYPE >::GetFast ( ) const
inline

◆ GetHeapBuf() [1/2]

template<class PTRTYPE>
WDL_HeapBuf * WDL_TypedBuf< PTRTYPE >::GetHeapBuf ( )
inline

◆ GetHeapBuf() [2/2]

template<class PTRTYPE>
const WDL_HeapBuf * WDL_TypedBuf< PTRTYPE >::GetHeapBuf ( ) const
inline

◆ GetSize()

template<class PTRTYPE>
int WDL_TypedBuf< PTRTYPE >::GetSize ( ) const
inline

◆ Insert()

template<class PTRTYPE>
PTRTYPE * WDL_TypedBuf< PTRTYPE >::Insert ( PTRTYPE val,
int idx )
inline

◆ Resize()

template<class PTRTYPE>
PTRTYPE * WDL_TypedBuf< PTRTYPE >::Resize ( int newsize,
bool resizedown = true )
inline

◆ ResizeOK()

template<class PTRTYPE>
PTRTYPE * WDL_TypedBuf< PTRTYPE >::ResizeOK ( int newsize,
bool resizedown = true )
inline

◆ Set()

template<class PTRTYPE>
PTRTYPE * WDL_TypedBuf< PTRTYPE >::Set ( const PTRTYPE * buf,
int bufsz )
inline

◆ SetGranul()

template<class PTRTYPE>
void WDL_TypedBuf< PTRTYPE >::SetGranul ( int gran)
inline

Member Data Documentation

◆ m_hb

template<class PTRTYPE>
WDL_HeapBuf WDL_TypedBuf< PTRTYPE >::m_hb
private

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