16 #ifndef TORC_GENERIC_INSTANCEARRAY_HPP
17 #define TORC_GENERIC_INSTANCEARRAY_HPP
23 #ifdef GENOM_SERIALIZATION
24 #include <boost/serialization/access.hpp>
25 #endif //GENOM_SERIALIZATION
36 namespace torc {
namespace generic {
class BaseVisitor; } }
48 InstanceArrayMember::Factory, false> {
49 #ifdef GENOM_SERIALIZATION
50 friend class boost::serialization::access;
51 #endif //GENOM_SERIALIZATION
157 template <typename _Action> inline
void applyOnAllBits(const _Action& action) throw (Error);
168 #ifdef GENOM_SERIALIZATION
169 template <
class Archive>
void serialize(Archive& ar,
unsigned int);
170 #endif //GENOM_SERIALIZATION
181 std::vector<InstanceSharedPtr> children;
182 getChildren(children);
183 std::for_each(children.begin(), children.end(), action);
193 #endif // TORC_GENERIC_INSTANCEARRAY_HPP
An acyclic inoutVisitor implementation.
virtual void setPortReferences(const std::vector< PortReferenceSharedPtr > &inSource)
Represents an instantiation of a cell view in the view of another cell.
virtual InstanceArraySharedPtr newInstanceArrayPtr(const std::string &inName, const ViewSharedPtr &inViewPtr, const ViewSharedPtr &inMaster, const size_t &inSize, const ChildFactorySharedPtr &inFactory=BaseVectorType::ChildFactorySharedPtr(new BaseVectorType::ChildFactory()), const std::string &inOriginalName=std::string())
Represents a member of an instance array.
VisitorType< InstanceArray > Visitor
boost::shared_ptr< InstanceArray > InstanceArraySharedPtr
The Error object thrown by different methods of EdifOM.
virtual void addPortReference(const PortReferenceSharedPtr &inPortRef)
Vector< Instance, InstanceArrayMember, InstanceArrayMember::Factory, false > BaseVectorType
A base class for Visitor.
virtual void accept(BaseVisitor &inoutVisitor)
boost::shared_ptr< PortReference > PortReferenceSharedPtr
Represents an array of instances.
virtual void onChildCreate(const boost::shared_ptr< BaseVectorType::ChildType > &inCreatedChild) const
void applyOnAllBits(const _Action &action)
virtual void getPortReferences(std::vector< PortReferenceSharedPtr > &) const
virtual void removePortReference(const std::string &inName)
boost::shared_ptr< InstanceArrayMember::Factory > ChildFactorySharedPtr
boost::shared_ptr< View > ViewSharedPtr
virtual PortReferenceSharedPtr findPortReference(const std::string &inPortRef)
virtual void setParent(const ViewSharedPtr &inParent)
A placeholder for a factory method.
virtual void bindToMasterView(const ViewSharedPtr &inMaster, bool inMapPortReferences=true)
void setCurrentLocation(const std::string &inFunction, const std::string &inFile, uint32_t inLine)