|
torc-master
|
#include <Property.hpp>
Inheritance diagram for torc::generic::Property:
Collaboration diagram for torc::generic::Property:Data Structures | |
| class | Factory |
Public Types | |
| typedef VisitorType< Property > | Visitor |
| typedef std::string | Name |
| typedef Property | Type |
| typedef boost::shared_ptr< Type > | Pointer |
| typedef boost::weak_ptr< Type > | WeakPointer |
Public Member Functions | |
| virtual void | accept (BaseVisitor &inoutVisitor) throw (Error) |
| virtual | ~Property () throw () |
| const Value | getValue () const |
| void | setValue (const Value &inSource) |
| const Unit | getUnit () const |
| void | setUnit (const Unit &inSource) |
| const std::string | getOwner () const |
| void | setOwner (const std::string &inSource) |
| void | getChildren (std::map< std::string, PropertySharedPtr > &outValues) const |
| template<typename _Action > | |
| void | applyOnAllChildren (const _Action &action) throw (Error) |
| void | setChildren (const std::map< std::string, PropertySharedPtr > &inSource) |
| bool | addChildProperty (const std::string &inName, const PropertySharedPtr &inProperty) |
| void | addComment (const std::string &comment) |
| const std::vector< std::string > & | getComments () const |
| void | setComments (const std::vector< std::string > &inSource) |
| virtual const std::string | getName () const |
| void | setName (const std::string &inSource) throw (Error) |
| virtual Name | getOriginalName () const |
| virtual void | setOriginalName (const Name &inSource) |
| void | setWeakThis (const WeakPointer &inWeakThis) |
| Pointer | getSharedThis () const |
Protected Member Functions | |
| Property () | |
Private Attributes | |
| std::string | mOwner |
| Unit | mUnit |
| Value | mValue |
| SymTab< std::string, PropertySharedPtr > | mChildren |
Friends | |
| class | FactoryType< Property > |
Represents an EDIF property. EDIF supports placing of simple and nested properties on different objects.
Definition at line 48 of file Property.hpp.
|
inherited |
Definition at line 40 of file generic/Renamable.hpp.
|
inherited |
Definition at line 36 of file SelfReferencing.hpp.
|
inherited |
Definition at line 35 of file SelfReferencing.hpp.
Definition at line 58 of file Property.hpp.
|
inherited |
Definition at line 37 of file SelfReferencing.hpp.
|
virtual | |||||||||||||
Definition at line 43 of file Property.cpp.
|
protected |
Definition at line 41 of file Property.cpp.
|
virtual | ||||||||||||||
Implements torc::generic::Visitable.
Definition at line 32 of file Property.cpp.
Here is the call graph for this function:| bool torc::generic::Property::addChildProperty | ( | const std::string & | inName, |
| const PropertySharedPtr & | inProperty | ||
| ) |
Add a nested property to this property
| [in] | inName | Nested property name |
| [in] | inProperty | Nested property |
Definition at line 91 of file Property.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inherited |
Add a comment to the object
| [in] | comment | The comment to add to an existing list of comments |
Definition at line 36 of file Commentable.cpp.
|
inline | ||||||||||||||
Apply action on all children.
| [in] | action | Action to be applied |
Definition at line 207 of file Property.hpp.
Here is the call graph for this function:
|
inline |
Get the nested properties.
Get the nested properties.
| [out] | outValues | map Containing properties |
Definition at line 203 of file Property.hpp.
Here is the call graph for this function:
|
inlineinherited |
Get the list of all comments
Definition at line 85 of file Commentable.hpp.
|
inlinevirtualinherited |
Get the object name
Definition at line 89 of file Nameable.hpp.
Here is the caller graph for this function:
|
inlinevirtualinherited |
Get the new name provided for the object.
Definition at line 78 of file generic/Renamable.hpp.
Here is the caller graph for this function:
|
inline |
Get the owner/source of this property.
Definition at line 194 of file Property.hpp.
|
inlineinherited |
Get a shared pointer to this object. A valid pointer is returned if weakThis was set. Otherwise this returns a NULL pointer. For Vector types, the second scenario is an exception condition and should be treated as such.
Get a shared pointer to this object. A valid pointer is returned if weakThis was set. Otherwise this returns a NULL pointer. For Vector types, the second scenario is an exception condition and should be treated as such.
| [out] | ptr | Set to a shared pointer to this object |
|
inline |
|
inline |
| void torc::generic::Property::setChildren | ( | const std::map< std::string, PropertySharedPtr > & | inSource | ) |
Set the nested properties.
| [in] | inSource | Map containing properties |
Definition at line 77 of file Property.cpp.
Here is the call graph for this function:
|
inherited |
Get the list of all comments
| [in] | inSource | A list of all comments to be set on this object |
Definition at line 45 of file Commentable.cpp.
|
inherited | ||||||||||||||
Set a name for this object
| [in] | inSource | Name of the object |
| Error | Could not set name, because name is empty (Will be used by array members)
|
Set a name for this object
| [in] | inSource | Name of the object |
| Error | Could not set name, because name is empty (Will be used by array members) |
Definition at line 41 of file Nameable.cpp.
Here is the call graph for this function:
|
virtualinherited |
Set the new name provided for the object.
| [in] | inSource | Name of the object |
Definition at line 35 of file generic/Renamable.cpp.
| void torc::generic::Property::setOwner | ( | const std::string & | inSource | ) |
Set the owner/source of this property.
| [in] | inSource | Owner of this property |
Definition at line 68 of file Property.cpp.
| void torc::generic::Property::setUnit | ( | const Unit & | inSource | ) |
Set the Property inSource unit.
| [in] | inSource | Unit of property. |
Definition at line 59 of file Property.cpp.
| void torc::generic::Property::setValue | ( | const Value & | inSource | ) |
Set the Property inSource.
| [in] | inSource | Value of property. |
Definition at line 50 of file Property.cpp.
|
inlineinherited |
Set a weak pointer to this object. This will be used later to get a shared pointer to this object from within other member methods if required. This should be called by the Factory creating the object.
| [in] | weakThis | A weak pointer to this object |
|
friend |
Definition at line 54 of file Property.hpp.
|
private |
Definition at line 168 of file Property.hpp.
|
private |
Definition at line 165 of file Property.hpp.
|
private |
Definition at line 166 of file Property.hpp.
|
private |
Definition at line 167 of file Property.hpp.