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::hashers::edge_as_vertex< Vertex, VertexHash > 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
 
constexpr bool operator() (const const_edge &a) const
 

Public Attributes

VertexHash vertex_hasher = {}
 

Detailed Description

template<typename Vertex, typename VertexHash>
struct graphle::hashers::edge_as_vertex< Vertex, VertexHash >

Hasher that hashes an edge using a vertex comparator.

Definition at line 71 of file vertex_compare.hpp.

Member Typedef Documentation

◆ const_edge

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

Definition at line 75 of file vertex_compare.hpp.

◆ edge

template<typename Vertex , typename VertexHash >
using graphle::hashers::edge_as_vertex< Vertex, VertexHash >::edge = std::pair<Vertex*, Vertex*>

Definition at line 74 of file vertex_compare.hpp.

Member Function Documentation

◆ operator()() [1/2]

template<typename Vertex , typename VertexHash >
constexpr bool graphle::hashers::edge_as_vertex< Vertex, VertexHash >::operator() ( const const_edge &  a) const
inlineconstexpr

Definition at line 81 of file vertex_compare.hpp.

◆ operator()() [2/2]

template<typename Vertex , typename VertexHash >
constexpr bool graphle::hashers::edge_as_vertex< Vertex, VertexHash >::operator() ( const edge &  a) const
inlineconstexpr

Definition at line 77 of file vertex_compare.hpp.

Member Data Documentation

◆ vertex_hasher

template<typename Vertex , typename VertexHash >
VertexHash graphle::hashers::edge_as_vertex< Vertex, VertexHash >::vertex_hasher = {}

Definition at line 72 of file vertex_compare.hpp.


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