fw4spl
camp::MapProperty Class Referenceabstract
+ Inheritance diagram for camp::MapProperty:
+ Collaboration diagram for camp::MapProperty:

Public Types

typedef std::pair< Value, Value > ValuePair
 
typedef std::pair< UserObject, UserObject > ObjectPair
 

Public Member Functions

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
 

Detailed Description

Definition at line 20 of file MapProperty.hpp.

Member Function Documentation

void camp::MapProperty::accept ( ClassVisitor &  visitor) const
virtual

Accept the visitation of a ClassVisitor.

Parameters
visitorVisitor to accept

Definition at line 28 of file MapProperty.cpp.

Type camp::MapProperty::elementType ( ) const

Get the type of the map elements.

Returns
Type of elements

Definition at line 57 of file MapProperty.cpp.

Referenced by fwAtomConversion::AtomToDataMappingVisitor::visit().

+ Here is the caller graph for this function:

virtual FWCAMP_API std::size_t camp::MapProperty::getSize ( const UserObject &  object) const
pure virtual

Do the actual retrieval of the size.

Parameters
objectObject
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
objectObject
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
objectObject
valueNew 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: