torc-master
|
This class is to model simulate construct which is a named collection of simulation stimulus and responses statements and is used in the interface and contents of views. More...
#include <Simulate.hpp>
Data Structures | |
class | Factory |
Public Types | |
typedef VisitorType< Simulate > | Visitor |
typedef std::string | Name |
typedef Simulate | Type |
typedef boost::shared_ptr< Type > | Pointer |
typedef boost::weak_ptr< Type > | WeakPointer |
Public Member Functions | |
virtual void | accept (BaseVisitor &inoutVisitor) throw (Error) |
void | addPortListAlias (const PortListAliasSharedPtr &inPortListAlias) throw (Error) |
PortListAliasSharedPtr | findPortListAlias (const std::string &inName) |
void | getPortListAliases (std::vector< PortListAliasSharedPtr > &outPortListAliases) const |
void | setPortListAliases (const std::vector< PortListAliasSharedPtr > &inPortListAliases) throw (Error) |
void | getAllApply (std::vector< ApplySharedPtr > &outAllApply) const |
void | setAllApply (const std::vector< ApplySharedPtr > &inAllApply) throw (Error) |
void | addApply (const ApplySharedPtr &inSource) throw (Error) |
void | getWaveValues (std::vector< WaveValueSharedPtr > &outWaveValues) const |
void | setWaveValues (const std::vector< WaveValueSharedPtr > &inWaveValues) throw (Error) |
void | addWaveValue (const WaveValueSharedPtr &inSource) throw (Error) |
WaveValueSharedPtr | findWaveValue (const std::string &inName) |
template<typename _Action > | |
void | applyOnAllPortListAlias (const _Action &action) throw (Error) |
template<typename _Action > | |
void | applyOnAllWaveValues (const _Action &action) throw (Error) |
~Simulate () throw () | |
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 | addComment (const std::string &comment) |
const std::vector< std::string > & | getComments () const |
void | setComments (const std::vector< std::string > &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 | |
Simulate () | |
Private Member Functions | |
Simulate (const Simulate &source) | |
Simulate & | operator= (const Simulate &source) |
Private Attributes | |
SymTab< std::string, PortListAliasSharedPtr > | mPortListAliasSymTab |
SymTab< std::string, WaveValueSharedPtr > | mWaveValueSymTab |
std::vector< ApplySharedPtr > | mAllApply |
Friends | |
class | FactoryType< Simulate > |
This class is to model simulate construct which is a named collection of simulation stimulus and responses statements and is used in the interface and contents of views.
Definition at line 46 of file Simulate.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.
Convenience class to visit a simulate
Definition at line 54 of file Simulate.hpp.
|
inherited |
Definition at line 37 of file SelfReferencing.hpp.
torc::generic::Simulate::~Simulate | ( | ) | ||
throw | ( | |||
) |
Definition at line 233 of file Simulate.cpp.
|
protected |
Definition at line 229 of file Simulate.cpp.
|
private |
|
virtual |
Implements torc::generic::Visitable.
Definition at line 67 of file Simulate.cpp.
void torc::generic::Simulate::addApply | ( | const ApplySharedPtr & | inSource | ) | |
throw | ( | Error | |||
) |
Add an apply objects to the vector of apply objects.
[in] | inSource | Pointer to Apply object |
Add an apply to the vector of Apply objects.
[in] | inSource | Pointer to Apply object to be appended to |
Definition at line 143 of file Simulate.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::Simulate::addPortListAlias | ( | const PortListAliasSharedPtr & | inPortListAlias | ) | |
throw | ( | Error | |||
) |
Add a port list alias to the symbol table of port list alias. If an empty pointer is supplied, it returns without doing anything.
[in] | inPortListAlias | A pointer to a port list alias object. |
Error | PortListAlias could not be added, empty PortListAlias name |
Error | PortListAlias already exists in simulate |
Definition at line 85 of file Simulate.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.
void torc::generic::Simulate::addWaveValue | ( | const WaveValueSharedPtr & | inSource | ) | |
throw | ( | Error | |||
) |
Add a wave value to the symbol table of wave values.
[in] | inSource | Pointer to WaveValue to be appended to |
Error | WaveValue could not be added, empty WaveValue name |
Error | WaveValue already exists in simulate |
A dd a wave value to the symbol table of wave values.
[in] | inSource | Pointer to WaveValue to be appended to |
Error | WaveValue could not be added, empty WaveValue name |
Error | WaveValue already exists in simulate |
Definition at line 194 of file Simulate.cpp.
|
inline |
Apply action on all PortListAlias.
[in] | action | Action to be applied |
Definition at line 242 of file Simulate.hpp.
|
inline |
Apply action on all WaveValues.
[in] | action | Action to be applied |
Definition at line 257 of file Simulate.hpp.
PortListAliasSharedPtr torc::generic::Simulate::findPortListAlias | ( | const std::string & | inName | ) |
Find a PortListAlias by name, in the symbol table of port list alias.
[in] | inName | String specifying the name of the PortListAlias. |
Definition at line 127 of file Simulate.cpp.
WaveValueSharedPtr torc::generic::Simulate::findWaveValue | ( | const std::string & | inName | ) |
Find a WaveValue by name, in the symbol table of port list alias.
[in] | inName | String specifying the name of the WaveValue. |
Definition at line 218 of file Simulate.cpp.
|
inline |
Get all the apply objects.
[out] | outAllApply | Vector of apply objects to be appended to |
Definition at line 224 of file Simulate.hpp.
|
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.
|
inlinevirtualinherited |
Get the new name provided for the object.
Definition at line 78 of file generic/Renamable.hpp.
|
inline |
Get all the PortListAlias of this simulation.
[out] | outPortListAliases | Vector of PortListAlias to be appended to |
Definition at line 214 of file Simulate.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 |
|
inlineinherited |
Get the list of all userData
[out] | outUserData | The list of all userData |
Definition at line 78 of file UserDataContainer.hpp.
|
inline |
Get the vector of wave values.
[out] | outWaveValues | Vector of wave values to be appended to |
Definition at line 233 of file Simulate.hpp.
void torc::generic::Simulate::setAllApply | ( | const std::vector< ApplySharedPtr > & | inAllApply | ) | |
throw | ( | Error | |||
) |
Set all the apply objects.
[in] | inAllApply | Vector of apply objects to be appended to |
Definition at line 157 of file Simulate.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.
|
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.
|
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::Simulate::setPortListAliases | ( | const std::vector< PortListAliasSharedPtr > & | inPortListAliases | ) | |
throw | ( | Error | |||
) |
Set all the PortListAlias of this simulation.
[in] | inPortListAliases | Vector of PortListAlias to be appended to |
Definition at line 107 of file Simulate.cpp.
|
inherited |
Set the list of userData
[in] | inSource | The list of UserData |
Definition at line 26 of file UserDataContainer.cpp.
void torc::generic::Simulate::setWaveValues | ( | const std::vector< WaveValueSharedPtr > & | inWaveValues | ) | |
throw | ( | Error | |||
) |
Set the vector of wave values.
[in] | inWaveValues | Vector of wave values to be appended to |
Definition at line 174 of file Simulate.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 48 of file Simulate.hpp.
|
private |
Definition at line 205 of file Simulate.hpp.
|
private |
Definition at line 203 of file Simulate.hpp.
|
private |
Definition at line 204 of file Simulate.hpp.