|
typedef std::pair< Value, Value > | ValuePair |
|
typedef std::pair< UserObject, UserObject > | ObjectPair |
|
|
FWCAMP_API | MapProperty (const std::string &name, Type elementType) |
|
virtual FWCAMP_API | ~MapProperty () |
| Destructor.
|
|
FWCAMP_API Type | elementType () const |
| Get the type of the map elements. More...
|
|
virtual FWCAMP_API Value | getValue (const UserObject &object) const |
| Do the actual reading of the value. More...
|
|
virtual FWCAMP_API void | setValue (const UserObject &object, const Value &value) const |
| Do the actual writing of the value. More...
|
|
virtual FWCAMP_API std::size_t | getSize (const UserObject &object) const =0 |
| Do the actual retrieval of the size. More...
|
|
virtual FWCAMP_API void | accept (ClassVisitor &visitor) const |
| Accept the visitation of a ClassVisitor. More...
|
|
virtual FWCAMP_API ValuePair | getElement (const UserObject &object, std::size_t index) const =0 |
|
virtual FWCAMP_API void | set (const UserObject &object, const Value &key, const Value &value) const =0 |
|
Definition at line 20 of file MapProperty.hpp.
void camp::MapProperty::accept |
( |
ClassVisitor & |
visitor | ) |
const |
|
virtual |
Accept the visitation of a ClassVisitor.
- Parameters
-
Definition at line 28 of file MapProperty.cpp.
Type camp::MapProperty::elementType |
( |
| ) |
const |
virtual FWCAMP_API std::size_t camp::MapProperty::getSize |
( |
const UserObject & |
object | ) |
const |
|
pure virtual |
Do the actual retrieval of the size.
- Parameters
-
- Returns
- Size of the map
Value camp::MapProperty::getValue |
( |
const UserObject & |
object | ) |
const |
|
virtual |
Do the actual reading of the value.
This function is a pure virtual which has to be implemented in derived classes.
- Parameters
-
- Returns
- Value of the property
Definition at line 43 of file MapProperty.cpp.
void camp::MapProperty::setValue |
( |
const UserObject & |
object, |
|
|
const Value & |
value |
|
) |
| const |
|
virtual |
Do the actual writing of the value.
This function is a pure virtual which has to be implemented in derived classes.
- Parameters
-
object | Object |
value | New value to assign to the property |
Definition at line 50 of file MapProperty.cpp.
The documentation for this class was generated from the following files: