torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::generic::View Class Reference

Represents and EDIF View. More...

#include <View.hpp>

+ Inheritance diagram for torc::generic::View:
+ Collaboration diagram for torc::generic::View:

Data Structures

class  Factory
 

Public Types

enum  Type {
  eTypeMaskLayout = 0, eTypePCBLayout, eTypeNetlist, eTypeSchematic,
  eTypeSymbolic, eTypeBehavior, eTypeLogicModel, eTypeDocument,
  eTypeGraphic, eTypeStranger
}
 
typedef VisitorType< ViewVisitor
 
typedef std::string Name
 
typedef boost::shared_ptr< TypePointer
 
typedef boost::weak_ptr< TypeWeakPointer
 

Public Member Functions

virtual void accept (BaseVisitor &inoutVisitor) throw (Error)
 
ParameterContext getParameterContext () const
 
ParameterMapSharedPtr getParameters () throw (Error)
 
void setParameters (const ParameterMapSharedPtr &inSource)
 
const Type getType () const
 
void setType (const Type &inSource)
 
void getInstances (std::vector< InstanceSharedPtr > &outInstances) const
 
void setInstances (const std::vector< InstanceSharedPtr > &inSource) throw (Error)
 
void addInstance (const InstanceSharedPtr &inInstance) throw (Error)
 
InstanceSharedPtr findInstance (const std::string &inName)
 
void removeInstance (const std::string &inName) throw (Error)
 
template<typename _Action >
void applyOnAllInstances (const _Action &action) throw (Error)
 
void getNets (std::vector< NetSharedPtr > &outNets) const
 
void setNets (const std::vector< NetSharedPtr > &inSource) throw (Error)
 
void addNet (const NetSharedPtr &inNet) throw (Error)
 
NetSharedPtr findNet (const std::string &inName)
 
void removeNet (const std::string &inName) throw (Error)
 
template<typename _Action >
void applyOnAllNets (const _Action &action) throw (Error)
 
void getPorts (std::vector< PortSharedPtr > &outPorts) const
 
void setPorts (const std::vector< PortSharedPtr > &inSource) throw (Error)
 
void addPort (const PortSharedPtr &inPort) throw (Error)
 
PortSharedPtr findPort (const std::string &inName)
 
void removePort (const std::string &inName) throw (Error)
 
template<typename _Action >
void applyOnAllPorts (const _Action &action) throw (Error)
 
void getPermutables (std::vector< PermutableSharedPtr > &outPermutables) const
 
void setPermutables (const std::vector< PermutableSharedPtr > &inSource) throw (Error)
 
bool addPermutable (const PermutableSharedPtr &inPermutable) throw (Error)
 
template<typename _Action >
void applyOnAllPermutables (const _Action &action) throw (Error)
 
void getInterfaceJoinedInfos (std::vector< InterfaceJoinedInfoSharedPtr > &outJoinedInfos) const
 
void setInterfaceJoinedInfos (const std::vector< InterfaceJoinedInfoSharedPtr > &inSource) throw (Error)
 
bool addInterfaceJoinedInfo (const InterfaceJoinedInfoSharedPtr &inJoinedInfo) throw (Error)
 
template<typename _Action >
void applyOnAllInterfaceJoinedInfos (const _Action &action) throw (Error)
 
const InterfaceAttributesSharedPtr getInterfaceAttributes () const
 
void setInterfaceAttributes (const InterfaceAttributesSharedPtr &inSource)
 
const std::string & getNonNetlistViewData () const
 
void setNonNetlistViewData (const std::string &inData)
 
const SimulateSharedPtr getSimulate () const
 
void setSimulate (const SimulateSharedPtr &inSource)
 
const TimingSharedPtr getTiming () const
 
void setTiming (const TimingSharedPtr &inSource)
 
virtual ~View () throw ()
 
void addComment (const std::string &comment)
 
const std::vector< std::string > & getComments () const
 
void setComments (const std::vector< std::string > &inSource)
 
bool getIsExtern () const
 
bool isExtern () const
 
void setIsExtern (bool inIsExtern)
 
virtual const std::string getName () const
 
void setName (const std::string &inSource) throw (Error)
 
const boost::shared_ptr< CellgetParent () const
 
virtual void setParent (const boost::shared_ptr< Cell > &inSource)
 
PropertySharedPtr getProperty (const std::string &inName)
 
bool setProperty (const std::string &inName, const PropertySharedPtr &inProperty)
 
void getProperties (std::map< std::string, PropertySharedPtr > &outProperties) const
 
void setProperties (const std::map< std::string, PropertySharedPtr > &inSource)
 
template<typename _Action >
void applyOnAllProperties (const _Action &action) throw (Error)
 
virtual Name getOriginalName () const
 
virtual void setOriginalName (const Name &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)
 
void getStatuses (std::vector< StatusSharedPtr > &outStatus) const
 
void setStatuses (const std::vector< StatusSharedPtr > &inStatus)
 
void addStatus (const StatusSharedPtr &inStatus) throw (Error)
 
template<typename _Action >
void applyOnAllStatuses (const _Action &action) throw (Error)
 

Protected Member Functions

 View ()
 

Private Attributes

ParameterMapSharedPtr mParameters
 
ParameterContext mMyContext
 
SymTab< std::string,
InstanceSharedPtr
mInstanceSymTab
 
SymTab< std::string, NetSharedPtrmNetSymTab
 
SymTab< std::string,
PortSharedPtr
mPortSymTab
 
std::string mNonNetlistViewData
 
Type mType
 
std::vector< PermutableSharedPtrmPermutables
 
std::vector
< InterfaceJoinedInfoSharedPtr
mInterfaceJoinedInfos
 
InterfaceAttributesSharedPtr mAttributes
 
SimulateSharedPtr mSimulate
 
TimingSharedPtr mTiming
 

Friends

class FactoryType< View >
 

Detailed Description

Represents and EDIF View.

The View class represents an EDIF view. A view can be conrete or extern (black-box).

Note
Only views of type NETLIST are supported.

Definition at line 61 of file View.hpp.

Member Typedef Documentation

typedef std::string torc::generic::Renamable::Name
inherited

Definition at line 40 of file generic/Renamable.hpp.

typedef boost::shared_ptr<Type> torc::generic::SelfReferencing< View >::Pointer
inherited

Definition at line 36 of file SelfReferencing.hpp.

Convenience

Definition at line 84 of file View.hpp.

typedef boost::weak_ptr<Type> torc::generic::SelfReferencing< View >::WeakPointer
inherited

Definition at line 37 of file SelfReferencing.hpp.

