#include <AssociativeArray.h>
Inheritance diagram for AssociativeArray:
Public Member Functions | |
AssociativeArray (const std::string &name, const short keyType, const short valueType) | |
~AssociativeArray () | |
AssociativeArray (const AssociativeArray &s) | |
AssociativeArray & | operator= (const AssociativeArray &s) |
const std::string | get (void) const |
Returns a std::string representation of the Associative Array. | |
const std::string | getValueType () const |
Returns a string representation of the value type. | |
const std::string | getVariableType () const |
void | insert (const short keyType, const std::string key, const short valueType, const std::string value) |
Inserts a key-value pair into the Associative Array. | |
const std::string | getKeyType () const |
Returns a string representation of the key type. | |
Private Member Functions | |
bool | _keyIsValid (Data *, const std::string key) |
Private Attributes | |
std::map< Data *, Data *, compare > | _map |
short | _keyType |
Friends | |
bool | operator== (const AssociativeArray &a, const AssociativeArray &b) |
Associative Array variables are strongly typed. Key values cannot be set to missing. Ranges and Approximations are not allowed as key values. Keys are sorted alphanumerically depending on the Data type.
|
|
|
|
|
|
|
|
|
Returns a std::string representation of the Associative Array.
Implements Variable. |
|
Returns a string representation of the key type.
|
|
Returns a string representation of the value type.
Implements Variable. |
|
Implements Variable. |
|
Inserts a key-value pair into the Associative Array.
|
|
|
|
|
|
Data type of the key |
|
Stores key-value pairs |