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

#include <assocarray.h>

Inheritance diagram for WDL_LogicalSortStringKeyedArray< VAL >:
WDL_StringKeyedArray< VAL > WDL_AssocArray< const char *, VAL > WDL_AssocArrayImpl< const char *, VAL >

Public Member Functions

 WDL_LogicalSortStringKeyedArray (bool caseSensitive=true, void(*valdispose)(VAL)=0)
 ~WDL_LogicalSortStringKeyedArray ()
Public Member Functions inherited from WDL_StringKeyedArray< VAL >
 WDL_StringKeyedArray (bool caseSensitive=true, void(*valdispose)(VAL)=0)
 ~WDL_StringKeyedArray ()
Public Member Functions inherited from WDL_AssocArray< const char *, VAL >
 WDL_AssocArray (int(*keycmp)(const char **k1, const char **k2), const char *(*keydup)(const char *)=0, void(*keydispose)(const char *)=0, void(*valdispose)(VAL)=0)
VAL Get (const char *key, VAL notfound=0) const
VAL Enumerate (int i, const char **key=0, VAL notfound=0) const
const char * ReverseLookup (VAL val, const char *notfound=0) const
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 int cmpstr (const char **a, const char **b)
static int cmpistr (const char **a, const char **b)
Static Public Member Functions inherited from WDL_StringKeyedArray< VAL >
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)

Static Private Member Functions

static int _cmpstr (const char *s1, const char *s2, bool case_sensitive)

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_LogicalSortStringKeyedArray()

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

◆ ~WDL_LogicalSortStringKeyedArray()

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

Member Function Documentation

◆ _cmpstr()

template<class VAL>
int WDL_LogicalSortStringKeyedArray< VAL >::_cmpstr ( const char * s1,
const char * s2,
bool case_sensitive )
inlinestaticprivate

◆ cmpistr()

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

◆ cmpstr()

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

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