Member Enumeration Documentation

Constructor & Destructor Documentation

torc::generic::View::~View ( )
throw (
)
virtual

Definition at line 504 of file View.cpp.

504  {
505  if(!getName().empty()) {
506  log("View %s is being destroyed.\n", getName().c_str());
507  }
508  mNetSymTab.applyOnAll(boost::bind(boost::mem_fn(&Net::disconnect), _1));
509  mNetSymTab.clear();
510  mPortSymTab.clear();
512  mPermutables.clear();
513  mInterfaceJoinedInfos.clear();
514 }
void log(const char *fmt,...)
Definition: Log.cpp:89
SymTab< std::string, NetSharedPtr > mNetSymTab
Definition: View.hpp:610
void applyOnAll(const _Action &action)
Definition: SymTab.hpp:192
std::vector< InterfaceJoinedInfoSharedPtr > mInterfaceJoinedInfos
Definition: View.hpp:615
std::vector< PermutableSharedPtr > mPermutables
Definition: View.hpp:614
SymTab< std::string, PortSharedPtr > mPortSymTab
Definition: View.hpp:611
virtual void disconnect()
virtual const std::string getName() const
Definition: Nameable.hpp:89
SymTab< std::string, InstanceSharedPtr > mInstanceSymTab
Definition: View.hpp:609

+ Here is the call graph for this function:

torc::generic::View::View ( )
protected

Definition at line 498 of file View.cpp.

498  : Commentable(), Extern(), Nameable(), ParentedObject<Cell>(), PropertyContainer(),
499  Renamable(), SelfReferencing<View>(), Visitable(), UserDataContainer(), StatusContainer(),
500  mParameters(new ParameterMap()), mMyContext(mParameters->getNewContext()), mInstanceSymTab(),
502  mAttributes(), mSimulate(), mTiming() {}
ParameterContext mMyContext
Definition: View.hpp:608
SymTab< std::string, NetSharedPtr > mNetSymTab
Definition: View.hpp:610
std::vector< InterfaceJoinedInfoSharedPtr > mInterfaceJoinedInfos
Definition: View.hpp:615
std::vector< PermutableSharedPtr > mPermutables
Definition: View.hpp:614
SymTab< std::string, PortSharedPtr > mPortSymTab
Definition: View.hpp:611
ParameterMapSharedPtr mParameters
Definition: View.hpp:607
TimingSharedPtr mTiming
Definition: View.hpp:618
SymTab< std::string, InstanceSharedPtr > mInstanceSymTab
Definition: View.hpp:609
SimulateSharedPtr mSimulate
Definition: View.hpp:617
InterfaceAttributesSharedPtr mAttributes
Definition: View.hpp:616

Member Function Documentation

void torc::generic::View::accept ( BaseVisitor inoutVisitor)
throw (Error
)
virtual

Implements torc::generic::Visitable.

Definition at line 89 of file View.cpp.

89  {
90  try {
91  runVisitor(*this, inoutVisitor);
92  } catch(Error& e) {
93  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
94  throw;
95  }
96 }
void runVisitor(_Tp &inoutVisited, BaseVisitor &inoutVisitor)
Definition: VisitorType.hpp:78

+ Here is the call graph for this function:

void torc::generic::Commentable::addComment ( const std::string &  comment)
inherited

Add a comment to the object

Parameters
[in]commentThe comment to add to an existing list of comments

Definition at line 36 of file Commentable.cpp.

36  {
37  mComments.push_back(comment);
38 }
std::vector< std::string > mComments
Definition: Commentable.hpp:77
void torc::generic::View::addInstance ( const InstanceSharedPtr inInstance)
throw (Error
)

Add an instance to the list of instances. Empty pointer is ignored.

Parameters
[in]inInstancePointer to instance to be added.
Exceptions
ErrorCould not add instance because pointer to the Instance does not exist
  • Id : eMessageIdErrorPointerToItemDoesNotExist
  • Context Data
    • Pointer to Instance - boost::shared_ptr
ErrorCould not add instance because Instance name is empty
  • Id : eMessageIdErrorEmptyItemName
  • Context Data
ErrorCould not add instance because Instance name already exists
  • Id : eMessageIdErrorItemAlreadyExists
  • Context Data

Add an instance to the list of instances. Empty pointer is ignored.

Parameters
[in]inInstancePointer to instance to be added.
Exceptions
ErrorCould not add instance because pointer to the Instance does not exist
ErrorCould not add instance because Instance name is empty
ErrorCould not add instance because Instance name already exists

Definition at line 141 of file View.cpp.

141  {
142  if(!inInstance) {
143  Error e(eMessageIdErrorPointerToItemDoesNotExist, __FUNCTION__, __FILE__, __LINE__);
144  e.saveContextData("Pointer to the instance object does not exist", inInstance);
145  throw e;
146  }
147  std::string name = inInstance->getName();
148  if(name.empty()) {
149  Error e(eMessageIdErrorEmptyItemName, __FUNCTION__, __FILE__, __LINE__);
150  e.saveContextData("Empty Instance name", name);
151  throw e;
152  }
153  if(false == mInstanceSymTab.set(name, inInstance)) {
154  Error e(eMessageIdErrorItemAlreadyExists, __FUNCTION__, __FILE__, __LINE__);
155  e.saveContextData("Instance name", name);
156  throw e;
157  }
158  inInstance->setParent(getSharedThis());
159 }
bool set(const KeyType &inKey, const ValueType &inValue)
Definition: SymTab.hpp:132
std::string string
SymTab< std::string, InstanceSharedPtr > mInstanceSymTab
Definition: View.hpp:609

+ Here is the call graph for this function:

bool torc::generic::View::addInterfaceJoinedInfo ( const InterfaceJoinedInfoSharedPtr inJoinedInfo)
throw (Error
)

Add a joined info to this view.

Parameters
[in]inJoinedInfoPointer to joined info to be added.
Exceptions
ErrorCould not add joined info because pointer to the joined info does not exist

Definition at line 455 of file View.cpp.

455  {
456  if(!inJoinedInfo) {
457  Error e(eMessageIdErrorPointerToItemDoesNotExist, __FUNCTION__, __FILE__, __LINE__);
458  e.saveContextData("Pointer to the joined info object does not exist", inJoinedInfo);
459  throw e;
460  }
461  if(inJoinedInfo) {
462  mInterfaceJoinedInfos.push_back(inJoinedInfo);
463  return true;
464  } else {
465  return false;
466  }
467 }
std::vector< InterfaceJoinedInfoSharedPtr > mInterfaceJoinedInfos
Definition: View.hpp:615

