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

#include <assocarray.h>

Inheritance diagram for WDL_StringKeyedArray2< VAL >:
WDL_AssocArrayImpl< const char *, VAL >

Public Member Functions

 WDL_StringKeyedArray2 (bool caseSensitive=true, void(*valdispose)(VAL)=0)
 ~WDL_StringKeyedArray2 ()
Public Member Functions inherited from WDL_AssocArrayImpl< const char *, VAL >
 ~WDL_AssocArrayImpl ()
VAL * GetPtr (const char *key, const char **keyPtrOut=NULL) const
bool Exists (const char *key) const
int Insert (const char *key, VAL val)
void Delete (const char *key)
void DeleteByIndex (int idx)
void DeleteAll (bool resizedown=false)
int GetSize () const
VAL * EnumeratePtr (int i, const char **key=0) const
const char ** ReverseLookupPtr (VAL val) const
void ChangeKey (const char *oldkey, const char *newkey)
void ChangeKeyByIndex (int idx, const char *newkey, bool needsort)
void AddUnsorted (const char *key, VAL val)
void Resort (int(*new_keycmp)(const char **k1, const char **k2)=NULL)
void ResortStable ()
int LowerBound (const char *key, bool *ismatch) const
int GetIdx (const char *key) const
void SetGranul (int gran)
void CopyContents (const WDL_AssocArrayImpl &cp)
void CopyContentsAsReference (const WDL_AssocArrayImpl &cp)

Static Public Member Functions

static const char * dupstr (const char *s)
static int cmpstr (const char **s1, const char **s2)
static int cmpistr (const char **a, const char **b)
static void freestr (const char *s)
static void freecharptr (char *p)

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ WDL_StringKeyedArray2()

template<class VAL>
WDL_StringKeyedArray2< VAL >::WDL_StringKeyedArray2 ( bool caseSensitive = true,
void(* valdispose )(VAL) = 0 )
inlineexplicit

◆ ~WDL_StringKeyedArray2()

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

Member Function Documentation

◆ cmpistr()

template<class VAL>
int WDL_StringKeyedArray2< VAL >::cmpistr ( const char ** a,
const char ** b )
inlinestatic

◆ cmpstr()

template<class VAL>
int WDL_StringKeyedArray2< VAL >::cmpstr ( const char ** s1,
const char ** s2 )
inlinestatic

◆ dupstr()

template<class VAL>
const char * WDL_StringKeyedArray2< VAL >::dupstr ( const char * s)
inlinestatic

◆ freecharptr()

template<class VAL>
void WDL_StringKeyedArray2< VAL >::freecharptr ( char * p)
inlinestatic

◆ freestr()

template<class VAL>
void WDL_StringKeyedArray2< VAL >::freestr ( const char * s)
inlinestatic

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