1 #ifndef WIRECELL_PGRAPH_NODE 2 #define WIRECELL_PGRAPH_NODE 43 for (
size_t ind=0; ind<
m_ports[
type].size(); ++ind) {
47 return port(type, ind);
Port & port(Port::Type type, const std::string &name)
boost::error_info< struct tag_errmsg, std::string > errmsg
virtual std::string ident()=0
std::vector< Port > PortList
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Port & port(Port::Type type, size_t ind=0)
virtual bool operator()()=0
Port & iport(size_t ind=0)
Thrown when a wrong value has been encountered.
PortList m_ports[Port::ntypes]
std::string type(const T &t)
Port & oport(size_t ind=0)
PortList & output_ports()