+ Here is the call graph for this function:

void torc::generic::View::addNet ( const NetSharedPtr inNet)
throw (Error
)

Add a net to the list of nets. Empty pointer is ignored.

Parameters
[in]inNetPointer to net to be added.
Exceptions
ErrorCould not add Net, because Net name is empty
  • Id : eMessageIdErrorEmptyItemName
  • Context Data
    • Net name - String
ErrorCould not add Net, because Net name already exists
  • Id : eMessageIdErrorItemAlreadyExists
  • Context Data
    • Net name - String

Add a net to the list of nets. Empty pointer is ignored.

Parameters
[in]inNetPointer to net to be added.
Exceptions
ErrorCould not add Net, because Net name is empty
ErrorCould not add Net, because Net name already exists

Definition at line 240 of file View.cpp.

240  {
241  if(!inNet) {
242  return;
243  }
244  std::string name = inNet->getName();
245  if(name.empty()) {
246  Error e(eMessageIdErrorEmptyItemName, __FUNCTION__, __FILE__, __LINE__);
247  e.saveContextData("Net name", name);
248  throw e;
249  }
250  if(false == mNetSymTab.set(name, inNet)) {
251  Error e(eMessageIdErrorItemAlreadyExists, __FUNCTION__, __FILE__, __LINE__);
252  e.saveContextData("Net name", name);
253  throw e;
254  }
255  inNet->setParent(getSharedThis());
256 }
SymTab< std::string, NetSharedPtr > mNetSymTab
Definition: View.hpp:610
bool set(const KeyType &inKey, const ValueType &inValue)
Definition: SymTab.hpp:132
std::string string

+ Here is the call graph for this function:

bool torc::generic::View::addPermutable ( const PermutableSharedPtr inPermutable)
throw (Error
)

Add a permutable to this view.

Parameters
[in]inPermutablePointer to permutable to be added.
Exceptions
ErrorCould not add permutable because pointer to the permutable does not exist

Definition at line 415 of file View.cpp.

415  {
416  if(!inPermutable) {
417  Error e(eMessageIdErrorPointerToItemDoesNotExist, __FUNCTION__, __FILE__, __LINE__);
418  e.saveContextData("Pointer to the permutable object does not exist", inPermutable);
419  throw e;
420  }
421  if(inPermutable) {
422  mPermutables.push_back(inPermutable);
423  return true;
424  } else {
425  return false;
426  }
427 }
std::vector< PermutableSharedPtr > mPermutables
Definition: View.hpp:614

+ Here is the call graph for this function:

void torc::generic::View::addPort ( const PortSharedPtr inPort)
throw (Error
)

Add a port to the list of ports. Empty pointer is ignored.

Parameters
[in]inPortPointer to port to be added.
Exceptions
ErrorCould not add port, because Port name is empty
  • Id : eMessageIdErrorEmptyItemName
  • Context Data
    • Port name - String
ErrorCould not add port, because Port name already exists
  • Id : eMessageIdErrorItemAlreadyExists
  • Context Data

Add a port to the list of ports. Empty pointer is ignored.

Parameters
[in]inPortPointer to port to be added.
Exceptions
ErrorCould not add port, because Port name is empty

Definition at line 325 of file View.cpp.

325  {
326  if(!inPort) {
327  return;
328  }
329  std::string name = inPort->getName();
330  if(name.empty()) {
331  Error e(eMessageIdErrorEmptyItemName, __FUNCTION__, __FILE__, __LINE__);
332  e.saveContextData("Port name", name);
333  throw e;
334  }
335  if(false == mPortSymTab.set(name, inPort)) {
336  Error e(eMessageIdErrorItemAlreadyExists, __FUNCTION__, __FILE__, __LINE__);
337  e.saveContextData("Port name", name);
338  throw e;
339  }
340  inPort->setParent(getSharedThis());
341 }
bool set(const KeyType &inKey, const ValueType &inValue)
Definition: SymTab.hpp:132
std::string string
SymTab< std::string, PortSharedPtr > mPortSymTab
Definition: View.hpp:611

+ Here is the call graph for this function:

void torc::generic::StatusContainer::addStatus ( const StatusSharedPtr inStatus)
throw (Error
)
inherited

Add a status to the vector of statuses. If an empty pointer is supplied, it returns without doing anything.

Parameters
[in]inStatusA pointer to a status object.
Exceptions
ErrorStatus could not be added.

Add a status to the list of statuses. If an empty pointer is supplied, it returns without doing anything.

Parameters
[in]inStatusA pointer to a status object.
Exceptions
ErrorStatus could not be added.

Definition at line 47 of file StatusContainer.cpp.

47  {
48  mStatuses.push_back(inStatus);
49 }
std::vector< StatusSharedPtr > mStatuses
void torc::generic::UserDataContainer::addUserData ( const std::string &  inSource)
inherited

Add an user data to the list of user data

Parameters
[in]inSourceAn user data as string

Definition at line 34 of file UserDataContainer.cpp.

34  {
35  mUserData.push_back(inSource);
36 }
std::list< std::string > mUserData
template<typename _Action >
void torc::generic::View::applyOnAllInstances ( const _Action &  action)
throw (Error
)
inline

Apply action on all Instances.

Parameters
[in]actionAction to be applied

Definition at line 638 of file View.hpp.

639  {
640  try {
641  mInstanceSymTab.applyOnAll(action);
642  } catch(Error& e) {
643  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
644  throw;
645  }
646 }
void applyOnAll(const _Action &action)
Definition: SymTab.hpp:192
SymTab< std::string, InstanceSharedPtr > mInstanceSymTab
Definition: View.hpp:609

+ Here is the call graph for this function:

template<typename _Action >
void torc::generic::View::applyOnAllInterfaceJoinedInfos ( const _Action &  action)
throw (Error
)
inline

Apply action on all joined info.

Parameters
[in]actionAction to be applied

Definition at line 722 of file View.hpp.

723  {
724  try {
725  std::vector<InterfaceJoinedInfoSharedPtr>::iterator it = mInterfaceJoinedInfos.begin();
726  for(; it != mInterfaceJoinedInfos.end(); ++it) {
727  action(*it);
728  }
729  } catch(Error& e) {
730  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
731  throw;
732  }
733 }
std::vector< InterfaceJoinedInfoSharedPtr > mInterfaceJoinedInfos
Definition: View.hpp:615

+ Here is the call graph for this function:

template<typename _Action >
void torc::generic::View::applyOnAllNets ( const _Action &  action)
throw (Error
)
inline

Apply action on all Nets.

