21 #ifdef GENOM_SERIALIZATION
22 #include <boost/archive/binary_iarchive.hpp>
23 #include <boost/archive/binary_oarchive.hpp>
24 #include <boost/serialization/base_object.hpp>
25 #include <boost/serialization/export.hpp>
26 #endif //GENOM_SERIALIZATION
30 #ifdef GENOM_SERIALIZATION
32 #endif //GENOM_SERIALIZATION
51 newScalarNet->setName(inName);
52 newScalarNet->setOriginalName(inOriginalName);
53 if(inParentCollection) {
54 inParentCollection->addChild(newScalarNet);
56 inViewPtr->addNet(newScalarNet);
80 if(inNet->getSize() != getSize()) {
97 #ifdef GENOM_SERIALIZATION
98 template <
class Archive>
void ScalarNet::serialize(Archive& ar,
unsigned int) {
99 ar & boost::serialization::base_object< Net >(*this);
100 ar & boost::serialization::base_object< Scalar<Net> >(*this);
104 template void ScalarNet::serialize<boost::archive::binary_iarchive>(
105 boost::archive::binary_iarchive& ar,
const unsigned int);
107 template void ScalarNet::serialize<boost::archive::binary_oarchive>(
108 boost::archive::binary_oarchive& ar,
const unsigned int);
110 #endif //GENOM_SERIALIZATION
virtual Connection connect(const NetSharedPtr &inNet)=0
A single object with no child objects.
virtual Connection connect(const NetSharedPtr &inNet)
boost::shared_ptr< ScalarNet > ScalarNetSharedPtr
std::list< NetSharedPtr >::iterator Connection
void runVisitor(_Tp &inoutVisited, BaseVisitor &inoutVisitor)
virtual void disconnect()
The Error object thrown by different methods of EdifOM.
boost::shared_ptr< Net > NetSharedPtr
A base class for Visitor.
virtual ScalarNetSharedPtr newScalarNetPtr(const std::string &inName, const ViewSharedPtr &inViewPtr, const NetBundleSharedPtr &inParentCollection=NetBundleSharedPtr(), const std::string &inOriginalName=std::string())
Represents a standalone net.
virtual void accept(BaseVisitor &inoutVisitor)
void saveContextData(const std::string &inName, const boost::any &inSource)
virtual void disconnect()
boost::shared_ptr< View > ViewSharedPtr
boost::shared_ptr< NetBundle > NetBundleSharedPtr
void setCurrentLocation(const std::string &inFunction, const std::string &inFile, uint32_t inLine)