#include <utils.h>
Inheritance diagram for CB2::PMap< Tkey, Tvalue >:
Public Types | |
typedef PMap< Tkey, Tvalue > | this_type |
Template type alias. | |
Public Member Functions | |
PMap (const Tkey &key, const Tvalue &value) | |
Constructor. | |
PMap (const Tkey &key) | |
Constructor. | |
PMap (const this_type &prev) | |
Copy constructor. | |
const this_type & | operator= (const this_type &prev) |
Assignment operator Copy key=value pair from another Map. | |
const Tkey & | GetKey () const |
Get key. | |
const Tvalue & | GetValue () const |
Get value. | |
bool | IsNULL () const |
Check NULL. | |
Public Attributes | |
int | tag |
Tag for user-specific data. | |
Private Attributes | |
Tkey | _key |
Data item key. | |
Tvalue | _value |
Data item value. | |
bool | _null |
Value is NULL (SQL syntax). |
This template stores a tuple of values, where the first one is considered 'key' and the other (which might not be present, see the SQL 'NULL' semantics) is considered 'value'.
|
Template type alias.
|
|
Constructor. Assign key to value.
|
|
Constructor. Assign a 'NULL' value to key.
|
|
Copy constructor. Copy key=value pair from another Map.
|
|
Get key.
|
|
Get value. Get the value. If the value is NULL, ExceptionAssert is thrown.
|
|
Check NULL.
|
|
Assignment operator Copy key=value pair from another Map.
|
|
Data item key.
|
|
Value is NULL (SQL syntax).
|
|
Data item value.
|
|
Tag for user-specific data.
|