Parameters
[in]actionAction to be applied

Definition at line 652 of file View.hpp.

652  {
653  try {
654  mNetSymTab.applyOnAll(action);
655  } catch(Error& e) {
656  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
657  throw;
658  }
659 }
SymTab< std::string, NetSharedPtr > mNetSymTab
Definition: View.hpp:610
void applyOnAll(const _Action &action)
Definition: SymTab.hpp:192

+ Here is the call graph for this function:

template<typename _Action >
void torc::generic::View::applyOnAllPermutables ( const _Action &  action)
throw (Error
)
inline

Apply action on all Permutables.

Parameters
[in]actionAction to be applied

Apply action on all children.

Parameters
[in]actionAction to be applied

Definition at line 693 of file View.hpp.

694  {
695  try {
696  std::vector<PermutableSharedPtr>::iterator it = mPermutables.begin();
697  for(; it != mPermutables.end(); ++it) {
698  action(*it);
699  }
700  } catch(Error& e) {
701  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
702  throw;
703  }
704 }
std::vector< PermutableSharedPtr > mPermutables
Definition: View.hpp:614

+ Here is the call graph for this function:

template<typename _Action >
void torc::generic::View::applyOnAllPorts ( const _Action &  action)
throw (Error
)
inline

Apply action on all Ports.

Parameters
[in]actionAction to be applied

Definition at line 665 of file View.hpp.

665  {
666  try {
667  mPortSymTab.applyOnAll(action);
668  } catch(Error& e) {
669  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
670  throw;
671  }
672 }
void applyOnAll(const _Action &action)
Definition: SymTab.hpp:192
SymTab< std::string, PortSharedPtr > mPortSymTab
Definition: View.hpp:611

+ Here is the call graph for this function:

template<typename _Action >
void torc::generic::PropertyContainer::applyOnAllProperties ( const _Action &  action)
throw (Error
)
inlineinherited

Apply action on all properties.

Parameters
[in]actionAction to be applied

Definition at line 113 of file PropertyContainer.hpp.

114  {
115  try {
116  mProperties.applyOnAll(action);
117  } catch(Error& e) {
118  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
119  throw;
120  }
121 }
void applyOnAll(const _Action &action)
Definition: SymTab.hpp:192
SymTab< std::string, PropertySharedPtr > mProperties

+ Here is the call graph for this function:

template<typename _Action >
void torc::generic::StatusContainer::applyOnAllStatuses ( const _Action &  action)
throw (Error
)
inlineinherited

Apply action on all statuses.

Parameters
[in]actionAction to be applied

Definition at line 95 of file StatusContainer.hpp.

96  {
97  try {
98  std::vector<StatusSharedPtr>::iterator it = mStatuses.begin();
99  for(; it != mStatuses.end(); ++it) {
100  action(*it);
101  }
102  } catch(Error& e) {
103  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
104  throw;
105  }
106 }
std::vector< StatusSharedPtr > mStatuses

+ Here is the call graph for this function:

InstanceSharedPtr torc::generic::View::findInstance ( const std::string &  inName)

Find an instance by name, in the list of instances.

Parameters
[in]inNameString inSource specifying the name of the instance.
Returns
A pointer to the instance if found, an empty pointer otherwise.
Exceptions
ErrorEmpty Instance name
  • Id : eMessageIdErrorEmptyItemName
  • Context Data

Find an instance by name, in the list of instances.

Parameters
[in]inNameString inSource specifying the name of the instance.
Returns
A pointer to the instance if found, an empty pointer otherwise.
Exceptions
ErrorEmpty Instance name

Definition at line 170 of file View.cpp.

170  {
171  if(inName.empty()) {
172  Error e(eMessageIdErrorEmptyItemName, __FUNCTION__, __FILE__, __LINE__);
173  e.saveContextData("Instance name", inName);
174  throw e;
175  }
176  InstanceSharedPtr instance;
177  mInstanceSymTab.get(inName, instance);
178  return instance;
179 }
boost::shared_ptr< Instance > InstanceSharedPtr
bool get(const KeyType &inKey, ValueType &outValue) const
Definition: SymTab.hpp:121
SymTab< std::string, InstanceSharedPtr > mInstanceSymTab
Definition: View.hpp:609

+ Here is the call graph for this function:

NetSharedPtr torc::generic::View::findNet ( const std::string &  inName)

Find a net by name, in the list of net.

Parameters
[in]inNameString inSource specifying the name of the Net
Returns
A pointer to the net if found, an empty pointer otherwise.
Exceptions
ErrorEmpty Net name
  • Id : eMessageIdErrorEmptyItemName
  • Context Data
    • Net name - String

Find a net by name, in the list of net.

Parameters
[in]inNameString inSource specifying the name of the Net
Returns
A pointer to the net if found, an empty pointer otherwise.
Exceptions
ErrorEmpty Net name

Definition at line 266 of file View.cpp.

266  {
267  if(inName.empty()) {
268  Error e(eMessageIdErrorEmptyItemName, __FUNCTION__, __FILE__, __LINE__);
269  e.saveContextData("Net name not found", inName);
270  throw e;
271  }
272  NetSharedPtr net;
273  mNetSymTab.get(inName, net);
274  return net;
275 }
SymTab< std::string, NetSharedPtr > mNetSymTab
Definition: View.hpp:610
boost::shared_ptr< Net > NetSharedPtr
bool get(const KeyType &inKey, ValueType &outValue) const
Definition: SymTab.hpp:121

+ Here is the call graph for this function:

PortSharedPtr torc::generic::View::findPort ( const std::string &  inName)

Find a port by name, in the list of ports.

Parameters
[in]inNameString inSource specifying the name of the port.
Returns
A pointer to the port if found, an empty pointer otherwise.
Exceptions
ErrorEmpty Port name
  • Id : eMessageIdErrorEmptyItemName
  • Context Data
    • Port Name - String

Find a port by name, in the list of ports.

Parameters
[in]inNameString inSource specifying the name of the port.
Returns
A pointer to the port if found, an empty pointer otherwise.
Exceptions
ErrorEmpty Port name

Definition at line 352 of file View.cpp.

352  {
353  if(inName.empty()) {
354  Error e(eMessageIdErrorEmptyItemName, __FUNCTION__, __FILE__, __LINE__);
355  e.saveContextData("Port name", inName);
356  throw e;
357  }
358  PortSharedPtr port;
359  mPortSymTab.get(inName, port);
360  return port;
361 }
bool get(const KeyType &inKey, ValueType &outValue) const
Definition: SymTab.hpp:121
SymTab< std::string, PortSharedPtr > mPortSymTab
Definition: View.hpp:611
boost::shared_ptr< Port > PortSharedPtr

