AIToolbox
A library that offers tools for AI problem solving.
IO.hpp File Reference
#include <iosfwd>

Go to the source code of this file.

Namespaces

 AIToolbox
 
 AIToolbox::MDP
 

Functions

Model AIToolbox::MDP::parseCassandra (std::istream &input)
 This function parses an MDP from a Cassandra formatted stream. More...
 
MDP output stream operators.

These utilities output MDP types at the maximum possible precision. This allows reading them back with no loss of accuracy.

std::ostream & AIToolbox::MDP::operator<< (std::ostream &os, const Model &model)
 
std::ostream & AIToolbox::MDP::operator<< (std::ostream &os, const SparseModel &model)
 
std::ostream & AIToolbox::MDP::operator<< (std::ostream &os, const Experience &exp)
 
std::ostream & AIToolbox::MDP::operator<< (std::ostream &os, const SparseExperience &exp)
 
std::ostream & AIToolbox::MDP::operator<< (std::ostream &os, const PolicyInterface &p)
 
MDP output stream operators.

These utilities output MDP types at the maximum possible precision. This allows reading them back with no loss of accuracy.

std::ostream & AIToolbox::MDP::operator<< (std::ostream &os, const Model &model)
 
std::ostream & AIToolbox::MDP::operator<< (std::ostream &os, const SparseModel &model)
 
std::ostream & AIToolbox::MDP::operator<< (std::ostream &os, const Experience &exp)
 
std::ostream & AIToolbox::MDP::operator<< (std::ostream &os, const SparseExperience &exp)
 
std::ostream & AIToolbox::MDP::operator<< (std::ostream &os, const PolicyInterface &p)
 

Input stream utilities

These utilities read back data outputted with their respective operator<<() function.

Note that the inputs must already be constructed with the correct size (state-action spaces), as the operator<<() do not save this information.

These functions do not modify the input if the parsing fails.

std::istream & AIToolbox::MDP::operator>> (std::istream &is, Model &m)
 
std::istream & AIToolbox::MDP::operator>> (std::istream &is, SparseModel &m)
 
std::istream & AIToolbox::MDP::operator>> (std::istream &is, Experience &e)
 
std::istream & AIToolbox::MDP::operator>> (std::istream &is, SparseExperience &e)
 
std::istream & AIToolbox::MDP::operator>> (std::istream &is, Policy &p)
 This function reads a policy from a file. More...