LMMS
Loading...
Searching...
No Matches
WDL_PtrKeyedArray< VAL > Class Template Reference

#include <assocarray.h>

Inheritance diagram for WDL_PtrKeyedArray< VAL >:
WDL_AssocArray< INT_PTR, VAL > WDL_AssocArrayImpl< INT_PTR, VAL >

Public Member Functions

 WDL_PtrKeyedArray (void(*valdispose)(VAL)=0)
 ~WDL_PtrKeyedArray ()
Public Member Functions inherited from WDL_AssocArray< INT_PTR, VAL >
 WDL_AssocArray (int(*keycmp)(INT_PTR *k1, INT_PTR *k2), INT_PTR(*keydup)(INT_PTR)=0, void(*keydispose)(INT_PTR)=0, void(*valdispose)(VAL)=0)
VAL Get (INT_PTR key, VAL notfound=0) const
VAL Enumerate (int i, INT_PTR *key=0, VAL notfound=0) const
INT_PTR ReverseLookup (VAL val, INT_PTR notfound=0) const
Public Member Functions inherited from WDL_AssocArrayImpl< INT_PTR, VAL >
 ~WDL_AssocArrayImpl ()
VAL * GetPtr (INT_PTR key, INT_PTR *keyPtrOut=NULL) const
bool Exists (INT_PTR key) const
int Insert (INT_PTR key, VAL val)
void Delete (INT_PTR key)
void DeleteByIndex (int idx)
void DeleteAll (bool resizedown=false)
int GetSize () const
VAL * EnumeratePtr (int i, INT_PTR *key=0) const
INT_PTRReverseLookupPtr (VAL val) const
void ChangeKey (INT_PTR oldkey, INT_PTR newkey)
void ChangeKeyByIndex (int idx, INT_PTR newkey, bool needsort)
void AddUnsorted (INT_PTR key, VAL val)
void Resort (int(*new_keycmp)(INT_PTR *k1, INT_PTR *k2)=NULL)
void ResortStable ()
int LowerBound (INT_PTR key, bool *ismatch) const
int GetIdx (INT_PTR key) const
void SetGranul (int gran)
void CopyContents (const WDL_AssocArrayImpl &cp)
void CopyContentsAsReference (const WDL_AssocArrayImpl &cp)

Static Private Member Functions

static int cmpptr (INT_PTR *a, INT_PTR *b)

Additional Inherited Members

Public Attributes inherited from WDL_AssocArrayImpl< INT_PTR, VAL >
WDL_TypedBuf< KeyVal > m_data
Protected Attributes inherited from WDL_AssocArrayImpl< INT_PTR, VAL >
int(* m_keycmp )(INT_PTR *k1, INT_PTR *k2)
INT_PTR(* m_keydup )(INT_PTR)
void(* m_keydispose )(INT_PTR)
void(* m_valdispose )(VAL)

Constructor & Destructor Documentation

◆ WDL_PtrKeyedArray()

template<class VAL>
WDL_PtrKeyedArray< VAL >::WDL_PtrKeyedArray ( void(* valdispose )(VAL) = 0)
inlineexplicit

◆ ~WDL_PtrKeyedArray()

template<class VAL>
WDL_PtrKeyedArray< VAL >::~WDL_PtrKeyedArray ( )
inline

Member Function Documentation

◆ cmpptr()

template<class VAL>
int WDL_PtrKeyedArray< VAL >::cmpptr ( INT_PTR * a,
INT_PTR * b )
inlinestaticprivate

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