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
31 #ifdef GENOM_SERIALIZATION
33 #endif //GENOM_SERIALIZATION
53 if(inNet->getSize() != getSize()) {
90 bool inSkipChildConnections)
const throw (
Error) {
94 if(!inSkipChildConnections) {
100 e.
saveContextData(
"Pointer to parent collection does not exist", parent);
109 parent->getConnectedNets(parentConnections,
true);
112 const std::vector<VectorBit<Net>::SizeType>& myIndex = getIndices();
113 for(; connNet != connNetEnd; ++connNet) {
116 cousin = (*connNet)->
get(myIndex);
120 cousin = bChildren[getAbsoluteIndex()];
127 outNets.push_back(cousin);
138 #ifdef GENOM_SERIALIZATION
139 template <
class Archive>
void VectorPortBitReference::serialize(Archive& ar,
unsigned int) {
140 ar & boost::serialization::base_object<PortReference>(*this);
141 ar & boost::serialization::base_object<VectorBit<PortReference> >(*this);
145 template void VectorPortBitReference::serialize<boost::archive::binary_iarchive>(
146 boost::archive::binary_iarchive& ar,
const unsigned int);
148 template void VectorPortBitReference::serialize<boost::archive::binary_oarchive>(
149 boost::archive::binary_oarchive& ar,
const unsigned int);
151 #endif //GENOM_SERIALIZATION
virtual Connection connect(const NetSharedPtr &inNet)=0
virtual void getChildren(List &outChildren) const
virtual CompositionType getCompositionType() const =0
Represents the usable instance of a port of a cell in another cell.
Interface for objects that can be composed within each other.
std::list< NetSharedPtr >::iterator Connection
void connectPortRefToNet(const PortReferenceSharedPtr &inPort)
void runVisitor(_Tp &inoutVisited, BaseVisitor &inoutVisitor)
virtual void disconnect()
The Error object thrown by different methods of EdifOM.
virtual void getConnectedNets(std::vector< NetSharedPtr > &outNets, bool inSkipChildConnections=false) const
boost::shared_ptr< Net > NetSharedPtr
virtual ~VectorPortBitReference()
A base class for Visitor.
void saveContextData(const std::string &inName, const boost::any &inSource)
virtual Connection connect(const NetSharedPtr &inNet)
void disconnectPortRefFromNet(const PortReferenceSharedPtr &inPort)
Represents a reference to a bit of a port.
virtual const Pointer get(const std::vector< SizeType > &inIndices) const =0
virtual void accept(BaseVisitor &inoutVisitor)
virtual void getConnectedNets(std::vector< NetSharedPtr > &outNets, bool inSkipChildConnections=false) const
Represents a single element of a vector composition.
void setCurrentLocation(const std::string &inFunction, const std::string &inFile, uint32_t inLine)