Photon C++ Client API
5.0.7.3
|
Public Member Functions | |
virtual | ~GenericAssociativeContainer (void)=0 |
virtual GenericAssociativeContainer< T, EKeyType, EValueType > & | operator= (const GenericAssociativeContainer< T, EKeyType, EValueType > &toCopy) |
template<template< typename, typename > class FT> | |
GenericAssociativeContainer< T, EKeyType, EValueType > & | operator= (const GenericAssociativeContainer< FT, EKeyType, EValueType > &toCopy) |
virtual bool | operator== (const T< EKeyType, EValueType > &toCompare) const |
virtual bool | operator!= (const T< EKeyType, EValueType > &toCompare) const |
virtual const EValueType & | operator[] (unsigned int index) const |
virtual const EValueType & | operator[] (int index) const |
virtual EValueType & | operator[] (unsigned int index) |
virtual EValueType & | operator[] (int index) |
virtual void | put (const T< EKeyType, EValueType > &src) |
template<template< typename, typename > class FT> | |
void | put (const GenericAssociativeContainer< FT, EKeyType, EValueType > &src) |
void | put (const EKeyType &key, const EValueType &val) |
void | put (const EKeyType &key, const EValueType pVal, int size) |
void | put (const EKeyType &key, const EValueType pVal, const int *sizes) |
virtual void | remove (const EKeyType &key) |
virtual bool | contains (const EKeyType &key) const |
virtual const EValueType * | getValue (const EKeyType &key) const |
virtual EValueType * | getValue (const EKeyType &key) |
virtual JVector< EKeyType > | getKeys (void) const |
Public Member Functions inherited from GenericAssociativeContainerBase< T< EKeyType, EValueType >, JHashtable, JObject > | |
virtual | ~GenericAssociativeContainerBase (void)=0 |
virtual void | removeAt (unsigned int index) |
virtual void | removeAllElements (void) |
virtual JString & | toString (JString &retStr, bool withTypes=false) const |
virtual JString & | toString (JString &retStr, bool withTypes=false) const =0 |
JString | toString (bool withTypes=false) const |
virtual const JHashtable & | getHashtable (void) const |
virtual unsigned int | getSize (void) const |
Public Member Functions inherited from Base | |
virtual | ~Base (void)=0 |
Public Member Functions inherited from LoggingBase< Base > | |
virtual | ~LoggingBase (void)=0 |
Public Member Functions inherited from ToString | |
virtual | ~ToString (void) |
virtual JString | typeToString (void) const |
JString | toString (bool withTypes=false) const |
Additional Inherited Members | |
Static Public Member Functions inherited from LoggingBase< Base > | |
static void | setListener (const BaseListener *pBaseListener) |
static int | getDebugOutputLevel (void) |
static bool | setDebugOutputLevel (int debugLevel) |
static const LogFormatOptions & | getLogFormatOptions (void) |
static void | setLogFormatOptions (const LogFormatOptions &options) |
|
pure virtual |
Destructor.
|
virtual |
operator=. Makes a deep copy of its right operand into its left operand. This overwrites old data in the left operand.
Reimplemented in JSortedList< EKeyType, EValueType >, JDictionary< nByte, int >, JDictionary< nByte, Common::Helpers::SharedPointer< ExitGames::Voice::LocalVoice > >, JDictionary< int, ExitGames::Common::JVector< Common::Helpers::SharedPointer< ExitGames::Voice::LocalVoice > > >, JDictionary< int, ExitGames::Common::JDictionary< nByte, Common::Helpers::SharedPointer< ExitGames::Voice::RemoteVoice > > >, and JDictionary< EKeyType, EValueType >.
GenericAssociativeContainer< T, EKeyType, EValueType > & operator= | ( | const GenericAssociativeContainer< FT, EKeyType, EValueType > & | toCopy | ) |
operator=. Makes a deep copy of its right operand into its left operand. This overwrites old data in the left operand.
|
virtual |
operator==.
Two instances are considered equal if they each hold the same number of entries and, for a given key, the corresponding values equal each other.
Two values are considered equal to each other, if instances of class OT, that are holding them as payloads, equal each other.
Reimplemented from GenericAssociativeContainerBase< T< EKeyType, EValueType >, JHashtable, JObject >.
|
virtual |
operator!=.
Reimplemented from GenericAssociativeContainerBase< T< EKeyType, EValueType >, JHashtable, JObject >.
|
virtual |
operator[].
Accesses the value at the given index like in an array. This does not check for valid indexes and shows undefined behavior for invalid indexes
|
virtual |
operator[].
Accesses the value at the given index like in an array. This does not check for valid indexes and shows undefined behavior for invalid indexes
|
virtual |
operator[].
Accesses the value at the given index like in an array. This does not check for valid indexes and shows undefined behavior for invalid indexes
|
virtual |
operator[].
Accesses the value at the given index like in an array. This does not check for valid indexes and shows undefined behavior for invalid indexes
|
virtual |
Adds all pairs of a key and a corresponding value from the passed instance to the instance, on which it is called on. If a key is already existing, then its old value will be replaced with the new one.
src | instance, from which to add the content |
Reimplemented from GenericAssociativeContainerBase< T< EKeyType, EValueType >, JHashtable, JObject >.
void put | ( | const GenericAssociativeContainer< FT, EKeyType, EValueType > & | src | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void put | ( | const EKeyType & | key, |
const EValueType & | val | ||
) |
Adds a pair of a key and a corresponding value to the instance.
If the key is already existing, then it's old value will be replaced with the new one. Please have a look at the table of datatypes for a list of supported types for keys and values
key | the key to add |
val | the value to add |
void put | ( | const EKeyType & | key, |
const EValueType | pVal, | ||
int | size | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
This overload accepts singledimensional arrays and NULL-pointers passed for parameter pVal. NULL pointers are only legal input, if size is 0
key | the key to add |
pVal | the value array to add |
size | the size of the value array |
void put | ( | const EKeyType & | key, |
const EValueType | pVal, | ||
const int * | sizes | ||
) |
|
virtual |
Deletes the specified key and the corresponding value, if found in the Hashtable.
key | Pointer to the key of the key/value-pair to remove. |
|
virtual |
Checks, whether the Hashtable contains a certain key.
key | Pointer to the key to look up. |
|
virtual |
|
virtual |