00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef TORC_GENERIC_OM_VECTORNETBIT_HPP
00017 #define TORC_GENERIC_OM_VECTORNETBIT_HPP
00018
00019 #include "torc/generic/om/PointerTypes.hpp"
00020 #include "torc/generic/om/DumpRestoreConfig.hpp"
00021
00022
00023 #ifdef GENOM_SERIALIZATION
00024 #include <boost/serialization/access.hpp>
00025 #endif //GENOM_SERIALIZATION
00026
00027
00028 #include "torc/generic/om/VectorBit.hpp"
00029 #include "torc/generic/om/Net.hpp"
00030 #include "torc/generic/om/FactoryType.hpp"
00031 #include "torc/generic/om/VisitorType.hpp"
00032 #include "torc/generic/util/Error.hpp"
00033
00034 namespace torc { namespace generic { class BaseVisitor; } }
00035
00036 namespace torc {
00037
00038 namespace generic {
00039
00040
00041
00042
00043
00044
00045 class VectorNetBit
00046 : public Net,
00047 public VectorBit<Net> {
00048 #ifdef GENOM_SERIALIZATION
00049 friend class boost::serialization::access;
00050 #endif //GENOM_SERIALIZATION
00051
00052 public:
00053 typedef FactoryType<VectorNetBit> Factory;
00054
00055 typedef VisitorType<VectorNetBit> Visitor;
00056
00057 virtual void
00058 accept(BaseVisitor & inoutVisitor) throw(Error);
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088 virtual Connection
00089 connect(const NetSharedPtr &inNet) throw(Error);
00090
00091 using Connectable::disconnect;
00092
00093 virtual void
00094 disconnect(const Connection &inConnection) throw(Error);
00095
00096 virtual void
00097 getConnectedNets(
00098 std::vector< NetSharedPtr > &outNets,
00099 bool inSkipChildConnections = false ) const throw(Error);
00100
00101 virtual void
00102 getConnectedPorts(
00103 std::vector< PortSharedPtr > &outPorts,
00104 bool inSkipChildConnections = false ) const throw();
00105
00106 virtual void
00107 getConnectedPortRefs(
00108 std::vector< PortReferenceSharedPtr > &outPortRefs,
00109 bool inSkipChildConnections = false ) const throw();
00110
00111 VectorNetBit();
00112
00113 virtual
00114 ~VectorNetBit() throw();
00115
00116 private:
00117 #ifdef GENOM_SERIALIZATION
00118 template<class Archive> void
00119 serialize( Archive &ar, unsigned int );
00120 #endif //GENOM_SERIALIZATION
00121
00122 };
00123
00124 }
00125
00126 }
00127 #endif // TORC_GENERIC_OM_VECTORNETBIT_HPP