+ Here is the call graph for this function:

const std::vector< std::string > & torc::generic::Commentable::getComments ( ) const
inlineinherited

Get the list of all comments

Returns
A list of all comments on this object

Definition at line 85 of file Commentable.hpp.

85  {
86  return mComments;
87 }
std::vector< std::string > mComments
Definition: Commentable.hpp:77
void torc::generic::View::getInstances ( std::vector< InstanceSharedPtr > &  outInstances) const
inline

Get the list of instances for this view.

Parameters
[out]outInstancesList of instances to be appended to

Definition at line 634 of file View.hpp.

634  {
635  mInstanceSymTab.getValues(outInstances);
636 }
void getValues(std::vector< ValueType > &outValues) const
Definition: SymTab.hpp:158
SymTab< std::string, InstanceSharedPtr > mInstanceSymTab
Definition: View.hpp:609

+ Here is the call graph for this function:

const InterfaceAttributesSharedPtr torc::generic::View::getInterfaceAttributes ( ) const
inline

Get the attributes of a view interface. Attributes include designator, simulate, timing, comments, userdata etc. This will decompile within (contents ...) construct.

Returns
Pointer to InterfaceAttributes object.

Get the attributes of a view interface. Attributes include designator, comments, userdata etc.

Returns
Pointer to InterfaceAttributes object.

Definition at line 740 of file View.hpp.

740  {
741  return mAttributes;
742 }
InterfaceAttributesSharedPtr mAttributes
Definition: View.hpp:616
void torc::generic::View::getInterfaceJoinedInfos ( std::vector< InterfaceJoinedInfoSharedPtr > &  outJoinedInfos) const
inline

Get the vector of joined info for this view.

Parameters
[out]outJoinedInfosVector of joined info to be appended to

Definition at line 711 of file View.hpp.

712  {
713  outJoinedInfos.insert(outJoinedInfos.end(), mInterfaceJoinedInfos.begin(),
714  mInterfaceJoinedInfos.end());
715 }
std::vector< InterfaceJoinedInfoSharedPtr > mInterfaceJoinedInfos
Definition: View.hpp:615
bool torc::generic::Extern::getIsExtern ( ) const
inlineinherited

Get whether the item is an extern(placeholder) or an actual item.

Returns
True if extern, false otherwise

Definition at line 86 of file Extern.hpp.

86  {
87  return mIsExtern;
88 }
const std::string torc::generic::Nameable::getName ( void  ) const
inlinevirtualinherited

Get the object name

Returns
Name of the object

Definition at line 89 of file Nameable.hpp.

89  {
90  return mName;
91 }

+ Here is the caller graph for this function:

void torc::generic::View::getNets ( std::vector< NetSharedPtr > &  outNets) const
inline

Get the list of nets for this view.

Parameters
[out]outNetsList of nets to be appended to

Definition at line 648 of file View.hpp.

648  {
649  mNetSymTab.getValues(outNets);
650 }
void getValues(std::vector< ValueType > &outValues) const
Definition: SymTab.hpp:158
SymTab< std::string, NetSharedPtr > mNetSymTab
Definition: View.hpp:610

+ Here is the call graph for this function:

const std::string & torc::generic::View::getNonNetlistViewData ( ) const
inline

Definition at line 674 of file View.hpp.

674  {
675  return mNonNetlistViewData;
676 }
std::string mNonNetlistViewData
Definition: View.hpp:612
Renamable::Name torc::generic::Renamable::getOriginalName ( ) const
inlinevirtualinherited

Get the new name provided for the object.

Returns
Name of the object

Definition at line 78 of file generic/Renamable.hpp.

78  {
79  return mOriginalName;
80 }

+ Here is the caller graph for this function:

ParameterContext torc::generic::View::getParameterContext ( ) const
inline

Returns the context that will be used to get parameters from the parameter map. For an unbound instance, this will return an invalid value

Definition at line 621 of file View.hpp.

621  {
622  return mMyContext;
623 }
ParameterContext mMyContext
Definition: View.hpp:608
ParameterMapSharedPtr torc::generic::View::getParameters ( )
throw (Error
)

Get the ParameterMap corresponding to this cell

Returns
A ParameterMap consisiting of only the overridden parameters.

Definition at line 98 of file View.cpp.

98  {
99  if(!mParameters->isContextRegistered(mMyContext)) {
100  mParameters->registerContext(mMyContext);
101  }
102  return mParameters;
103 }
ParameterContext mMyContext
Definition: View.hpp:608
ParameterMapSharedPtr mParameters
Definition: View.hpp:607
const boost::shared_ptr<Cell > torc::generic::ParentedObject< Cell >::getParent ( ) const
inlineinherited

Get a pointer to the parent object

Returns
Pointer to parent
void torc::generic::View::getPermutables ( std::vector< PermutableSharedPtr > &  outPermutables) const
inline

Get the vector of permutables for this view.

Parameters
[out]outPermutablesVector of permutable to be appended to

Definition at line 684 of file View.hpp.

684  {
685  outPermutables.insert(outPermutables.end(), mPermutables.begin(), mPermutables.end());
686 }
std::vector< PermutableSharedPtr > mPermutables
Definition: View.hpp:614
void torc::generic::View::getPorts ( std::vector< PortSharedPtr > &  outPorts) const
inline

Get the list of ports for this view.

Parameters
[out]outPortsList of ports to be appended to

Definition at line 661 of file View.hpp.

661  {
662  mPortSymTab.getValues(outPorts);
663 }
void getValues(std::vector< ValueType > &outValues) const
Definition: SymTab.hpp:158
SymTab< std::string, PortSharedPtr > mPortSymTab
Definition: View.hpp:611

+ Here is the call graph for this function:

void torc::generic::PropertyContainer::getProperties ( std::map< std::string, PropertySharedPtr > &  outProperties) const
inlineinherited

Get the map of all properties

Parameters
[out]outPropertiesThe map of properties

Get the map of all properties

Returns
The map of properties

Definition at line 107 of file PropertyContainer.hpp.

108  {
109  mProperties.getValueMap(outProperties);
110  return;
111 }
void getValueMap(UserMap &outMap) const
Definition: SymTab.hpp:171
SymTab< std::string, PropertySharedPtr > mProperties

+ Here is the call graph for this function:

PropertySharedPtr torc::generic::PropertyContainer::getProperty ( const std::string &  inName)
inherited

Get a property

Parameters
[in]inNameName of the property to be retreived
Returns
Pointer to the property object if present, empty pointer otherwise.

