Public Member Functions | Public Attributes | List of all members
WireCell::DfpGraph::VertexProperty Struct Reference

#include <DfpGraph.h>

Public Member Functions

 VertexProperty (const std::string &t, const std::string &n)
 
 VertexProperty (const std::string &tn)
 
 VertexProperty ()
 
bool operator== (const VertexProperty &rhs) const
 
bool operator< (const VertexProperty &rhs) const
 

Public Attributes

std::string type
 
std::string name
 

Detailed Description

Definition at line 15 of file DfpGraph.h.

Constructor & Destructor Documentation

WireCell::DfpGraph::VertexProperty::VertexProperty ( const std::string t,
const std::string n 
)
inline

Definition at line 19 of file DfpGraph.h.

WireCell::DfpGraph::VertexProperty::VertexProperty ( const std::string tn)
inline

Definition at line 20 of file DfpGraph.h.

20  {
21  std::tie(type,name) = WireCell::String::parse_pair(tn);
22  }
std::pair< std::string, std::string > parse_pair(const std::string &in, const std::string &delim=":")
Definition: String.cxx:15
WireCell::DfpGraph::VertexProperty::VertexProperty ( )
inline

Definition at line 23 of file DfpGraph.h.

23 : type(""), name("") {}

Member Function Documentation

bool WireCell::DfpGraph::VertexProperty::operator< ( const VertexProperty rhs) const
inline

Definition at line 28 of file DfpGraph.h.

28  {
29  if (type == rhs.type) {
30  return name < rhs.name;
31  }
32  return type < rhs.type;
33  }
bool WireCell::DfpGraph::VertexProperty::operator== ( const VertexProperty rhs) const
inline

Definition at line 25 of file DfpGraph.h.

25  {
26  return type == rhs.type && name == rhs.name;
27  }

Member Data Documentation

std::string WireCell::DfpGraph::VertexProperty::name

Definition at line 17 of file DfpGraph.h.

std::string WireCell::DfpGraph::VertexProperty::type

Definition at line 16 of file DfpGraph.h.


The documentation for this struct was generated from the following file: