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

#include <assocarray.h>

Inheritance diagram for WDL_IntKeyedArray< VAL >:
WDL_AssocArray< int, VAL > WDL_AssocArrayImpl< int, VAL >

Public Member Functions

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

Static Private Member Functions

static int cmpint (int *i1, int *i2)

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ WDL_IntKeyedArray()

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

◆ ~WDL_IntKeyedArray()

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

Member Function Documentation

◆ cmpint()

template<class VAL>
int WDL_IntKeyedArray< VAL >::cmpint ( int * i1,
int * i2 )
inlinestaticprivate

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