DGtal
2.2.0
Toggle main menu visibility
Loading...
Searching...
No Matches
CVertexPredicateArchetype.h
1
16
17
#pragma once
18
30
31
#if defined(CVertexPredicateArchetype_RECURSES)
32
#error Recursive header files inclusion detected in CVertexPredicateArchetype.h
33
#else
// defined(CVertexPredicateArchetype_RECURSES)
35
#define CVertexPredicateArchetype_RECURSES
36
37
#if !defined CVertexPredicateArchetype_h
39
#define CVertexPredicateArchetype_h
40
42
// Inclusions
43
#include <iostream>
44
#include "DGtal/base/Common.h"
46
47
namespace
DGtal
{
48
namespace
concepts
{
49
51
// class CVertexPredicateArchetype
58
template
<
typename
TVertex>
59
struct
CVertexPredicateArchetype
60
{
61
typedef
CVertexPredicateArchetype<TVertex>
Self
;
62
typedef
TVertex
Vertex
;
63
bool
operator()
(
const
Vertex
&
/* p */
)
const
64
{
return
true
; }
65
Self
&
operator=
(
const
Self
&
/* other */
)
66
{
67
return
*
this
;
68
}
69
};
// end of concept CVertexPredicateArchetype
70
71
}
// namespace concepts
72
}
// namespace DGtal
73
74
// //
76
77
#endif
// !defined CVertexPredicateArchetype_h
78
79
#undef CVertexPredicateArchetype_RECURSES
80
#endif
// else defined(CVertexPredicateArchetype_RECURSES)
DGtal::concepts
Aim: Gathers several functions useful for concept checks.
Definition
CPositiveIrreducibleFraction.h:54
DGtal
DGtal is the top-level namespace which contains all DGtal functions and types.
Definition
ClosedIntegerHalfPlane.h:49
DGtal::concepts::CVertexPredicateArchetype
Aim: Defines a an archetype for concept CVertexPredicate.
Definition
CVertexPredicateArchetype.h:60
DGtal::concepts::CVertexPredicateArchetype< Vertex >::Self
CVertexPredicateArchetype< Vertex > Self
Definition
CVertexPredicateArchetype.h:61
DGtal::concepts::CVertexPredicateArchetype< Vertex >::Vertex
Vertex Vertex
Definition
CVertexPredicateArchetype.h:62
DGtal::concepts::CVertexPredicateArchetype::operator=
Self & operator=(const Self &)
Definition
CVertexPredicateArchetype.h:65
DGtal::concepts::CVertexPredicateArchetype::operator()
bool operator()(const Vertex &) const
Definition
CVertexPredicateArchetype.h:63
src
DGtal
graph
CVertexPredicateArchetype.h
Generated on
for DGtal by
1.18.0