![]() |
Ultra 0.9.4
|
Go to the source code of this file.
Functions | |
| template<Evaluator E> | |
| bool | load_eva (std::istream &in, E *e) |
| template<Evaluator E> | |
| bool | save_eva (std::ostream &out, const E &e) |
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/
| bool load_eva | ( | std::istream & | in, |
| E * | e ) |
Loads the persistent state of an evaluator, if supported.
| E | an Evaluator type |
| [in,out] | in | input stream |
| [in,out] | e | pointer to the evaluator instance |
This function provides optional persistence support for evaluators. If the evaluator type E defines a member function with the signature:
then that function is invoked. Otherwise, the evaluator is assumed to have no persistent state and the operation succeeds trivially.
| bool save_eva | ( | std::ostream & | out, |
| const E & | e ) |
Saves the persistent state of an evaluator, if supported.
| E | an Evaluator type |
| [out] | out | output stream |
| [in] | e | evaluator instance |
This function provides optional persistence support for evaluators. If the evaluator type E defines a member function with the signature:
then that function is invoked. Otherwise, the evaluator is assumed to have no persistent state and the operation succeeds trivially.