torc-master
|
Represents the Interface joining information. More...
#include <InterfaceJoinedInfo.hpp>
Data Structures | |
class | Factory |
Public Types | |
enum | JoinedType { eJoinedTypeJoin = 0, eJoinedTypeWeak, eJoinedTypeMust } |
enum | RelationType { eRelationTypeParent = 0, eRelationTypeChild } |
typedef VisitorType < InterfaceJoinedInfo > | Visitor |
typedef InterfaceJoinedInfo | Type |
typedef boost::shared_ptr< Type > | Pointer |
typedef boost::weak_ptr< Type > | WeakPointer |
Public Member Functions | |
virtual void | accept (BaseVisitor &visitor) throw (Error) |
Receive 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 situation can arise when the passed Visitor object does not inherit from the appropriate visitor specialization. See Visitor documentation for more details. More... | |
const JoinedType | getJoinedType () const |
void | setJoinedType (const JoinedType &inSource) |
void | addPort (const PortSharedPtr &inPort) throw (Error) |
void | getPorts (std::list< PortSharedPtr > &outPorts) const |
void | setPorts (const std::list< PortSharedPtr > &inSource) |
void | addPortList (const PortListSharedPtr &inPortList) |
void | getPortLists (std::list< PortListSharedPtr > &outPortLists) const |
void | setPortLists (const std::list< PortListSharedPtr > &inSource) |
void | getChildren (std::vector< InterfaceJoinedInfoSharedPtr > &outJoinedInfos) const |
void | setChildren (const std::vector< InterfaceJoinedInfoSharedPtr > &inSource) |
bool | addChildJoinedInfo (const InterfaceJoinedInfoSharedPtr &inChildJoinInfo) |
template<typename _Action > | |
void | applyOnAllChildren (const _Action &action) throw (Error) |
const RelationType | getRelationType () const |
void | setRelationType (const RelationType &inSource) |
size_t | getSize () const |
virtual | ~InterfaceJoinedInfo () throw () |
void | setWeakThis (const WeakPointer &inWeakThis) |
Pointer | getSharedThis () const |
Protected Member Functions | |
InterfaceJoinedInfo () | |
Private Attributes | |
JoinedType | mJoinedType |
RelationType | mRelationType |
std::list< PortSharedPtr > | mJoinedPorts |
std::list< PortListSharedPtr > | mJoinedPortLists |
std::vector < InterfaceJoinedInfoSharedPtr > | mChildren |
Friends | |
class | FactoryType< InterfaceJoinedInfo > |
Represents the Interface joining information.
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 43 of file InterfaceJoinedInfo.hpp.
|
inherited |
Definition at line 36 of file SelfReferencing.hpp.
|
inherited |
Definition at line 35 of file SelfReferencing.hpp.
Convenience class to visit an interface joining information.
Definition at line 67 of file InterfaceJoinedInfo.hpp.
|
inherited |
Definition at line 37 of file SelfReferencing.hpp.
Interface joining type
Enumerator | |
---|---|
eJoinedTypeJoin | |
eJoinedTypeWeak | |
eJoinedTypeMust |
Definition at line 51 of file InterfaceJoinedInfo.hpp.
Type of the InterfaceJoinedInfo, Is it parent or child.
Enumerator | |
---|---|
eRelationTypeParent | |
eRelationTypeChild |
Definition at line 60 of file InterfaceJoinedInfo.hpp.
|
virtual |
Definition at line 249 of file InterfaceJoinedInfo.cpp.
|
protected |
Definition at line 246 of file InterfaceJoinedInfo.cpp.
|
virtual |
Receive 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 situation 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 167 of file InterfaceJoinedInfo.cpp.
bool torc::generic::InterfaceJoinedInfo::addChildJoinedInfo | ( | const InterfaceJoinedInfoSharedPtr & | inChildJoinInfo | ) |
Add a joined info to parent joined info
[in] | inChildJoinInfo | Child interface joined info to be added to parent |
Definition at line 153 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. |
Definition at line 67 of file InterfaceJoinedInfo.cpp.
void torc::generic::InterfaceJoinedInfo::addPortList | ( | const PortListSharedPtr & | inPortList | ) |
Add a portList to the list of portLists. Empty pointer is ignored.
[in] | inPortList | Pointer to portList to be added. |
Definition at line 85 of file InterfaceJoinedInfo.cpp.
|
inline |
Apply action on all children
[in] | action | Action to be applied |
Definition at line 268 of file InterfaceJoinedInfo.hpp.
|
inline |
Get the nested interface joined info.
[out] | outJoinedInfos | Vector of interface joined info to be appended to |
Definition at line 259 of file InterfaceJoinedInfo.hpp.
|
inline |
Get the interface joining type
Definition at line 232 of file InterfaceJoinedInfo.hpp.
|
inline |
Get the list of joined portLists of an interface
Get the list of joined portLists of an interface
Definition at line 250 of file InterfaceJoinedInfo.hpp.
|
inline |
Get the list of pointers to the joined ports of an interface
Definition at line 241 of file InterfaceJoinedInfo.hpp.
|
inline |
Get the relation type.
Definition at line 286 of file InterfaceJoinedInfo.hpp.
|
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 |
size_t torc::generic::InterfaceJoinedInfo::getSize | ( | void | ) | const |
Get the total number of bits of the composition
Definition at line 189 of file InterfaceJoinedInfo.cpp.
void torc::generic::InterfaceJoinedInfo::setChildren | ( | const std::vector< InterfaceJoinedInfoSharedPtr > & | inSource | ) |
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 |
Definition at line 135 of file InterfaceJoinedInfo.cpp.
void torc::generic::InterfaceJoinedInfo::setJoinedType | ( | const JoinedType & | value | ) |
Set the interface joining type
[in] | inSource | Interface joining type |
Definition at line 57 of file InterfaceJoinedInfo.cpp.
void torc::generic::InterfaceJoinedInfo::setPortLists | ( | const std::list< PortListSharedPtr > & | inSource | ) |
Set the list of joined portLists of an interface
[in] | inSource | List of portLists to be joined to an interface |
Definition at line 115 of file InterfaceJoinedInfo.cpp.
void torc::generic::InterfaceJoinedInfo::setPorts | ( | const std::list< PortSharedPtr > & | inSource | ) |
Set the list of joined ports of an interface
[in] | inSource | List of ports to be joined to an interface |
Definition at line 97 of file InterfaceJoinedInfo.cpp.
void torc::generic::InterfaceJoinedInfo::setRelationType | ( | const RelationType & | inSource | ) |
Set the relation type.
[in] | inSource | RelationType |
Definition at line 181 of file InterfaceJoinedInfo.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 |
Definition at line 44 of file InterfaceJoinedInfo.hpp.
|
private |
Definition at line 223 of file InterfaceJoinedInfo.hpp.
|
private |
Definition at line 222 of file InterfaceJoinedInfo.hpp.
|
private |
Definition at line 221 of file InterfaceJoinedInfo.hpp.
|
private |
Definition at line 219 of file InterfaceJoinedInfo.hpp.
|
private |
Definition at line 220 of file InterfaceJoinedInfo.hpp.