GraphDom
Loading...
Searching...
No Matches
custom_edge_endpoint_less.h
1/*
2 * Copyright 2026 Michele Comparini
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef GRAPHDOM_CUSTOM_EDGE_ENDPOINT_LESS_IMPL_H
8#define GRAPHDOM_CUSTOM_EDGE_ENDPOINT_LESS_IMPL_H
9
10#include "../../graph.h"
11#include "../vertex_container.h"
12#include "../edge_endpoint.h"
13#include "../custom_edge_endpoint_less.h"
14
15template <typename VertexType>
16template <typename VertexContainerPointerType>
17bool constexpr graphdom::graph<VertexType>::custom_edge_endpoint_less<VertexContainerPointerType>::operator()(
18 const edge_endpoint<VertexContainerPointerType>* const left,
19 const edge_endpoint<VertexContainerPointerType>* const right) const {
20 return less_functor( left->vertex_container_ptr , right->vertex_container_ptr );
21}
22
23template <typename VertexType>
24template <typename VertexContainerPointerType>
25bool constexpr graphdom::graph<VertexType>::custom_edge_endpoint_less<VertexContainerPointerType>::operator()(
26 const edge_endpoint<VertexContainerPointerType>* const left,
27 const vertex_container* const right) const {
28 return less_functor( left->vertex_container_ptr , right );
29}
30
31template <typename VertexType>
32template <typename VertexContainerPointerType>
33bool constexpr graphdom::graph<VertexType>::custom_edge_endpoint_less<VertexContainerPointerType>::operator()(
34 const vertex_container* const left,
35 const edge_endpoint<VertexContainerPointerType>* const right) const {
36 return less_functor( left , right->vertex_container_ptr );
37}
38
39#endif //GRAPHDOM_CUSTOM_EDGE_ENDPOINT_LESS_IMPL_H