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

#include <assocarray.h>

Inheritance diagram for WDL_IntKeyedArray2< VAL >:
WDL_AssocArrayImpl< int, VAL >

Public Member Functions

 WDL_IntKeyedArray2 (void(*valdispose)(VAL)=0)
 ~WDL_IntKeyedArray2 ()
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_IntKeyedArray2()

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

◆ ~WDL_IntKeyedArray2()

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

Member Function Documentation

◆ cmpint()

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

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