20 #ifdef GENOM_SERIALIZATION
21 #include <boost/archive/binary_iarchive.hpp>
22 #include <boost/archive/binary_oarchive.hpp>
23 #include <boost/serialization/base_object.hpp>
24 #include <boost/serialization/export.hpp>
25 #endif //GENOM_SERIALIZATION
32 #ifdef GENOM_SERIALIZATION
34 #endif //GENOM_SERIALIZATION
53 if(inNet->getSize() != getSize()) {
89 bool inSkipChildConnections)
const throw (
Error) {
95 if(!inSkipChildConnections) {
100 e.
saveContextData(
"Pointer to parent collection does not exist", parent);
108 parent->getConnectedNets(parentConnections,
true);
111 const std::vector<VectorBit<Net>::SizeType>& myIndex = getIndices();
112 for(; connNet != connNetEnd; ++connNet) {
115 cousin = (*connNet)->
get(myIndex);
122 cousin = bChildren[getAbsoluteIndex()];
130 outNets.push_back(cousin);
142 #ifdef GENOM_SERIALIZATION
143 template <
class Archive>
void
144 VectorPortBit::serialize(Archive& ar,
unsigned int) {
145 ar & boost::serialization::base_object<Port>(*this);
146 ar & boost::serialization::base_object<VectorBit<Port> >(*this);
149 #endif //GENOM_SERIALIZATION
virtual Connection connect(const NetSharedPtr &inNet)=0
void log(const char *fmt,...)
virtual void getChildren(List &outChildren) const
virtual CompositionType getCompositionType() const =0
virtual void getConnectedNets(std::vector< NetSharedPtr > &outNets, bool inSkipChildConnections=false) const
Represents a bit of a port.
void disconnectPortFromNet(const PortSharedPtr &inPort)
Interface for objects that can be composed within each other.
std::list< NetSharedPtr >::iterator Connection
void runVisitor(_Tp &inoutVisited, BaseVisitor &inoutVisitor)
virtual void disconnect()
void connectPortToNet(const PortSharedPtr &inPort)
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
A base class for Visitor.
void saveContextData(const std::string &inName, const boost::any &inSource)
virtual void accept(BaseVisitor &inoutVisitor)
Interface for an EDIF port object.
virtual const Pointer get(const std::vector< SizeType > &inIndices) const =0
virtual Connection connect(const NetSharedPtr &inNet)
Represents a single element of a vector composition.
void setCurrentLocation(const std::string &inFunction, const std::string &inFile, uint32_t inLine)