G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
TMap Class Reference

Public Member Functions

Functions
V & FindOrAdd (const K &in Key)
 Find the value associated with the key. If none exists, add and return a new value using the default constructor.
const V & opIndex (const K &in Key) const
void Add (const K &in Key, const V &in Value)
bool Contains (const K &in Key) const
bool RemoveAndCopyValue (const K &in Key, V &out OutValue)
bool Remove (const K &in Key)
int Num () const
bool IsEmpty () const
V & opIndex (const K &in Key)
V & FindOrAdd (const K &in Key, const V &in DefaultValue)
 Find the value associated with the key. If none exists, add and return new value set to DefaultValue.
bool Find (const K &in Key, V &out OutValue) const
 Find the value associated with the key. If none exists, return false. Copies the found value to OutValue.
TMap< K, V > & opAssign (TMap< K, V > Other)
void Empty (int Slack=0)
void Reset ()
TMapIterator< K, V > Iterator ()
TMapConstIterator< K, V > Iterator () const

Member Function Documentation

◆ Add()

void Add ( const K &in Key,
const V &in Value )

◆ Contains()

bool Contains ( const K &in Key) const

◆ Empty()

void Empty ( int Slack = 0)

◆ Find()

bool Find ( const K &in Key,
V &out OutValue ) const

Find the value associated with the key. If none exists, return false. Copies the found value to OutValue.

◆ FindOrAdd() [1/2]

V & FindOrAdd ( const K &in Key)

Find the value associated with the key. If none exists, add and return a new value using the default constructor.

◆ FindOrAdd() [2/2]

V & FindOrAdd ( const K &in Key,
const V &in DefaultValue )

Find the value associated with the key. If none exists, add and return new value set to DefaultValue.

◆ IsEmpty()

bool IsEmpty ( ) const

◆ Iterator() [1/2]

TMapIterator< K, V > Iterator ( )

◆ Iterator() [2/2]

TMapConstIterator< K, V > Iterator ( ) const

◆ Num()

int Num ( ) const

◆ opAssign()

TMap< K, V > & opAssign ( TMap< K, V > Other)

◆ opIndex() [1/2]

V & opIndex ( const K &in Key)

◆ opIndex() [2/2]

const V & opIndex ( const K &in Key) const

◆ Remove()

bool Remove ( const K &in Key)

◆ RemoveAndCopyValue()

bool RemoveAndCopyValue ( const K &in Key,
V &out OutValue )

◆ Reset()

void Reset ( )