41 const std::vector<PortListAliasSharedPtr>& inPortListAliases,
42 const std::vector<ApplySharedPtr>& inAllApply,
43 const std::vector<WaveValueSharedPtr>& inWaveValues,
const ViewSharedPtr& inView,
49 newSimulate->setName(inName);
50 newSimulate->setPortListAliases(inPortListAliases);
51 newSimulate->setAllApply(inAllApply);
52 newSimulate->setWaveValues(inWaveValues);
53 newSimulate->setOriginalName(inOriginalName);
54 if(inInterfaceAttributes) {
55 inInterfaceAttributes->setSimulate(newSimulate);
56 inView->setInterfaceAttributes(inInterfaceAttributes);
58 inView->setSimulate(newSimulate);
86 if(!inPortListAlias) {
95 if(
false == mPortListAliasSymTab.set(name, inPortListAlias)) {
109 std::vector<PortListAliasSharedPtr>::const_iterator it = inPortListAliases.begin();
110 for(; it != inPortListAliases.end(); it++) {
112 addPortListAlias(*it);
135 return portListAlias;
145 mAllApply.push_back(inSource);
158 std::vector<ApplySharedPtr>::const_iterator it = inAllApply.begin();
159 for(; it != inAllApply.end(); it++) {
175 std::vector<WaveValueSharedPtr>::const_iterator it = inWaveValues.begin();
176 for(; it != inWaveValues.end(); it++) {
204 if(
false == mWaveValueSymTab.set(name, inSource)) {
WaveValueSharedPtr findWaveValue(const std::string &inName)
boost::shared_ptr< WaveValue > WaveValueSharedPtr
void addPortListAlias(const PortListAliasSharedPtr &inPortListAlias)
Represents class that can hold userData.
boost::shared_ptr< Simulate > SimulateSharedPtr
void runVisitor(_Tp &inoutVisited, BaseVisitor &inoutVisitor)
PortListAliasSharedPtr findPortListAlias(const std::string &inName)
The Error object thrown by different methods of EdifOM.
A base class for Visitor.
void addApply(const ApplySharedPtr &inSource)
bool get(const KeyType &inKey, ValueType &outValue) const
SymTab< std::string, PortListAliasSharedPtr > mPortListAliasSymTab
boost::shared_ptr< Apply > ApplySharedPtr
void saveContextData(const std::string &inName, const boost::any &inSource)
virtual SimulateSharedPtr newSimulatePtr(const std::string &inName, const std::vector< PortListAliasSharedPtr > &inPortListAliases, const std::vector< ApplySharedPtr > &inAllApply, const std::vector< WaveValueSharedPtr > &inWaveValues, const ViewSharedPtr &inView, const std::string &inOriginalName=std::string(), const InterfaceAttributesSharedPtr &inInterfaceAttributes=InterfaceAttributesSharedPtr())
void setWaveValues(const std::vector< WaveValueSharedPtr > &inWaveValues)
boost::shared_ptr< InterfaceAttributes > InterfaceAttributesSharedPtr
SymTab< std::string, WaveValueSharedPtr > mWaveValueSymTab
boost::shared_ptr< View > ViewSharedPtr
An object that has a name.
boost::shared_ptr< PortListAlias > PortListAliasSharedPtr
virtual void accept(BaseVisitor &inoutVisitor)
Represents objects that can be renamed.
void setAllApply(const std::vector< ApplySharedPtr > &inAllApply)
This class is to model simulate construct which is a named collection of simulation stimulus and resp...
void setPortListAliases(const std::vector< PortListAliasSharedPtr > &inPortListAliases)
void addWaveValue(const WaveValueSharedPtr &inSource)
An object that receives an inoutVisitor.
void setCurrentLocation(const std::string &inFunction, const std::string &inFile, uint32_t inLine)