|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
A filter that an algorithm object keeps: one given as an lvalue is used where it is, so that the caller sees what the algorithm does to it; one given as an rvalue is moved into the keeper, so that it lives as long as the object. More...
#include <tpl_graph.H>
Public Member Functions | |
| Kept_Filter (F &f) noexcept | |
Use f where it is. | |
| Kept_Filter (F &&f) noexcept(std::is_nothrow_move_constructible_v< F >) | |
Keep f, moved. | |
| Kept_Filter (const Kept_Filter &k) noexcept(std::is_nothrow_copy_constructible_v< F >) | |
| Copy a moved filter, or use the same lvalue. | |
| Kept_Filter (Kept_Filter &&k) noexcept(std::is_nothrow_move_constructible_v< F >) | |
| Move a moved filter, or use the same lvalue. | |
| Kept_Filter & | operator= (const Kept_Filter &)=delete |
| F & | get () const noexcept |
| The filter. | |
| operator F& () const noexcept | |
| The filter. | |
Private Attributes | |
| std::optional< F > | own |
| F * | filter |
A filter that an algorithm object keeps: one given as an lvalue is used where it is, so that the caller sees what the algorithm does to it; one given as an rvalue is moved into the keeper, so that it lives as long as the object.
A keeper converts to a reference to its filter. The copy of a keeper of a moved filter has a copy of it; that of a keeper of an lvalue uses the same lvalue.
| F | Type of the filter. |
Definition at line 1248 of file tpl_graph.H.
|
inlinenoexcept |
Use f where it is.
Definition at line 1255 of file tpl_graph.H.
|
inlinenoexcept |
Keep f, moved.
Definition at line 1258 of file tpl_graph.H.
|
inlinenoexcept |
Copy a moved filter, or use the same lvalue.
Definition at line 1262 of file tpl_graph.H.
|
inlinenoexcept |
Move a moved filter, or use the same lvalue.
Definition at line 1267 of file tpl_graph.H.
|
inlinenoexcept |
The filter.
Definition at line 1274 of file tpl_graph.H.
References Aleph::Kept_Filter< F >::filter.
Referenced by TYPED_TEST().
|
inlinenoexcept |
The filter.
Definition at line 1277 of file tpl_graph.H.
|
delete |
|
private |
Definition at line 1251 of file tpl_graph.H.
Referenced by Aleph::Kept_Filter< F >::get(), and Aleph::Kept_Filter< Dft_Show_Arc< GT > >::operator Dft_Show_Arc< GT > &().
|
private |
Definition at line 1250 of file tpl_graph.H.