alglib::graph::edge_t< vertex_t, attr_t > Struct Template Reference

#include <edge.h>

Public Member Functions

 edge_t ()=default
 
 edge_t (const vertex_t &u, const vertex_t &v, const attr_t &attr)
 
bool operator== (const edge_t< vertex_t, edge_t > &other) const
 
bool operator!= (const edge_t< vertex_t, edge_t > &other) const
 
bool operator> (const edge_t< vertex_t, edge_t > &other) const
 
bool operator< (const edge_t< vertex_t, edge_t > &other) const
 
bool operator>= (const edge_t< vertex_t, edge_t > &other) const
 
bool operator<= (const edge_t< vertex_t, edge_t > &other) const
 

Public Attributes

vertex_t from
 
vertex_t to
 
attr_t attribute
 

Constructor & Destructor Documentation

template<typename vertex_t, typename attr_t = void>
alglib::graph::edge_t< vertex_t, attr_t >::edge_t ( )
default
template<typename vertex_t, typename attr_t = void>
alglib::graph::edge_t< vertex_t, attr_t >::edge_t ( const vertex_t &  u,
const vertex_t &  v,
const attr_t &  attr 
)
inline
27  {
28  from = u;
29  to = v;
30  attribute = attr;
31  }
vertex_t to
Definition: edge.h:22
vertex_t from
Definition: edge.h:21
attr_t attribute
Definition: edge.h:23

Member Function Documentation

template<typename vertex_t, typename attr_t = void>
bool alglib::graph::edge_t< vertex_t, attr_t >::operator!= ( const edge_t< vertex_t, edge_t< vertex_t, attr_t > > &  other) const
inline
37  { return attribute != other.attribute; }
attr_t attribute
Definition: edge.h:23
template<typename vertex_t, typename attr_t = void>
bool alglib::graph::edge_t< vertex_t, attr_t >::operator< ( const edge_t< vertex_t, edge_t< vertex_t, attr_t > > &  other) const
inline
43  { return attribute < other.attribute; }
attr_t attribute
Definition: edge.h:23
template<typename vertex_t, typename attr_t = void>
bool alglib::graph::edge_t< vertex_t, attr_t >::operator<= ( const edge_t< vertex_t, edge_t< vertex_t, attr_t > > &  other) const
inline
49  { return attribute <= other.attribute; }
attr_t attribute
Definition: edge.h:23
template<typename vertex_t, typename attr_t = void>
bool alglib::graph::edge_t< vertex_t, attr_t >::operator== ( const edge_t< vertex_t, edge_t< vertex_t, attr_t > > &  other) const
inline
34  { return attribute == other.attribute; }
attr_t attribute
Definition: edge.h:23
template<typename vertex_t, typename attr_t = void>
bool alglib::graph::edge_t< vertex_t, attr_t >::operator> ( const edge_t< vertex_t, edge_t< vertex_t, attr_t > > &  other) const
inline
40  { return attribute > other.attribute; }
attr_t attribute
Definition: edge.h:23
template<typename vertex_t, typename attr_t = void>
bool alglib::graph::edge_t< vertex_t, attr_t >::operator>= ( const edge_t< vertex_t, edge_t< vertex_t, attr_t > > &  other) const
inline
46  { return attribute >= other.attribute; }
attr_t attribute
Definition: edge.h:23

Member Data Documentation

template<typename vertex_t, typename attr_t = void>
attr_t alglib::graph::edge_t< vertex_t, attr_t >::attribute
template<typename vertex_t, typename attr_t = void>
vertex_t alglib::graph::edge_t< vertex_t, attr_t >::from
template<typename vertex_t, typename attr_t = void>
vertex_t alglib::graph::edge_t< vertex_t, attr_t >::to

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