|
| InMemoryCubeBase (const Date &asof, const std::set< std::string > &ids, const vector< Date > &dates, Size samples, const T &t=T()) |
| default ctor More...
|
|
| InMemoryCubeBase () |
| default constructor More...
|
|
Size | numIds () const override |
| Return the length of each dimension. More...
|
|
Size | numDates () const override |
|
virtual Size | samples () const override |
|
const std::map< std::string, Size > & | idsAndIndexes () const override |
| Return a map of all ids and their position in the cube. More...
|
|
const std::vector< QuantLib::Date > & | dates () const override |
| Get the vector of dates for this cube. More...
|
|
QuantLib::Date | asof () const override |
| Return the asof date (T0 date) More...
|
|
| NPVCube () |
| default ctor More...
|
|
| NPVCube (NPVCube &)=delete |
| Do not allow cube copying. More...
|
|
NPVCube & | operator= (NPVCube const &)=delete |
|
virtual | ~NPVCube () |
| dtor More...
|
|
virtual Size | numIds () const =0 |
| Return the length of each dimension. More...
|
|
virtual Size | numDates () const =0 |
|
virtual Size | samples () const =0 |
|
virtual Size | depth () const =0 |
|
virtual const std::map< std::string, Size > & | idsAndIndexes () const =0 |
| Get a map of id and their index position in this cube. More...
|
|
const std::set< std::string > | ids () const |
| Get a set of all ids in the cube. More...
|
|
virtual const std::vector< QuantLib::Date > & | dates () const =0 |
| Get the vector of dates for this cube. More...
|
|
virtual QuantLib::Date | asof () const =0 |
| Return the asof date (T0 date) More...
|
|
virtual Real | getT0 (Size id, Size depth=0) const =0 |
| Get a T0 value from the cube using index. More...
|
|
virtual Real | getT0 (const std::string &id, Size depth=0) const |
| Get a T0 value from the cube using trade id. More...
|
|
virtual void | setT0 (Real value, Size id, Size depth=0)=0 |
| Set a value in the cube using index. More...
|
|
virtual void | setT0 (Real value, const std::string &id, Size depth=0) |
| Set a value in the cube using trade id. More...
|
|
virtual Real | get (Size id, Size date, Size sample, Size depth=0) const =0 |
| Get a value from the cube using index. More...
|
|
virtual void | set (Real value, Size id, Size date, Size sample, Size depth=0)=0 |
| Set a value in the cube using index. More...
|
|
virtual Real | get (const std::string &id, const QuantLib::Date &date, Size sample, Size depth=0) const |
| Get a value from the cube using trade id and date. More...
|
|
virtual void | set (Real value, const std::string &id, const QuantLib::Date &date, Size sample, Size depth=0) |
| Set a value in the cube using trade id and date. More...
|
|
virtual void | remove (Size id) |
|
virtual void | remove (Size id, Size sample) |
|
Size | getTradeIndex (const std::string &id) const |
|
template<typename T>
class ore::analytics::InMemoryCubeBase< T >
InMemoryCube stores the cube in memory using nested STL vectors.
InMemoryCube stores the cube in memory using nested STL vectors, this class is a template to allow both single and double precision implementations.
The use of nested STL vectors is adds a small memory overhead (~ 1 to 2%)
Definition at line 50 of file inmemorycube.hpp.