1#ifndef CYCLUS_SRC_REC_BACKEND_H_
2#define CYCLUS_SRC_REC_BACKEND_H_
6#include <boost/intrusive_ptr.hpp>
28 for (
int i = 0; i < backs_.size(); ++i) {
34 std::vector<RecBackend*> backs_;
44 virtual std::string
Name() = 0;
Convenience class for using a stack variable to auto-destruct a Recbackend.
void Add(RecBackend *b)
Add another backend b to be deleted when the Deleter is destructed.
~Deleter()
Deletes all tracked backends.
An abstract base class for listeners (e.g.
virtual void Flush()=0
Flushes all buffered data in the backend to its final format/location.
virtual void Close()=0
Closes the backend, if approriate.
virtual std::string Name()=0
Used to uniquely identify a backend - particularly if there are more than one in a simulation.
virtual void Notify(DatumList data)=0
Used to pass a list of new/collected Datum objects.
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
std::vector< Datum * > DatumList