#include <InterfaceJoinedInfo.hpp>
Public Types | |
enum | JoinedType { eJoinedTypeJoin = 0, eJoinedTypeWeak, eJoinedTypeMust } |
enum | RelationType { eRelationTypeParent = 0, eRelationTypeChild } |
typedef VisitorType < InterfaceJoinedInfo > | Visitor |
Public Member Functions | |
virtual void | accept (BaseVisitor &visitor) throw (Error) |
Recive a visitor to this class. The visit method of the visitor 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 visitor specialization. See Visitor documentation for more details. | |
const JoinedType | getJoinedType () const throw () |
void | setJoinedType (const JoinedType &inSource) throw () |
void | addPort (const PortSharedPtr &inPort) throw (Error) |
void | getPorts (std::list< PortSharedPtr > &outPorts) const throw () |
void | setPorts (const std::list< PortSharedPtr > &inSource) throw () |
void | addPortList (const PortListSharedPtr &inPortList) throw () |
void | getPortLists (std::list< PortListSharedPtr > &outPortLists) const throw () |
void | setPortLists (const std::list< PortListSharedPtr > &inSource) throw () |
void | getChildren (std::vector< InterfaceJoinedInfoSharedPtr > &outJoinedInfos) const throw () |
void | setChildren (const std::vector< InterfaceJoinedInfoSharedPtr > &inSource) throw () |
bool | addChildJoinedInfo (const InterfaceJoinedInfoSharedPtr &inChildJoinInfo) throw () |
template<typename _Action> | |
void | applyOnAllChildren (const _Action &action) throw (Error) |
const RelationType | getRelationType () const throw () |
void | setRelationType (const RelationType &inSource) throw () |
size_t | getSize () const throw () |
Private Attributes | |
JoinedType | mJoinedType |
RelationType | mRelationType |
std::list< PortSharedPtr > | mJoinedPorts |
std::list< PortListSharedPtr > | mJoinedPortLists |
std::vector < InterfaceJoinedInfoSharedPtr > | mChildren |
Friends | |
class | FactoryType< InterfaceJoinedInfo > |
Classes | |
class | Factory |
The InterfaceJoinedInfo class is used to hold interface joining information. Joining information specify which ports (scalar port, array of ports, bundle of ports) or port lists are shorted together.
Definition at line 44 of file InterfaceJoinedInfo.hpp.
Convenience class to visit an interface joining information.
Definition at line 77 of file InterfaceJoinedInfo.hpp.
Interface joining type
Definition at line 55 of file InterfaceJoinedInfo.hpp.
Type of the InterfaceJoinedInfo, Is it parent or child.
Definition at line 67 of file InterfaceJoinedInfo.hpp.
void torc::generic::InterfaceJoinedInfo::accept | ( | BaseVisitor & | visitor | ) | throw (Error) [virtual] |
Recive a visitor to this class. The visit method of the visitor 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 visitor specialization. See Visitor documentation for more details.
[in,out] | visitor | A reference to the visitor object |
Error | Visitor type inappropriate for visiting this object or any other error thrown by the Visitor::throw() method. |
Implements torc::generic::Visitable.
Definition at line 211 of file InterfaceJoinedInfo.cpp.
const InterfaceJoinedInfo::JoinedType torc::generic::InterfaceJoinedInfo::getJoinedType | ( | ) | const throw () [inline] |
Get the interface joining type
Definition at line 264 of file InterfaceJoinedInfo.hpp.
void torc::generic::InterfaceJoinedInfo::setJoinedType | ( | const JoinedType & | value | ) | throw () |
Set the interface joining type
[in] | inSource | Interface joining type |
[in] | inSource | Interface joining type |
Definition at line 68 of file InterfaceJoinedInfo.cpp.
void torc::generic::InterfaceJoinedInfo::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. |
[in] | inPort | Pointer to port to be added. |
Definition at line 79 of file InterfaceJoinedInfo.cpp.
void torc::generic::InterfaceJoinedInfo::getPorts | ( | std::list< PortSharedPtr > & | outPorts | ) | const throw () [inline] |
Get the list of pointers to the joined ports of an interface
Definition at line 274 of file InterfaceJoinedInfo.hpp.
void torc::generic::InterfaceJoinedInfo::setPorts | ( | const std::list< PortSharedPtr > & | inSource | ) | throw () |
Set the list of joined ports of an interface
[in] | inSource | List of ports to be joined to an interface |
Definition at line 115 of file InterfaceJoinedInfo.cpp.
void torc::generic::InterfaceJoinedInfo::addPortList | ( | const PortListSharedPtr & | inPortList | ) | throw () |
Add a portList to the list of portLists. Empty pointer is ignored.
[in] | inPortList | Pointer to portList to be added. |
Definition at line 101 of file InterfaceJoinedInfo.cpp.
void torc::generic::InterfaceJoinedInfo::getPortLists | ( | std::list< PortListSharedPtr > & | outPortLists | ) | const throw () [inline] |
Get the list of joined portLists of an interface
Definition at line 286 of file InterfaceJoinedInfo.hpp.
void torc::generic::InterfaceJoinedInfo::setPortLists | ( | const std::list< PortListSharedPtr > & | inSource | ) | throw () |
Set the list of joined portLists of an interface
[in] | inSource | List of portLists to be joined to an interface |
Definition at line 140 of file InterfaceJoinedInfo.cpp.
void torc::generic::InterfaceJoinedInfo::getChildren | ( | std::vector< InterfaceJoinedInfoSharedPtr > & | outJoinedInfos | ) | const throw () [inline] |
Get the nested interface joined info.
[out] | outJoinedInfos | Vector of interface joined info to be appended to |
Definition at line 298 of file InterfaceJoinedInfo.hpp.
void torc::generic::InterfaceJoinedInfo::setChildren | ( | const std::vector< InterfaceJoinedInfoSharedPtr > & | inSource | ) | throw () |
Set the nested joining information
[in] | inSource | Vector containing joining informations |
Error | Could not add child joined info because pointer to the joined info does not exist |
[in] | inSource | Vector containing joining informations |
Error | Could not add child joined info because pointer to the joined info does not exist |
Definition at line 167 of file InterfaceJoinedInfo.cpp.
bool torc::generic::InterfaceJoinedInfo::addChildJoinedInfo | ( | const InterfaceJoinedInfoSharedPtr & | inChildJoinInfo | ) | throw () |
Add a joined info to parent joined info
[in] | inChildJoinInfo | Child interface joined info to be added to parent |
Definition at line 192 of file InterfaceJoinedInfo.cpp.
void torc::generic::InterfaceJoinedInfo::applyOnAllChildren | ( | const _Action & | action | ) | throw (Error) [inline] |
Apply action on all children
[in] | action | Action to be applied |
Definition at line 310 of file InterfaceJoinedInfo.hpp.
const InterfaceJoinedInfo::RelationType torc::generic::InterfaceJoinedInfo::getRelationType | ( | ) | const throw () [inline] |
void torc::generic::InterfaceJoinedInfo::setRelationType | ( | const RelationType & | inSource | ) | throw () |
Set the relation type.
[in] | inSource | RelationType |
Definition at line 230 of file InterfaceJoinedInfo.cpp.
size_t torc::generic::InterfaceJoinedInfo::getSize | ( | void | ) | const throw () |
Get the total number of bits of the composition
Definition at line 239 of file InterfaceJoinedInfo.cpp.