bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
Loading...
Searching...
No Matches
predicates.h
Go to the documentation of this file.
1#ifndef PREDICATES_H
2#define PREDICATES_H
3
4#include "bitrl/bitrl_types.h"
5
6namespace bitrl
7{
8
9struct NotNull
10{
11
13
14 template <typename ITERATOR> bool operator()(const ITERATOR *itr) const
15 {
16 return itr != nullptr;
17 }
18};
19
21{
22
24 template <typename ITERATOR> bool operator()(const ITERATOR *itr) const
25 {
26 return itr->is_active();
27 }
28};
29
31{
32
34
35 template <typename ITERATOR> bool operator()(const ITERATOR *itr) const
36 {
37
38 return (itr->is_active() && itr->on_boundary());
39 }
40};
41
42} // namespace bitrl
43#endif
Definition bitrl_consts.h:14
Definition predicates.h:31
ActiveBoundaryObject()
Definition predicates.h:33
bool operator()(const ITERATOR *itr) const
Definition predicates.h:35
Definition predicates.h:21
bool operator()(const ITERATOR *itr) const
Definition predicates.h:24
IsActive()
Definition predicates.h:23
Definition predicates.h:10
bool operator()(const ITERATOR *itr) const
Definition predicates.h:14
NotNull()
Definition predicates.h:12