torc-master
|
This class is used to hold all information about the logic values used within a library. More...
#include <SimulationInfo.hpp>
Data Structures | |
class | Factory |
Public Types | |
typedef VisitorType < SimulationInfo > | Visitor |
typedef SimulationInfo | Type |
typedef boost::shared_ptr< Type > | Pointer |
typedef boost::weak_ptr< Type > | WeakPointer |
Public Member Functions | |
virtual void | accept (BaseVisitor &inoutVisitor) throw (Error) |
void | addLogicValue (const LogicValueSharedPtr &inLogicValue) throw (Error) |
LogicValueSharedPtr | findLogicValue (const std::string &inName) |
void | removeLogicValue (const std::string &inName) throw (Error) |
void | getLogicValues (std::vector< LogicValueSharedPtr > &outLogicValues) const |
void | setLogicValues (const std::vector< LogicValueSharedPtr > &inLogicValues) throw (Error) |
template<typename _Action > | |
void | applyOnAllLogicValues (const _Action &action) throw (Error) |
virtual | ~SimulationInfo () throw () |
void | addComment (const std::string &comment) |
const std::vector< std::string > & | getComments () const |
void | setComments (const std::vector< std::string > &inSource) |
const boost::shared_ptr< Library > | getParent () const |
virtual void | setParent (const boost::shared_ptr< Library > &inSource) |
void | setWeakThis (const WeakPointer &inWeakThis) |
Pointer | getSharedThis () const |
void | getUserData (std::list< std::string > &outUserData) const |
void | setUserData (const std::list< std::string > &inSource) |
void | addUserData (const std::string &inSource) |
Protected Member Functions | |
SimulationInfo () | |
Private Member Functions | |
SimulationInfo (const SimulationInfo &source) | |
SimulationInfo & | operator= (const SimulationInfo &source) |
Private Attributes | |
SymTab< std::string, LogicValueSharedPtr > | mLogicValueSymTab |
Friends | |
class | FactoryType< SimulationInfo > |
This class is used to hold all information about the logic values used within a library.
Definition at line 44 of file SimulationInfo.hpp.
|
inherited |
Definition at line 36 of file SelfReferencing.hpp.
|
inherited |
Definition at line 35 of file SelfReferencing.hpp.
Convenience typedef for visiting a simulation info
Definition at line 53 of file SimulationInfo.hpp.
|
inherited |
Definition at line 37 of file SelfReferencing.hpp.
|
virtual |
Definition at line 142 of file SimulationInfo.cpp.
|
protected |
Definition at line 139 of file SimulationInfo.cpp.
|
private |
|
virtual |
Implements torc::generic::Visitable.
Definition at line 46 of file SimulationInfo.cpp.
|
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.
void torc::generic::SimulationInfo::addLogicValue | ( | const LogicValueSharedPtr & | inLogicValue | ) | |
throw | ( | Error | |||
) |
Add a logic value to the list of logic values. If an empty pointer is supplied, it returns without doing anything.
[in] | inLogicValue | A pointer to a logic value object. |
Error | Logic value could not be added. |
Definition at line 81 of file SimulationInfo.cpp.
|
inherited |
Add an user data to the list of user data
[in] | inSource | An user data as string |
Definition at line 34 of file UserDataContainer.cpp.
|
inline |
Apply action on all logic values.
[in] | action | Action to be applied |
Definition at line 156 of file SimulationInfo.hpp.
LogicValueSharedPtr torc::generic::SimulationInfo::findLogicValue | ( | const std::string & | inName | ) |
Find a logic value by name, in the list of logic values in simulationInfo.
[in] | inName | String value specifying the name of the logic value. |
Find a logic value by name, in the list of logic values in simulationInfo.
[in] | name | String value specifying the name of the logic value. |
Definition at line 106 of file SimulationInfo.cpp.
|
inlineinherited |
Get the list of all comments
Definition at line 85 of file Commentable.hpp.
|
inline |
Get the list of logic values.
[out] | outLogicValues | Vector of logic values to be appended to |
Definition at line 147 of file SimulationInfo.hpp.
|
inlineinherited |
Get a pointer to the parent object
|
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 |
|
inlineinherited |
Get the list of all userData
[out] | outUserData | The list of all userData |
Definition at line 78 of file UserDataContainer.hpp.
|
private |
void torc::generic::SimulationInfo::removeLogicValue | ( | const std::string & | inName | ) | |
throw | ( | Error | |||
) |
Remove the specified logic value from the list of logic values. If an empty pointer is passed, it returns without doing anything
[in] | inName | name of the object to be removed |
Definition at line 125 of file SimulationInfo.cpp.
|
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.
void torc::generic::SimulationInfo::setLogicValues | ( | const std::vector< LogicValueSharedPtr > & | inLogicValues | ) | |
throw | ( | Error | |||
) |
Set the list of logic values.
[in] | inLogicValues | Vector of logic values to be appended to |
Definition at line 60 of file SimulationInfo.cpp.
|
virtualinherited |
Set a pointer to the parent
[in] | inSource | Set a pointer to the parent |
|
inherited |
Set the list of userData
[in] | inSource | The list of UserData |
Definition at line 26 of file UserDataContainer.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 47 of file SimulationInfo.hpp.
|
private |
Definition at line 138 of file SimulationInfo.hpp.