14 #include <type_traits>  
   27 typename std::enable_if<std::is_base_of<Block, T>::value, 
Pothos::Object>::type
 
   28 connObjToObject(T &value)
 
   34 typename std::enable_if<std::is_base_of<Block, T>::value, 
Pothos::Object>::type
 
   35 connObjToObject(T *value)
 
   41 typename std::enable_if<std::is_base_of<Block, T>::value, 
Pothos::Object>::type
 
   42 connObjToObject(std::shared_ptr<T> value)
 
   51 typename std::enable_if<std::is_base_of<Topology, T>::value, 
Pothos::Object>::type
 
   52 connObjToObject(T &value)
 
   59 typename std::enable_if<std::is_base_of<Topology, T>::value, 
Pothos::Object>::type
 
   60 connObjToObject(T *value)
 
   66 typename std::enable_if<std::is_base_of<Topology, T>::value, 
Pothos::Object>::type
 
   67 connObjToObject(std::shared_ptr<T> value)
 
   76 typename std::enable_if<std::is_same<Proxy, T>::value, 
Pothos::Object>::type
 
   77 connObjToObject(
const T &value)
 
   86 typename std::enable_if<std::is_integral<T>::value, std::string>::type
 
   87 portNameToStr(
const T &value)
 
   89     return std::to_string(value);
 
   93 typename std::enable_if<!std::is_integral<T>::value, std::string>::type
 
   94 portNameToStr(
const T &value)
 
   96     return std::string(value);
 
  106     typename SrcType, 
typename SrcPortType,
 
  107     typename DstType, 
typename DstPortType>
 
  109     SrcType &&src, 
const SrcPortType &srcPort,
 
  110     DstType &&dst, 
const DstPortType &dstPort)
 
  113         Detail::connObjToObject(src), Detail::portNameToStr(srcPort),
 
  114         Detail::connObjToObject(dst), Detail::portNameToStr(dstPort));
 
  118     typename SrcType, 
typename SrcPortType,
 
  119     typename DstType, 
typename DstPortType>
 
  121     SrcType &&src, 
const SrcPortType &srcPort,
 
  122     DstType &&dst, 
const DstPortType &dstPort)
 
  125         Detail::connObjToObject(src), Detail::portNameToStr(srcPort),
 
  126         Detail::connObjToObject(dst), Detail::portNameToStr(dstPort));
 
void _connect(const Object &src, const std::string &srcPort, const Object &dst, const std::string &dstPort)
Create a connection between a source port and a destination port. 
 
void connect(SrcType &&src, const SrcPortType &srcPort, DstType &&dst, const DstPortType &dstPort)
Definition: TopologyImpl.hpp:108
 
Definition: Object.hpp:55
 
void disconnect(SrcType &&src, const SrcPortType &srcPort, DstType &&dst, const DstPortType &dstPort)
Definition: TopologyImpl.hpp:120