Get a property

Parameters
[in]nameName of the property to be retreived
Returns
Pointer to the property object if present, empty pointer otherwise.

Definition at line 37 of file PropertyContainer.cpp.

37  {
38  PropertySharedPtr property;
39  if(!inName.empty()) {
40  mProperties.get(inName, property);
41  }
42  return property;
43 }
bool get(const KeyType &inKey, ValueType &outValue) const
Definition: SymTab.hpp:121
SymTab< std::string, PropertySharedPtr > mProperties
boost::shared_ptr< Property > PropertySharedPtr

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Pointer torc::generic::SelfReferencing< View >::getSharedThis ( ) const
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.

Returns
A shared pointer to this object

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.

Parameters
[out]ptrSet to a shared pointer to this object
const SimulateSharedPtr torc::generic::View::getSimulate ( ) const
inline

Get the pointer to the simulate.

Returns
Pointer to the simulatie

Definition at line 749 of file View.hpp.

749  {
750  return mSimulate;
751 }
SimulateSharedPtr mSimulate
Definition: View.hpp:617
void torc::generic::StatusContainer::getStatuses ( std::vector< StatusSharedPtr > &  outStatus) const
inlineinherited

Get a vector of pointer to Status object

Parameters
[out]outStatusThe vector of pointer to Status object

Definition at line 86 of file StatusContainer.hpp.

86  {
87  outStatus.insert(outStatus.end(), mStatuses.begin(), mStatuses.end());
88 }
std::vector< StatusSharedPtr > mStatuses
const TimingSharedPtr torc::generic::View::getTiming ( ) const
inline

Get the pointer to the timing object

Returns
Pointer to the timing object

Definition at line 758 of file View.hpp.

758  {
759  return mTiming;
760 }
TimingSharedPtr mTiming
Definition: View.hpp:618
const View::Type torc::generic::View::getType ( void  ) const
inline

Get the type of view.

Returns
Type of view

Definition at line 630 of file View.hpp.

630  {
631  return mType;
632 }
void torc::generic::UserDataContainer::getUserData ( std::list< std::string > &  outUserData) const
inlineinherited

Get the list of all userData

Parameters
[out]outUserDataThe list of all userData

Definition at line 78 of file UserDataContainer.hpp.

78  {
79  outUserData.insert(outUserData.end(), mUserData.begin(), mUserData.end());
80  return;
81 }
std::list< std::string > mUserData
bool torc::generic::Extern::isExtern ( ) const
inlineinherited

Get whether the item is an extern(placeholder) or an actual item.

Returns
True if extern, false otherwise

Definition at line 95 of file Extern.hpp.

95  {
96  return mIsExtern;
97 }
void torc::generic::View::removeInstance ( const std::string &  inName)
throw (Error
)

Remove the specified instance from the list of cells.

Parameters
inNameName of the object to be delete
Exceptions
ErrorEmpty Instance name
  • Id : eMessageIdErrorEmptyItemName
  • Context Data
ErrorInstance name not preset in collection.
  • Id : eMessageIdErrorItemNotFound
  • Context Data

Remove the specified instance from the list of cells. If an empty pointer is passed, it returns without doing anything

Parameters
inInstancePointer to an instance object.
Exceptions
ErrorEmpty Instance name
ErrorInstance name not preset in collection.

Definition at line 190 of file View.cpp.

190  {
191  if(inName.empty()) {
192  Error e(eMessageIdErrorEmptyItemName, __FUNCTION__, __FILE__, __LINE__);
193  e.saveContextData("Instance name", inName);
194  throw e;
195  }
196  InstanceSharedPtr instance = findInstance(inName);
197  if(instance) {
198  std::vector<PortReferenceSharedPtr> refs;
199  instance->getPortReferences(refs);
200  for_each(refs.begin(), refs.end(),
201  boost::bind(boost::mem_fn(&Connectable::disconnect), _1));
202  if(false == mInstanceSymTab.remove(inName)) {
203  Error e(eMessageIdErrorItemNotFound, __FUNCTION__, __FILE__, __LINE__);
204  e.saveContextData("Instance name", inName);
205  throw e;
206  }
207  } else {
208  Error e(eMessageIdErrorItemNotFound, __FUNCTION__, __FILE__, __LINE__);
209  e.saveContextData("Instance name", inName);
210  throw e;
211  }
212 }
boost::shared_ptr< Instance > InstanceSharedPtr
bool remove(const KeyType &inKey)
Definition: SymTab.hpp:153
InstanceSharedPtr findInstance(const std::string &inName)
Definition: View.cpp:170
SymTab< std::string, InstanceSharedPtr > mInstanceSymTab
Definition: View.hpp:609

+ Here is the call graph for this function:

void torc::generic::View::removeNet ( const std::string &  inName)
throw (Error
)

Remove the specified net from the list of nets. If an empty pointer is passed, it returns without doing anything

Parameters
inNameName of the object to be delete
Exceptions
ErrorEmpty Net name
  • Id : eMessageIdErrorEmptyItemName
  • Context Data
    • Net name - String
ErrorNet not preset in collection.
  • Id : eMessageIdErrorItemNotFound
  • Context Data
    • Net name - String

Remove the specified net from the list of nets. If an empty pointer is passed, it returns without doing anything

Parameters
inNetPointer to a net object.
Exceptions
ErrorEmpty Net name
ErrorNet not preset in collection.

Definition at line 286 of file View.cpp.

286  {
287  if(inName.empty()) {
288  Error e(eMessageIdErrorEmptyItemName, __FUNCTION__, __FILE__, __LINE__);
289  e.saveContextData("Net name", inName);
290  throw e;
291  }
292  if(false == mNetSymTab.remove(inName)) {
293  Error e(eMessageIdErrorItemNotFound, __FUNCTION__, __FILE__, __LINE__);
294  e.saveContextData("Net name", inName);
295  throw e;
296  }
297 }
SymTab< std::string, NetSharedPtr > mNetSymTab
Definition: View.hpp:610
bool remove(const KeyType &inKey)
Definition: SymTab.hpp:153

+ Here is the call graph for this function:

void torc::generic::View::removePort ( const std::string &  inName)
throw (Error
)

Remove the specified port from the list of ports.

Parameters
inNameName of the port to be removed
Exceptions
ErrorEmpty Port name
  • Id : eMessageIdErrorEmptyItemName
  • Context Data
    • Port name - String
ErrorPort not preset in collection.
  • Id : eMessageIdErrorItemNotFound
  • Context Data
    • Port name - String

Remove the specified port from the list of ports. If an empty pointer is passed, it returns without doing anything

