#include <View.hpp>
Public Types | |
enum | Type { eTypeMaskLayout = 0, eTypePCBLayout, eTypeNetlist, eTypeSchematic, eTypeSymbolic, eTypeBehavior, eTypeLogicModel, eTypeDocument, eTypeGraphic, eTypeStranger } |
typedef VisitorType< View > | Visitor |
Public Member Functions | |
virtual void | accept (BaseVisitor &inoutVisitor) throw (Error) |
ParameterContext | getParameterContext () const throw () |
ParameterMapSharedPtr | getParameters () throw (Error) |
void | setParameters (const ParameterMapSharedPtr &inSource) throw () |
const Type | getType () const throw () |
void | setType (const Type &inSource) throw () |
void | getInstances (std::vector< InstanceSharedPtr > &outInstances) const throw () |
void | setInstances (const std::vector< InstanceSharedPtr > &inSource) throw (Error) |
void | addInstance (const InstanceSharedPtr &inInstance) throw (Error) |
InstanceSharedPtr | findInstance (const std::string &inName) throw () |
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 throw () |
void | setNets (const std::vector< NetSharedPtr > &inSource) throw (Error) |
void | addNet (const NetSharedPtr &inNet) throw (Error) |
NetSharedPtr | findNet (const std::string &inName) throw () |
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 throw () |
void | setPorts (const std::vector< PortSharedPtr > &inSource) throw (Error) |
void | addPort (const PortSharedPtr &inPort) throw (Error) |
PortSharedPtr | findPort (const std::string &inName) throw () |
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 throw () |
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 throw () |
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 throw () |
void | setInterfaceAttributes (const InterfaceAttributesSharedPtr &inSource) throw () |
const std::string & | getNonNetlistViewData () const throw () |
void | setNonNetlistViewData (const std::string &inData) throw () |
const SimulateSharedPtr | getSimulate () const throw () |
void | setSimulate (const SimulateSharedPtr &inSource) throw () |
const TimingSharedPtr | getTiming () const throw () |
void | setTiming (const TimingSharedPtr &inSource) throw () |
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 > |
Classes | |
class | Factory |
The View class represents an EDIF view. A view can be conrete or extern (black-box).
Definition at line 64 of file View.hpp.
typedef VisitorType<View> torc::generic::View::Visitor |
void torc::generic::View::accept | ( | BaseVisitor & | inoutVisitor | ) | throw (Error) [virtual] |
Recive a inoutVisitor to this class. The visit method of the inoutVisitor is called and a reference to this object is passed as a parameter. It has to be noted however, that a dynamic_cast is performed inside this method. If the cast fails, an appropriate exception is thrown by this method. This sitation can arise when the passed Visitor object does not inherit from the appropriate inoutVisitor specialization. See Visitor documentation for more details.
[in,out] | inoutVisitor | A reference to the inoutVisitor object |
Error | Visitor type inappropriate for visiting this object or any other error thrown by the Visitor::throw() method. |
Implements torc::generic::Visitable.
ParameterContext torc::generic::View::getParameterContext | ( | ) | const throw () [inline] |
ParameterMapSharedPtr torc::generic::View::getParameters | ( | ) | throw (Error) |
Get the ParameterMap corresponding to this cell
const View::Type torc::generic::View::getType | ( | void | ) | const throw () [inline] |
void torc::generic::View::setType | ( | const Type & | inSource | ) | throw () |
void torc::generic::View::getInstances | ( | std::vector< InstanceSharedPtr > & | outInstances | ) | const throw () [inline] |
void torc::generic::View::setInstances | ( | const std::vector< InstanceSharedPtr > & | inSource | ) | throw (Error) |
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
|
[in] | inInstance | Pointer to instance to be added. |
InstanceSharedPtr torc::generic::View::findInstance | ( | const std::string & | inName | ) | throw () |
Find an instance by name, in the list of instances.
[in] | inName | String inSource specifying the name of the instance. |
Error | Empty Instance name
|
[in] | inName | String inSource specifying the name of the instance. |
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.
|
inInstance | Pointer to an instance object. |
void torc::generic::View::applyOnAllInstances | ( | const _Action & | action | ) | throw (Error) [inline] |
void torc::generic::View::getNets | ( | std::vector< NetSharedPtr > & | outNets | ) | const throw () [inline] |
void torc::generic::View::setNets | ( | const std::vector< NetSharedPtr > & | inSource | ) | throw (Error) |
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
|
[in] | inNet | Pointer to net to be added. |
NetSharedPtr torc::generic::View::findNet | ( | const std::string & | inName | ) | throw () |
Find a net by name, in the list of net.
[in] | inName | String inSource specifying the name of the Net |
[in] | inName | String inSource specifying the name of the Net |
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.
|
inNet | Pointer to a net object. |
void torc::generic::View::applyOnAllNets | ( | const _Action & | action | ) | throw (Error) [inline] |
void torc::generic::View::getPorts | ( | std::vector< PortSharedPtr > & | outPorts | ) | const throw () [inline] |
void torc::generic::View::setPorts | ( | const std::vector< PortSharedPtr > & | inSource | ) | throw (Error) |
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 |
[in] | inPort | Pointer to port to be added. |
PortSharedPtr torc::generic::View::findPort | ( | const std::string & | inName | ) | throw () |
Find a port by name, in the list of ports.
[in] | inName | String inSource specifying the name of the port. |
[in] | inName | String inSource specifying the name of the port. |
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.
|
inName | Name of the port to be removed |
void torc::generic::View::applyOnAllPorts | ( | const _Action & | action | ) | throw (Error) [inline] |
void torc::generic::View::getPermutables | ( | std::vector< PermutableSharedPtr > & | outPermutables | ) | const throw () [inline] |
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 |
[in] | inSource | Vector of permutables to this view. |
Error | Could not add permutable because pointer to the permutable does not exist |
bool torc::generic::View::addPermutable | ( | const PermutableSharedPtr & | inPermutable | ) | throw (Error) |
void torc::generic::View::applyOnAllPermutables | ( | const _Action & | action | ) | throw (Error) [inline] |
void torc::generic::View::getInterfaceJoinedInfos | ( | std::vector< InterfaceJoinedInfoSharedPtr > & | outJoinedInfos | ) | const throw () [inline] |
void torc::generic::View::setInterfaceJoinedInfos | ( | const std::vector< InterfaceJoinedInfoSharedPtr > & | inSource | ) | throw (Error) |
bool torc::generic::View::addInterfaceJoinedInfo | ( | const InterfaceJoinedInfoSharedPtr & | inJoinedInfo | ) | throw (Error) |
void torc::generic::View::applyOnAllInterfaceJoinedInfos | ( | const _Action & | action | ) | throw (Error) [inline] |
const InterfaceAttributesSharedPtr torc::generic::View::getInterfaceAttributes | ( | ) | const throw () [inline] |
Get the attributes of a view interface. Attributes include designator, simulate, timing, comments, userdata etc. This will decompile within (contents ...) construct.
void torc::generic::View::setInterfaceAttributes | ( | const InterfaceAttributesSharedPtr & | inSource | ) | throw () |
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. |
const SimulateSharedPtr torc::generic::View::getSimulate | ( | ) | const throw () [inline] |
void torc::generic::View::setSimulate | ( | const SimulateSharedPtr & | inSource | ) | throw () |
const TimingSharedPtr torc::generic::View::getTiming | ( | ) | const throw () [inline] |
void torc::generic::View::setTiming | ( | const TimingSharedPtr & | inSource | ) | throw () |