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_;
40 virtual void Notify(DatumList data) = 0;
47 virtual void Flush() = 0;
50 virtual void Close() = 0;
55 #endif // CYCLUS_SRC_REC_BACKEND_H_ double b(int nuc)
Computes the scattering length [cm] from the coherent and incoherent components.
~Deleter()
Deletes all tracked backends.
void Add(RecBackend *b)
Add another backend b to be deleted when the Deleter is destructed.
virtual void Notify(DatumList data)=0
Used to pass a list of new/collected Datum objects.
virtual std::string Name()=0
Used to uniquely identify a backend - particularly if there are more than one in a simulation...
An abstract base class for listeners (e.g.
virtual void Close()=0
Closes the backend, if approriate.
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or.org/Osi/browser/trunk.
Convenience class for using a stack variable to auto-destruct a Recbackend.
std::vector< Datum * > DatumList
virtual void Flush()=0
Flushes all buffered data in the backend to its final format/location.