00001 // ////////////////////////////////////////////////////////////////////// 00002 // Import section 00003 // ////////////////////////////////////////////////////////////////////// 00004 // GSL Random Number Generation 00005 // (GSL Reference Manual, version 1.7, Chapter 19) 00006 // #include <gsl/gsl_cdf.h> 00007 // #include <gsl/gsl_randist.h> 00008 // C 00009 // #include <assert.h> 00010 // #include <math.h> 00011 // STL 00012 #include <iostream> 00013 #include <iomanip> 00014 // #include <cmath> 00015 // RMU 00016 #include <rmol/bom/HistoricalDataHolder.hpp> 00017 #include <rmol/bom/HistoricalDataHolderHolder.hpp> 00018 00019 namespace RMOL { 00020 00021 // ////////////////////////////////////////////////////////////////// 00022 HistoricalDataHolderHolder::HistoricalDataHolderHolder () { 00023 } 00024 00025 // ////////////////////////////////////////////////////////////////// 00026 HistoricalDataHolderHolder::~HistoricalDataHolderHolder () { 00027 _historicalDataVectorVector.clear(); 00028 } 00029 00030 // ////////////////////////////////////////////////////////////////// 00031 void HistoricalDataHolderHolder::toStream (std::ostream& ioOut) const { 00032 const short lSize = getNumberOfHistoricalDataHolder(); 00033 00034 ioOut << "Holder of HistoricalDataHolder: " << std::endl; 00035 00036 for (short ite = 0; ite < lSize; ++ite) { 00037 const HistoricalDataHolder& lHistorialDataHolder = 00038 _historicalDataVectorVector.at(ite); 00039 lHistorialDataHolder.display(); 00040 } 00041 } 00042 00043 // ////////////////////////////////////////////////////////////////// 00044 const std::string HistoricalDataHolderHolder::describe() const { 00045 std::ostringstream ostr; 00046 ostr << "Holder of HistoricalData structs."; 00047 00048 return ostr.str(); 00049 } 00050 00051 // ////////////////////////////////////////////////////////////////// 00052 void HistoricalDataHolderHolder::display() const { 00053 toStream (std::cout); 00054 } 00055 00056 }
Generated on Fri Jul 30 21:53:39 2010 for RMOL by Doxygen 1.6.1