GraphDom
Toggle main menu visibility
Loading...
Searching...
No Matches
vertex_const_handle.h
1
/*
2
* Copyright 2026 Michele Comparini
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef GRAPHDOM_VERTEX_CONST_HANDLE_H
8
#define GRAPHDOM_VERTEX_CONST_HANDLE_H
9
10
#include "../graph.h"
11
#include "vertex_container.h"
12
#include "vertex_base_handle.h"
13
#include "vertex_handle.h"
14
#include "../multiset_graph.h"
15
#include "multiset_graph_vertex_handle.h"
16
17
namespace
graphdom
{
34
template
<
typename
VertexType>
35
class
graph
<VertexType>::vertex_const_handle final :
public
graph
<VertexType>::vertex_base_handle< const graph<VertexType>::vertex_container* > {
36
public
:
37
vertex_const_handle() =
delete
;
46
vertex_const_handle
(
const
vertex_const_handle& other);
55
vertex_const_handle
(
const
graph<VertexType>::vertex_handle
& other);
64
vertex_const_handle(
const
typename
multiset_graph<VertexType>::vertex_handle
& other);
65
66
~vertex_const_handle() =
default
;
67
68
vertex_const_handle& operator=(
const
vertex_const_handle& other);
69
70
[[nodiscard]]
graph<VertexType>::const_adj_list
adj_list()
const
;
71
[[nodiscard]]
graph<VertexType>::const_adj_list
adj_list(
edge_type
edge_type
)
const
;
72
[[nodiscard]]
graph<VertexType>::const_adj_list
const_adj_list()
const
;
73
[[nodiscard]]
graph<VertexType>::const_adj_list
const_adj_list(
edge_type
edge_type
)
const
;
74
75
friend
typename
graph<VertexType>::adj_list_const_iterator
;
76
friend
graph<VertexType>
;
77
private
:
78
vertex_const_handle(
79
const
graph<VertexType>
* vertex_container_owner_ptr,
80
graph<VertexType>::graph_edges_type
vertex_container_owner_et,
81
const
graph<VertexType>::vertex_container* vertex_container_ptr
82
);
83
};
84
}
85
86
#include "impl/vertex_const_handle.h"
87
88
#endif
//GRAPHDOM_VERTEX_CONST_HANDLE_H
graphdom::graph::const_adj_list
Every valid instance of this class is a "container-like and non-owning" handle to a subset of the set...
Definition
const_adj_list.h:35
graphdom::graph::vertex_const_handle::vertex_const_handle
vertex_const_handle(const vertex_const_handle &other)
graphdom::graph::vertex_const_handle::vertex_const_handle
vertex_const_handle(const graph< VertexType >::vertex_handle &other)
graphdom::graph::vertex_handle
Every valid instance of this class can be used to identify a specific vertex of a graph and to access...
Definition
vertex_handle.h:32
graphdom::graph
Every graph created using this library is an instance of a concrete class publicly derived,...
Definition
graph.h:43
graphdom::multiset_graph::vertex_handle
Every valid instance of this class can be used to identify a specific vertex of a multiset graph and ...
Definition
multiset_graph_vertex_handle.h:31
graphdom
Definition
adj_list.h:16
graphdom::edge_type
edge_type
The enumerated type whose values represent the two types of edges of a graph.
Definition
graph.h:21
include
graphdom
detail
vertex_const_handle.h
Generated by
1.17.0