tetengo 1.8.2
A multipurpose library set
Loading...
Searching...
No Matches
constraint_element.hpp
Go to the documentation of this file.
1
7#if !defined(TETENGO_LATTICE_CONSTRAINTELEMENT_HPP)
8#define TETENGO_LATTICE_CONSTRAINTELEMENT_HPP
9
10#include <boost/core/noncopyable.hpp>
11
12
13namespace tetengo::lattice
14{
15 class node;
16
17
21 class constraint_element : private boost::noncopyable
22 {
23 public:
24 // constructors
25
30
31
32 // functions
33
43 int matches(const node& node_) const;
44
45
46 private:
47 // virtual functions
48
49 virtual int matches_impl(const node& node_) const = 0;
50 };
51
52
53}
54
55
56#endif
A constraint element.
Definition constraint_element.hpp:22
int matches(const node &node_) const
Returns whether this constraint element matches the specified node.
virtual ~constraint_element()
Destroys the constraint element.
A node.
Definition node.hpp:27
A lattice library.