torc-master
|
Represents and EDIF View. More...
#include <View.hpp>
Data Structures | |
class | Factory |
Public Types | |
enum | Type { eTypeMaskLayout = 0, eTypePCBLayout, eTypeNetlist, eTypeSchematic, eTypeSymbolic, eTypeBehavior, eTypeLogicModel, eTypeDocument, eTypeGraphic, eTypeStranger } |
typedef VisitorType< View > | Visitor |
typedef std::string | Name |
typedef boost::shared_ptr< Type > | Pointer |
typedef boost::weak_ptr< Type > | WeakPointer |
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< Cell > | getParent () 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, NetSharedPtr > | mNetSymTab |
SymTab< std::string, PortSharedPtr > | mPortSymTab |
std::string | mNonNetlistViewData |
Type | mType |
std::vector< PermutableSharedPtr > | mPermutables |
std::vector < InterfaceJoinedInfoSharedPtr > | mInterfaceJoinedInfos |
InterfaceAttributesSharedPtr | mAttributes |
SimulateSharedPtr | mSimulate |
TimingSharedPtr | mTiming |
Friends | |
class | FactoryType< View > |
Represents and EDIF View.
The View class represents an EDIF view. A view can be conrete or extern (black-box).
|
inherited |
Definition at line 40 of file generic/Renamable.hpp.
|
inherited |
Definition at line 36 of file SelfReferencing.hpp.
typedef VisitorType<View> torc::generic::View::Visitor |
|
inherited |
Definition at line 37 of file SelfReferencing.hpp.
Type of the view
Enumerator | |
---|---|
eTypeMaskLayout | |
eTypePCBLayout | |
eTypeNetlist | |
eTypeSchematic | |
eTypeSymbolic | |
eTypeBehavior | |
eTypeLogicModel | |
eTypeDocument | |
eTypeGraphic | |
eTypeStranger |
Definition at line 76 of file View.hpp.
|
virtual |
Definition at line 504 of file View.cpp.
|
protected |
Definition at line 498 of file View.cpp.
|
virtual |
Implements torc::generic::Visitable.
Definition at line 89 of file View.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::View::addInstance | ( | const InstanceSharedPtr & | inInstance | ) | |
throw | ( | Error | |||
) |
Add an instance to the list of instances. Empty pointer is ignored.
[in] | inInstance | Pointer to instance to be added. |
Error | Could not add instance because pointer to the Instance does not exist
|
Error | Could not add instance because Instance name is empty
|
Error | Could not add instance because Instance name already exists
|
Add an instance to the list of instances. Empty pointer is ignored.
[in] | inInstance | Pointer to instance to be added. |
Error | Could not add instance because pointer to the Instance does not exist |
Error | Could not add instance because Instance name is empty |
Error | Could not add instance because Instance name already exists |
Definition at line 141 of file View.cpp.
bool torc::generic::View::addInterfaceJoinedInfo | ( | const InterfaceJoinedInfoSharedPtr & | inJoinedInfo | ) | |
throw | ( | Error | |||
) |
Add a joined info to this view.
[in] | inJoinedInfo | Pointer to joined info to be added. |
Error | Could not add joined info because pointer to the joined info does not exist |
Definition at line 455 of file View.cpp.
void torc::generic::View::addNet | ( | const NetSharedPtr & | inNet | ) | |
throw | ( | Error | |||
) |
Add a net to the list of nets. Empty pointer is ignored.
[in] | inNet | Pointer to net to be added. |
Error | Could not add Net, because Net name is empty
|
Error | Could not add Net, because Net name already exists
|
Add a net to the list of nets. Empty pointer is ignored.
[in] | inNet | Pointer to net to be added. |
Error | Could not add Net, because Net name is empty |
Error | Could not add Net, because Net name already exists |
Definition at line 240 of file View.cpp.
bool torc::generic::View::addPermutable | ( | const PermutableSharedPtr & | inPermutable | ) | |
throw | ( | Error | |||
) |
Add a permutable to this view.
[in] | inPermutable | Pointer to permutable to be added. |
Error | Could not add permutable because pointer to the permutable does not exist |
Definition at line 415 of file View.cpp.
void torc::generic::View::addPort | ( | const PortSharedPtr & | inPort | ) | |
throw | ( | Error | |||
) |
Add a port to the list of ports. Empty pointer is ignored.
[in] | inPort | Pointer to port to be added. |
Error | Could not add port, because Port name is empty
|
Error | Could not add port, because Port name already exists |
Add a port to the list of ports. Empty pointer is ignored.
[in] | inPort | Pointer to port to be added. |
Definition at line 325 of file View.cpp.
|
inherited |
Add a status to the vector of statuses. If an empty pointer is supplied, it returns without doing anything.
[in] | inStatus | A pointer to a status object. |
Add a status to the list of statuses. If an empty pointer is supplied, it returns without doing anything.
[in] | inStatus | A pointer to a status object. |
Definition at line 47 of file StatusContainer.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 Instances.
[in] | action | Action to be applied |
Definition at line 638 of file View.hpp.
|
inline |
Apply action on all joined info.
[in] | action | Action to be applied |
Definition at line 722 of file View.hpp.
|
inline |
Apply action on all Nets.
[in] | action | Action to be applied |
Definition at line 652 of file View.hpp.
|
inline |
Apply action on all Permutables.
[in] | action | Action to be applied |
Apply action on all children.
[in] | action | Action to be applied |
Definition at line 693 of file View.hpp.
|
inline |
Apply action on all Ports.
[in] | action | Action to be applied |
Definition at line 665 of file View.hpp.
|
inlineinherited |
Apply action on all properties.
[in] | action | Action to be applied |
Definition at line 113 of file PropertyContainer.hpp.
|
inlineinherited |
Apply action on all statuses.
[in] | action | Action to be applied |
Definition at line 95 of file StatusContainer.hpp.
InstanceSharedPtr torc::generic::View::findInstance | ( | const std::string & | inName | ) |
Find an instance by name, in the list of instances.
[in] | inName | String inSource specifying the name of the instance. |
Error | Empty Instance name
|
Find an instance by name, in the list of instances.
[in] | inName | String inSource specifying the name of the instance. |
Definition at line 170 of file View.cpp.
NetSharedPtr torc::generic::View::findNet | ( | const std::string & | inName | ) |
Find a net by name, in the list of net.
[in] | inName | String inSource specifying the name of the Net |
Find a net by name, in the list of net.
[in] | inName | String inSource specifying the name of the Net |
Definition at line 266 of file View.cpp.
PortSharedPtr torc::generic::View::findPort | ( | const std::string & | inName | ) |
Find a port by name, in the list of ports.
[in] | inName | String inSource specifying the name of the port. |
Find a port by name, in the list of ports.
[in] | inName | String inSource specifying the name of the port. |
Definition at line 352 of file View.cpp.
|
inlineinherited |
Get the list of all comments
Definition at line 85 of file Commentable.hpp.
|
inline |
Get the list of instances for this view.
[out] | outInstances | List of instances to be appended to |
Definition at line 634 of file View.hpp.
|
inline |
Get the attributes of a view interface. Attributes include designator, simulate, timing, comments, userdata etc. This will decompile within (contents ...) construct.
Get the attributes of a view interface. Attributes include designator, comments, userdata etc.
Definition at line 740 of file View.hpp.
|
inline |
Get the vector of joined info for this view.
[out] | outJoinedInfos | Vector of joined info to be appended to |
Definition at line 711 of file View.hpp.
|
inlineinherited |
Get whether the item is an extern(placeholder) or an actual item.
Definition at line 86 of file Extern.hpp.
|
inlinevirtualinherited |
Get the object name
Definition at line 89 of file Nameable.hpp.
|
inline |
Get the list of nets for this view.
[out] | outNets | List of nets to be appended to |
Definition at line 648 of file View.hpp.
|
inline |
|
inlinevirtualinherited |
Get the new name provided for the object.
Definition at line 78 of file generic/Renamable.hpp.
|
inline |
ParameterMapSharedPtr torc::generic::View::getParameters | ( | ) | ||
throw | ( | Error | ||
) |
Get the ParameterMap corresponding to this cell
Definition at line 98 of file View.cpp.
|
inlineinherited |
Get a pointer to the parent object
|
inline |
Get the vector of permutables for this view.
[out] | outPermutables | Vector of permutable to be appended to |
Definition at line 684 of file View.hpp.
|
inline |
Get the list of ports for this view.
[out] | outPorts | List of ports to be appended to |
Definition at line 661 of file View.hpp.
|
inlineinherited |
Get the map of all properties
[out] | outProperties | The map of properties |
Get the map of all properties
Definition at line 107 of file PropertyContainer.hpp.
|
inherited |
Get a property
[in] | inName | Name of the property to be retreived |
Get a property
[in] | name | Name of the property to be retreived |
Definition at line 37 of file PropertyContainer.cpp.
|
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 |
|
inlineinherited |
Get a vector of pointer to Status object
[out] | outStatus | The vector of pointer to Status object |
Definition at line 86 of file StatusContainer.hpp.
|
inline |
|
inline |
Get the type of view.
|
inlineinherited |
Get the list of all userData
[out] | outUserData | The list of all userData |
Definition at line 78 of file UserDataContainer.hpp.
|
inlineinherited |
Get whether the item is an extern(placeholder) or an actual item.
Definition at line 95 of file Extern.hpp.
void torc::generic::View::removeInstance | ( | const std::string & | inName | ) | |
throw | ( | Error | |||
) |
Remove the specified instance from the list of cells.
inName | Name of the object to be delete |
Error | Empty Instance name
|
Error | Instance name not preset in collection.
|
Remove the specified instance from the list of cells. If an empty pointer is passed, it returns without doing anything
inInstance | Pointer to an instance object. |
Definition at line 190 of file View.cpp.
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
inName | Name of the object to be delete |
Error | Empty Net name
|
Error | Net not preset in collection.
|
Remove the specified net from the list of nets. If an empty pointer is passed, it returns without doing anything
inNet | Pointer to a net object. |
Definition at line 286 of file View.cpp.
void torc::generic::View::removePort | ( | const std::string & | inName | ) | |
throw | ( | Error | |||
) |
Remove the specified port from the list of ports.
inName | Name of the port to be removed |
Error | Empty Port name
|
Error | Port not preset in collection.
|
Remove the specified port from the list of ports. If an empty pointer is passed, it returns without doing anything
inName | Name of the port to be removed |
Definition at line 372 of file View.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::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.
[in] | inSource | List of instances. |
Set the list of instances to this view.
[in] | inSource | List of instances. |
Definition at line 119 of file View.cpp.
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.
[in] | inSource | Pointer to InterfaceAttributes object. |
Definition at line 476 of file View.cpp.
void torc::generic::View::setInterfaceJoinedInfos | ( | const std::vector< InterfaceJoinedInfoSharedPtr > & | inSource | ) | |
throw | ( | Error | |||
) |
Set the vector of joined info for this view.
[in] | inSource | Vector of joined info to this view. |
Error | Could not add joined info because pointer to the joined info does not exist |
Definition at line 435 of file View.cpp.
|
inherited |
Set whether an item is extern or not.
[in] | isExtern | True if extern, false otherwise |
Definition at line 35 of file Extern.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.
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.
[in] | inSource | List of nets. |
Set the list of nets to this view.
[in] | inSource | List of nets. |
Definition at line 219 of file View.cpp.
void torc::generic::View::setNonNetlistViewData | ( | const std::string & | inData | ) |
|
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::View::setParameters | ( | const ParameterMapSharedPtr & | inSource | ) |
|
virtualinherited |
Set a pointer to the parent
[in] | inSource | Set 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.
[in] | inSource | Vector of permutables to this view. |
Error | Could 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.
[in] | inSource | Vector of permutables to this view. |
Error | Could not add permutable because pointer to the permutable does not exist |
Definition at line 396 of file View.cpp.
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.
[in] | inSource | List of ports |
Set the list of ports to this view.
[in] | inSource | List of ports |
Definition at line 304 of file View.cpp.
|
inherited |
Set the map of properties
[in] | inSource | The map of properties |
Definition at line 66 of file PropertyContainer.cpp.
|
inherited |
Save the inSource of a property
[in] | inName | Name of the property to be saved |
[in] | inProperty | Pointer to the property object if present, empty pointer otherwise. |
Save the inSource of a property
[in] | inName | Name of the property to be saved |
[in] | inPoperty | Pointer to the property object if present, empty pointer otherwise. |
Definition at line 53 of file PropertyContainer.cpp.
void torc::generic::View::setSimulate | ( | const SimulateSharedPtr & | inSource | ) |
|
inherited |
Set a vector of pointer to Status object
[in] | inStatus | The vector of pointer to Status object |
Definition at line 32 of file StatusContainer.cpp.
void torc::generic::View::setTiming | ( | const TimingSharedPtr & | inSource | ) |
void torc::generic::View::setType | ( | const Type & | inSource | ) |
Set the type of view
[in] | inSource | Type of view |
|
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 |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |