bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
policy_base.h
Go to the documentation of this file.
1#ifndef POLICY_BASE_H
2#define POLICY_BASE_H
3
5#include <ostream>
6
7namespace bitrl
8{
9namespace rl
10{
11namespace policies
12{
13
18{
19 public:
23 virtual ~PolicyBase() = default;
24
29 PolicyType type() const noexcept { return type_; }
30
34 virtual std::ostream &print(std::ostream &out) const = 0;
35
36 protected:
41
46};
47
49
50inline std::ostream &operator<<(std::ostream &out, const PolicyBase &p) { return p.print(out); }
51
52} // namespace policies
53} // namespace rl
54} // namespace bitrl
55
56#endif // POLICY_BASE_H
The PolicyBase class.
Definition policy_base.h:18
PolicyType type() const noexcept
type. Returns the policy identifier type
Definition policy_base.h:29
virtual std::ostream & print(std::ostream &out) const =0
print
PolicyType type_
type_
Definition policy_base.h:45
PolicyBase(PolicyType type)
Definition policy_base.h:48
virtual ~PolicyBase()=default
~PolicyBase. Destructor
Definition policy_stochastic_adaptor.h:21
PolicyType
Definition policy_type.h:12
std::ostream & operator<<(std::ostream &out, const PolicyBase &p)
Definition policy_base.h:50
Definition dummy_agent.h:9
Various utilities used when working with RL problems.
Definition bitrl_log.h:25