Graphle 1.0.0
A C++20 header-only graph library
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
graphle::comparators::edge_as_vertex< Vertex, VertexCmp > Struct Template Reference

#include <vertex_compare.hpp>

Public Types

using edge = std::pair< Vertex *, Vertex * >
 
using const_edge = std::pair< const Vertex *, const Vertex * >
 

Public Member Functions

constexpr bool operator() (const edge &a, const edge &b) const
 
constexpr bool operator() (const const_edge &a, const const_edge &b) const
 

Public Attributes

VertexCmp vertex_comparator = {}
 

Detailed Description

template<typename Vertex, typename VertexCmp>
struct graphle::comparators::edge_as_vertex< Vertex, VertexCmp >

Equality comparator that compares two edges using a vertex comparator.

Definition at line 30 of file vertex_compare.hpp.

Member Typedef Documentation

◆ const_edge

template<typename Vertex , typename VertexCmp >
using graphle::comparators::edge_as_vertex< Vertex, VertexCmp >::const_edge = std::pair<const Vertex*, const Vertex*>

Definition at line 34 of file vertex_compare.hpp.

◆ edge

template<typename Vertex , typename VertexCmp >
using graphle::comparators::edge_as_vertex< Vertex, VertexCmp >::edge = std::pair<Vertex*, Vertex*>

Definition at line 33 of file vertex_compare.hpp.

Member Function Documentation

◆ operator()() [1/2]

template<typename Vertex , typename VertexCmp >
constexpr bool graphle::comparators::edge_as_vertex< Vertex, VertexCmp >::operator() ( const const_edge &  a,
const const_edge &  b 
) const
inlineconstexpr

Definition at line 40 of file vertex_compare.hpp.

◆ operator()() [2/2]

template<typename Vertex , typename VertexCmp >
constexpr bool graphle::comparators::edge_as_vertex< Vertex, VertexCmp >::operator() ( const edge &  a,
const edge &  b 
) const
inlineconstexpr

Definition at line 36 of file vertex_compare.hpp.

Member Data Documentation

◆ vertex_comparator

template<typename Vertex , typename VertexCmp >
VertexCmp graphle::comparators::edge_as_vertex< Vertex, VertexCmp >::vertex_comparator = {}

Definition at line 31 of file vertex_compare.hpp.


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