Parameters
inNameName of the port to be removed
Exceptions
ErrorEmpty Port name
ErrorPort not preset in collection.

Definition at line 372 of file View.cpp.

372  {
373  if(inName.empty()) {
374  Error e(eMessageIdErrorEmptyItemName, __FUNCTION__, __FILE__, __LINE__);
375  e.saveContextData("Port name", inName);
376  throw e;
377  }
378  if(false == mPortSymTab.remove(inName)) {
379  Error e(eMessageIdErrorItemNotFound, __FUNCTION__, __FILE__, __LINE__);
380  e.saveContextData("Port name", inName);
381  throw e;
382  }
383 }
bool remove(const KeyType &inKey)
Definition: SymTab.hpp:153
SymTab< std::string, PortSharedPtr > mPortSymTab
Definition: View.hpp:611

+ Here is the call graph for this function:

void torc::generic::Commentable::setComments ( const std::vector< std::string > &  inSource)
inherited

Get the list of all comments

Parameters
[in]inSourceA list of all comments to be set on this object

Definition at line 45 of file Commentable.cpp.

45  {
46  mComments.insert(mComments.end(), inSource.begin(), inSource.end());
47 }
std::vector< std::string > mComments
Definition: Commentable.hpp:77
void torc::generic::View::setInstances ( const std::vector< InstanceSharedPtr > &  inSource)
throw (Error
)

Set the list of instances to this view. It will lead to a linear traversal on the list. So usage of this API is not recommended.

Parameters
[in]inSourceList of instances.

Set the list of instances to this view.

Parameters
[in]inSourceList of instances.

Definition at line 119 of file View.cpp.

119  {
120  std::vector<InstanceSharedPtr>::const_iterator instance = inSource.begin();
121  std::vector<InstanceSharedPtr>::const_iterator end = inSource.end();
122  for(; instance != end; ++instance) {
123  try {
124  addInstance(*instance);
125  } catch(Error& e) {
126  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
127  throw;
128  }
129  }
130 }
void addInstance(const InstanceSharedPtr &inInstance)
Definition: View.cpp:141

+ Here is the call graph for this function:

void torc::generic::View::setInterfaceAttributes ( const InterfaceAttributesSharedPtr inSource)

Set the attributes of a view interface. Attributes include designator, simulate, timing, comments, userdata etc. This will decompile within (contents ...) construct.

Parameters
[in]inSourcePointer to InterfaceAttributes object.

Definition at line 476 of file View.cpp.

476  {
477  mAttributes = inSource;
478 }
InterfaceAttributesSharedPtr mAttributes
Definition: View.hpp:616
void torc::generic::View::setInterfaceJoinedInfos ( const std::vector< InterfaceJoinedInfoSharedPtr > &  inSource)
throw (Error
)

Set the vector of joined info for this view.

Parameters
[in]inSourceVector of joined info to this view.
Exceptions
ErrorCould not add joined info because pointer to the joined info does not exist

Definition at line 435 of file View.cpp.

436  {
437  std::vector<InterfaceJoinedInfoSharedPtr>::const_iterator entry = inSource.begin();
438  std::vector<InterfaceJoinedInfoSharedPtr>::const_iterator end = inSource.end();
439  for(; entry != end; ++entry) {
440  try {
441  addInterfaceJoinedInfo(*entry);
442  } catch(Error& e) {
443  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
444  throw;
445  }
446  }
447 }
bool addInterfaceJoinedInfo(const InterfaceJoinedInfoSharedPtr &inJoinedInfo)
Definition: View.cpp:455

+ Here is the call graph for this function:

void torc::generic::Extern::setIsExtern ( bool  inIsExtern)
inherited

Set whether an item is extern or not.

Parameters
[in]isExternTrue if extern, false otherwise

Definition at line 35 of file Extern.cpp.

35  {
36  mIsExtern = inIsExtern;
37 }
void torc::generic::Nameable::setName ( const std::string &  inSource)
throw (Error
)
inherited

Set a name for this object

Parameters
[in]inSourceName of the object
Exceptions
ErrorCould not set name, because name is empty (Will be used by array members)
  • Id : eMessageIdErrorEmptyItemName
  • Context Data

Set a name for this object

Parameters
[in]inSourceName of the object
Exceptions
ErrorCould not set name, because name is empty (Will be used by array members)

Definition at line 41 of file Nameable.cpp.

41  {
42  if(inSource.empty()) {
43  Error e(eMessageIdErrorEmptyItemName, __FUNCTION__, __FILE__, __LINE__);
44  e.saveContextData("Nameable", inSource);
45  throw e;
46  }
47  mName = inSource;
48 }

+ Here is the call graph for this function:

void torc::generic::View::setNets ( const std::vector< NetSharedPtr > &  inSource)
throw (Error
)

Set the list of nets to this view. It will lead to a linear traversal on the list. So usage of this API is not recommended.

Parameters
[in]inSourceList of nets.

Set the list of nets to this view.

Parameters
[in]inSourceList of nets.

Definition at line 219 of file View.cpp.

219  {
220  std::vector<NetSharedPtr>::const_iterator net = inSource.begin();
221  std::vector<NetSharedPtr>::const_iterator end = inSource.end();
222  for(; net != end; ++net) {
223  try {
224  addNet(*net);
225  } catch(Error& e) {
226  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
227  throw;
228  }
229  }
230 }
void addNet(const NetSharedPtr &inNet)
Definition: View.cpp:240

+ Here is the call graph for this function:

void torc::generic::View::setNonNetlistViewData ( const std::string &  inData)

Definition at line 385 of file View.cpp.

385  {
386  mNonNetlistViewData = inData;
387 }
std::string mNonNetlistViewData
Definition: View.hpp:612
void torc::generic::Renamable::setOriginalName ( const Name inSource)
virtualinherited

Set the new name provided for the object.

Parameters
[in]inSourceName of the object

Definition at line 35 of file generic/Renamable.cpp.

35  {
36  mOriginalName = inSource;
37 }
void torc::generic::View::setParameters ( const ParameterMapSharedPtr inSource)
virtual void torc::generic::ParentedObject< Cell >::setParent ( const boost::shared_ptr< Cell > &  inSource)
virtualinherited

Set a pointer to the parent

Parameters
[in]inSourceSet a pointer to the parent
void torc::generic::View::setPermutables ( const std::vector< PermutableSharedPtr > &  inSource)
throw (Error
)

Set the vector of permutables to this view. It will lead to a linear traversal on the list.

Parameters
[in]inSourceVector of permutables to this view.
Exceptions
ErrorCould not add permutable because pointer to the permutable does not exist

