Photon C++ Client API
5.0.7.3
|


Public Member Functions | |
| virtual | ~AssociativeContainerBase (void)=0 |
| AssociativeContainerBase< T, OT > & | operator= (const AssociativeContainerBase< T, OT > &toCopy) |
| virtual bool | operator== (const AssociativeContainerBase< T, OT > &toCompare) const |
| virtual bool | operator!= (const AssociativeContainerBase< T, OT > &toCompare) const |
| virtual const OT & | operator[] (unsigned int index) const |
| virtual const OT & | operator[] (int index) const |
| virtual OT & | operator[] (unsigned int index) |
| virtual OT & | operator[] (int index) |
| virtual void | put (const T &src) |
| template<typename FKeyType , typename FValueType > | |
| void | put (const FKeyType &key, const FValueType &val) |
| template<typename FKeyType , typename FValueType > | |
| void | put (const FKeyType &key, const FValueType pVal, int size) |
| template<typename FKeyType , typename FValueType > | |
| void | put (const FKeyType &key, const FValueType pVal, const int *sizes) |
| template<typename FKeyType > | |
| const OT * | getValue (const FKeyType &key) const |
| template<typename FKeyType > | |
| OT * | getValue (const FKeyType &key) |
| virtual unsigned int | getSize (void) const |
| virtual const JVector< OT > & | getKeys (void) const |
| template<typename FKeyType > | |
| void | remove (const FKeyType &key) |
| virtual void | removeAt (unsigned int index) |
| template<typename FKeyType > | |
| bool | contains (const FKeyType &key) const |
| 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 |
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.
| AssociativeContainerBase< T, OT > & operator= | ( | const AssociativeContainerBase< T, OT > & | 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.
|
virtual |
operator!=.
|
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 in Hashtable.
| void put | ( | const FKeyType & | key, |
| const FValueType & | 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 FKeyType & | key, |
| const FValueType | 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 FKeyType & | key, |
| const FValueType | pVal, | ||
| const int * | sizes | ||
| ) |
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 multidimensional arrays and NULL-pointers passed for parameter pVal. The array that is passed for parameter pVal has to be a pointer of the correct abstraction level, meaning a normal pointer for a singledimensional array, a doublepointer for a twodimensional array, a triplepointer for a threedimensional array and so on. For pVal NULL pointers are only legal input, if sizes[0] is 0. For sizes NULL is no valid input.
| key | the key to add |
| pVal | the value array to add |
| sizes | the sizes for every dimension of the value array - the length of this array has to match the dimensions of pVal |
| const OT * getValue | ( | const FKeyType & | key | ) | const |
| OT * getValue | ( | const FKeyType & | key | ) |
|
virtual |
|
virtual |
| void remove | ( | const FKeyType & | key | ) |
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 |
Deletes the key and the value at the specified index, if the specified index is smaller than the return value of getSize().
| index | the index at which the key and value should be deleted. |
| bool contains | ( | const FKeyType & | key | ) | const |
Checks, whether the Hashtable contains a certain key.
| key | Pointer to the key to look up. |
|
virtual |
Clears the Hashtable, which means deleting all its content.
| retStr | reference to a string, to store the return-value in; the information, which is generated by this function, will be attached at the end of any eventually existing previous content of the string |
| withTypes | set to true, to include type information in the generated string |
Implements ToString.
| toString |
| retStr | reference to a string, to store the return-value in; the information, which is generated by this function, will be attached at the end of any eventually existing previous content of the string |
| withTypes | set to true, to include type information in the generated string |
| JString toString |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| withTypes | set to true, to include type information in the generated string |