16 #ifndef TORC_GENERIC_INSTANCE_HPP
17 #define TORC_GENERIC_INSTANCE_HPP
22 #ifdef GENOM_SERIALIZATION
23 #include <boost/serialization/access.hpp>
24 #include <boost/serialization/split_member.hpp>
25 #include <boost/serialization/string.hpp>
26 #include <boost/serialization/map.hpp>
27 #endif //GENOM_SERIALIZATION
41 namespace torc {
namespace generic {
class ObjectFactory; } }
42 namespace torc {
namespace generic {
class PortReference; } }
43 namespace torc {
namespace generic {
class RestoredInstanceUpdater; } }
59 #ifdef GENOM_SERIALIZATION
60 friend class boost::serialization::access;
61 friend class RestoredInstanceUpdater;
62 #endif //GENOM_SERIALIZATION
68 std::map<std::string, ParameterSharedPtr>
mParams;
70 template <
class Archive>
void serialize(Archive& ar,
unsigned int) {
259 #ifdef GENOM_SERIALIZATION
260 template <
class Archive>
void load(Archive& ar,
unsigned int);
262 template <
class Archive>
void save(Archive& ar,
unsigned int)
const;
264 BOOST_SERIALIZATION_SPLIT_MEMBER()
266 void restoreMaster() throw(Error);
268 mutable MasterData *mMasterData;
269 #endif //GENOM_SERIALIZATION
295 mPortReferences.applyOnAll(action);
318 #endif // TORC_GENERIC_INSTANCE_HPP
ParameterContext mMyContext
Represents an instantiation of a cell view in the view of another cell.
An object that has a parent.
virtual void getPortReferences(std::vector< PortReferenceSharedPtr > &) const
void applyOnAllPortReferences(const _Action &action)
Represents objects that have properties.
Interface for objects that can be composed within each other.
virtual void bindToMasterView(const ViewSharedPtr &inMaster, bool inMapPortReferences=true)
virtual ParameterContext getParameterContext() const
void serialize(Archive &ar, unsigned int)
Represents class that can hold userData.
SymTab< std::string, PortReferenceSharedPtr > mPortReferences
boost::shared_ptr< NetReference > NetReferenceSharedPtr
void setMaster(const ViewSharedPtr &inMaster)
The Error object thrown by different methods of EdifOM.
virtual void removePortReference(const std::string &inName)
boost::shared_ptr< PortReference > PortReferenceSharedPtr
virtual ParameterMapSharedPtr getParameters() const
void setDesignator(const std::string &inSource)
ViewSharedPtr getMaster() const
const std::string getDesignator() const
void setTiming(const TimingSharedPtr &inSource)
const TimingSharedPtr getTiming() const
virtual NetReferenceSharedPtr findNetReference(const std::string &inNetRef)
boost::shared_ptr< View > ViewSharedPtr
An object that has a name.
virtual PortReferenceSharedPtr findPortReference(const std::string &inPortRef)
std::map< std::string, ParameterSharedPtr > mParams
Represents objects that can be renamed.
virtual void setPortReferences(const std::vector< PortReferenceSharedPtr > &inSource)
SymTab< std::string, NetReferenceSharedPtr > mNetReferences
boost::shared_ptr< Timing > TimingSharedPtr
virtual void addPortReference(const PortReferenceSharedPtr &inPortRef)
boost::shared_ptr< ParameterMap > ParameterMapSharedPtr
An object that receives an inoutVisitor.
void setCurrentLocation(const std::string &inFunction, const std::string &inFile, uint32_t inLine)