Set the vector of permutables to this view. It will lead to a linear traversal on the list. So usage of this API is not recommended.

Parameters
[in]inSourceVector of permutables to this view.
Exceptions
ErrorCould not add permutable because pointer to the permutable does not exist

Definition at line 396 of file View.cpp.

396  {
397  std::vector<PermutableSharedPtr>::const_iterator entry = inSource.begin();
398  std::vector<PermutableSharedPtr>::const_iterator end = inSource.end();
399  for(; entry != end; ++entry) {
400  try {
401  addPermutable(*entry);
402  } catch(Error& e) {
403  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
404  throw;
405  }
406  }
407 }
bool addPermutable(const PermutableSharedPtr &inPermutable)
Definition: View.cpp:415

+ Here is the call graph for this function:

void torc::generic::View::setPorts ( const std::vector< PortSharedPtr > &  inSource)
throw (Error
)

Set the list of ports to this view. It will lead to a linear traversal on the list. So usage of this API is not recommended.

Parameters
[in]inSourceList of ports

Set the list of ports to this view.

Parameters
[in]inSourceList of ports

Definition at line 304 of file View.cpp.

304  {
305  std::vector<PortSharedPtr>::const_iterator port = inSource.begin();
306  std::vector<PortSharedPtr>::const_iterator end = inSource.end();
307  for(; port != end; ++port) {
308  try {
309  addPort(*port);
310  } catch(Error& e) {
311  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
312  throw;
313  }
314  }
315 
316 }
void addPort(const PortSharedPtr &inPort)
Definition: View.cpp:325

+ Here is the call graph for this function:

void torc::generic::PropertyContainer::setProperties ( const std::map< std::string, PropertySharedPtr > &  inSource)
inherited

Set the map of properties

Parameters
[in]inSourceThe map of properties

Definition at line 66 of file PropertyContainer.cpp.

66  {
67  std::map<std::string, PropertySharedPtr>::const_iterator it = inSource.begin();
68  for(; it != inSource.end(); it++) {
69  setProperty((*it).first, (*it).second);
70  }
71 }
bool setProperty(const std::string &inName, const PropertySharedPtr &inProperty)

+ Here is the call graph for this function:

bool torc::generic::PropertyContainer::setProperty ( const std::string &  inName,
const PropertySharedPtr inProperty 
)
inherited

Save the inSource of a property

Parameters
[in]inNameName of the property to be saved
[in]inPropertyPointer to the property object if present, empty pointer otherwise.
Returns
bool True if saved, false otherwise.

Save the inSource of a property

Parameters
[in]inNameName of the property to be saved
[in]inPopertyPointer to the property object if present, empty pointer otherwise.
Returns
bool True if saved, false otherwise.

Definition at line 53 of file PropertyContainer.cpp.

54  {
55  if(!inName.empty()) {
56  return mProperties.set(inName, inProperty);
57  }
58  return false;
59 }
bool set(const KeyType &inKey, const ValueType &inValue)
Definition: SymTab.hpp:132
SymTab< std::string, PropertySharedPtr > mProperties

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void torc::generic::View::setSimulate ( const SimulateSharedPtr inSource)

Set the pointer to the simulate.

Parameters
[in]inSourcePointer to the simulate

Definition at line 485 of file View.cpp.

485  {
486  mSimulate = inSource;
487 }
SimulateSharedPtr mSimulate
Definition: View.hpp:617
void torc::generic::StatusContainer::setStatuses ( const std::vector< StatusSharedPtr > &  inStatus)
inherited

Set a vector of pointer to Status object

Parameters
[in]inStatusThe vector of pointer to Status object

Definition at line 32 of file StatusContainer.cpp.

32  {
33  std::vector<StatusSharedPtr>::const_iterator it = inStatus.begin();
34  for(; it != inStatus.end(); it++) {
35  mStatuses.push_back(*it);
36  }
37 }
std::vector< StatusSharedPtr > mStatuses
void torc::generic::View::setTiming ( const TimingSharedPtr inSource)

Set the pointer to the timing object

Parameters
[in]inSourcePointer to the timing object

Definition at line 494 of file View.cpp.

494  {
495  mTiming = inSource;
496 }
TimingSharedPtr mTiming
Definition: View.hpp:618
void torc::generic::View::setType ( const Type inSource)

Set the type of view

Parameters
[in]inSourceType of view

Definition at line 110 of file View.cpp.

110  {
111  mType = inSource;
112 }
void torc::generic::UserDataContainer::setUserData ( const std::list< std::string > &  inSource)
inherited

Set the list of userData

Parameters
[in]inSourceThe list of UserData

Definition at line 26 of file UserDataContainer.cpp.

26  {
27  mUserData.insert(mUserData.end(), inSource.begin(), inSource.end());
28 }
std::list< std::string > mUserData
void torc::generic::SelfReferencing< View >::setWeakThis ( const WeakPointer inWeakThis)
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.

Parameters
[in]weakThisA weak pointer to this object

Friends And Related Function Documentation

friend class FactoryType< View >
friend

Definition at line 69 of file View.hpp.

Field Documentation

InterfaceAttributesSharedPtr torc::generic::View::mAttributes
private

Definition at line 616 of file View.hpp.

SymTab<std::string, InstanceSharedPtr> torc::generic::View::mInstanceSymTab
private

Definition at line 609 of file View.hpp.

std::vector<InterfaceJoinedInfoSharedPtr> torc::generic::View::mInterfaceJoinedInfos
private

Definition at line 615 of file View.hpp.

ParameterContext torc::generic::View::mMyContext
private

Definition at line 608 of file View.hpp.

SymTab<std::string, NetSharedPtr> torc::generic::View::mNetSymTab
private

Definition at line 610 of file View.hpp.

std::string torc::generic::View::mNonNetlistViewData
private

Definition at line 612 of file View.hpp.

ParameterMapSharedPtr torc::generic::View::mParameters
private

Definition at line 607 of file View.hpp.

std::vector<PermutableSharedPtr> torc::generic::View::mPermutables
private

Definition at line 614 of file View.hpp.

SymTab<std::string, PortSharedPtr> torc::generic::View::mPortSymTab
private

Definition at line 611 of file View.hpp.

SimulateSharedPtr torc::generic::View::mSimulate
private

Definition at line 617 of file View.hpp.

TimingSharedPtr torc::generic::View::mTiming
private

Definition at line 618 of file View.hpp.

Type torc::generic::View::mType
private

Definition at line 613 of file View.hpp.


The documentation for this class was generated from the following files: