16 #ifndef TORC_GENERIC_PERMUTABLE_HPP
17 #define TORC_GENERIC_PERMUTABLE_HPP
28 namespace torc {
namespace generic {
class Port; } }
29 namespace torc {
namespace generic {
class BaseVisitor; } }
85 inline void getPorts(std::vector<PortSharedPtr>& outPorts)
const;
94 void setPorts(
const std::vector<PortSharedPtr>& inSource)
throw (
Error);
110 inline void getChildren(std::vector<PermutableSharedPtr>& outPermutables)
const;
124 void setChildren(
const std::vector<PermutableSharedPtr> & inSource)
throw (
Error);
195 outValues.insert(outValues.end(), mPorts.begin(), mPorts.end());
215 std::vector<PermutableSharedPtr>::iterator it =
mChildren.begin();
245 #endif // TORC_GENERIC_PERMUTABLE_HPP
An acyclic inoutVisitor implementation.
void applyOnAllChildren(const _Action &action)
virtual PermutableSharedPtr newPermutablePtr(const std::vector< PortSharedPtr > &inPorts, const ViewSharedPtr &inViewPtr, const PermutableSharedPtr &inParentPermutable=PermutableSharedPtr())
void addPort(const PortSharedPtr &inPort)
boost::shared_ptr< Permutable > PermutableSharedPtr
void setPorts(const std::vector< PortSharedPtr > &inSource)
Permutable is used to describe a relationship in which ports are interchangeable. ...
void setPermutableType(const PermutableType &inSource)
VisitorType< Permutable > Visitor
std::vector< PermutableSharedPtr > mChildren
The Error object thrown by different methods of EdifOM.
A base class for Visitor.
virtual void accept(BaseVisitor &visitor)
const bool getIsNonPermutable() const
const PermutableType getPermutableType() const
PermutableType mPermutableType
std::vector< PortSharedPtr > mPorts
void setIsNonPermutable(const bool &value)
void getChildren(std::vector< PermutableSharedPtr > &outPermutables) const
void getPorts(std::vector< PortSharedPtr > &outPorts) const
void setChildren(const std::vector< PermutableSharedPtr > &inSource)
boost::shared_ptr< View > ViewSharedPtr
boost::shared_ptr< Port > PortSharedPtr
bool addChildPermutable(const PermutableSharedPtr &inPermutable)
A placeholder for a factory method.
An object that receives an inoutVisitor.
void setCurrentLocation(const std::string &inFunction, const std::string &inFile, uint32_t inLine)