sead
Loading...
Searching...
No Matches
sead::FixedStrTreeMap< KeyStrN, Value, N > Class Template Reference

#include <seadStrTreeMap.h>

Inherits sead::StrTreeMap< KeyStrN, Value >.

Public Member Functions

 FixedStrTreeMap ()
Public Member Functions inherited from sead::StrTreeMap< KeyStrN, Value >
 StrTreeMap ()
void setBuffer (s32 node_max, void *buf)
void allocBuffer (s32 node_max, Heap *heap, s32 alignment=4)
void freeBuffer ()
bool isBufferReady () const
bool isEmpty () const
bool isFull () const
s32 size () const
s32 maxSize () const
Value * find (const SafeString &key) const
bool contains (const SafeString &key) const
void insert (const SafeString &key, const Value &value)
void clear ()
void eraseNode (Node *node)
void eraseNodeForClear (TreeMapNode< SafeString > *n)
template<typename T>
void forEach (const T &fun) const
Public Member Functions inherited from sead::TreeMapImpl< SafeString >
 TreeMapImpl ()
void insert (Node *node)
void erase (const SafeString &key)
Nodefind (const SafeString &key) const
bool contains (const SafeString &key) const
void forEach (const T &fun) const

Protected Member Functions

void setBuffer (s32 node_max, void *buf)
void allocBuffer (s32 node_max, Heap *heap, s32 alignment=4)
void freeBuffer ()

Protected Attributes

u8 mWork [N *sizeof(typename StrTreeMap< KeyStrN, Value >::Node)]
Protected Attributes inherited from sead::StrTreeMap< KeyStrN, Value >
FreeList mFreeList
s32 mSize
s32 mNodeMax
Protected Attributes inherited from sead::TreeMapImpl< SafeString >
NodemRoot

Additional Inherited Members

Public Types inherited from sead::TreeMapImpl< SafeString >
typedef TreeMapNode< SafeStringNode
Static Public Member Functions inherited from sead::TreeMapImpl< SafeString >
static Nodemin (Node *h)
static NodeeraseMin (Node *h)
static NodemoveRedLeft (Node *h)
static NodemoveRedRight (Node *h)
static NodefixUp (Node *h)
static NoderotateLeft (Node *h)
static NoderotateRight (Node *h)
static void flipColors (Node *h)
static bool isRed (Node *h)

Constructor & Destructor Documentation

◆ FixedStrTreeMap()

template<s32 KeyStrN, typename Value, s32 N>
sead::FixedStrTreeMap< KeyStrN, Value, N >::FixedStrTreeMap ( )
inline

Member Function Documentation

◆ setBuffer()

template<s32 KeyStrN, typename Value, s32 N>
void sead::FixedStrTreeMap< KeyStrN, Value, N >::setBuffer ( s32 node_max,
void * buf )
protected

◆ allocBuffer()

template<s32 KeyStrN, typename Value, s32 N>
void sead::FixedStrTreeMap< KeyStrN, Value, N >::allocBuffer ( s32 node_max,
Heap * heap,
s32 alignment = 4 )
protected

◆ freeBuffer()

template<s32 KeyStrN, typename Value, s32 N>
void sead::FixedStrTreeMap< KeyStrN, Value, N >::freeBuffer ( )
protected

Member Data Documentation

◆ mWork

template<s32 KeyStrN, typename Value, s32 N>
u8 sead::FixedStrTreeMap< KeyStrN, Value, N >::mWork[N *sizeof(typename StrTreeMap< KeyStrN, Value >::Node)]
protected