AIToolbox
A library that offers tools for AI problem solving.
|
Go to the documentation of this file. 1 #ifndef AI_TOOLBOX_POMDP_IO_HEADER_FILE
2 #define AI_TOOLBOX_POMDP_IO_HEADER_FILE
41 template <IsModelEigen M>
42 std::ostream&
operator<<(std::ostream &os,
const M & model) {
46 write(os, model.getObservationFunction());
61 template <MDP::IsModel M>
65 if (!MDP::operator>>(is, in)) {
71 if (!
read(is, observations)) {
77 }
catch (
const std::invalid_argument &) {
79 is.setstate(std::ios::failbit);
101 template <MDP::IsModel M>
105 if (!MDP::operator>>(is, in)) {
111 if (!
read(is, observations)) {
117 }
catch (
const std::invalid_argument &) {
119 is.setstate(std::ios::failbit);
137 std::ostream&
operator<<(std::ostream &os,
const Policy & p);
153 std::istream&
operator>>(std::istream &is, Policy & p);
#define AI_SEVERITY_ERROR
Definition: Logging.hpp:71
#define AI_LOGGER(SEV, ARGS)
Definition: Logging.hpp:114