11 #ifndef OOPS_BASE_ENSEMBLESCOLLECTION_H_ 12 #define OOPS_BASE_ENSEMBLESCOLLECTION_H_ 14 #include <boost/foreach.hpp> 15 #include <boost/shared_ptr.hpp> 16 #include <boost/unordered_map.hpp> 19 #include "oops/util/DateTime.h" 29 typedef boost::unordered_map<util::DateTime,
40 boost::shared_ptr<StateEnsemble<MODEL> >
operator[](
const util::DateTime&
d)
const {
49 static boost::shared_ptr<EnsemblesCollection<MODEL> > instance_;
50 if ( instance_.use_count() == 0 )
66 #endif // OOPS_BASE_ENSEMBLESCOLLECTION_H_ boost::unordered_map< util::DateTime, boost::shared_ptr< StateEnsemble< MODEL > > > EnsemblesMap
virtual ~EnsemblesCollection()
Constructor.
static EnsemblesCollection< MODEL > & getInstance()
The namespace for the main oops code.
real(fp), parameter, public e
boost::shared_ptr< StateEnsemble< MODEL > > operator[](const util::DateTime &d) const
Accessors.
void put(const util::DateTime &d, boost::shared_ptr< StateEnsemble< MODEL > > e)