DGtal 1.3.0
Loading...
Searching...
No Matches
CVertexPredicateArchetype.h
1
17#pragma once
18
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
47namespace DGtal {
48 namespace concepts {
49
51 // class CVertexPredicateArchetype
58 template <typename TVertex>
60 {
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 is the top-level namespace which contains all DGtal functions and types.
Aim: Defines a an archetype for concept CVertexPredicate.
CVertexPredicateArchetype< TVertex > Self