|
| SparseNpvCube (const Date &asof, const std::set< std::string > &ids, const std::vector< Date > &dates, Size samples, Size depth, const T &t=T()) |
|
Size | numIds () const override |
| Return the length of each dimension.
|
|
Size | numDates () const override |
|
Size | samples () const override |
|
Size | depth () const override |
|
Date | asof () const override |
| Return the asof date (T0 date)
|
|
const std::map< std::string, Size > & | idsAndIndexes () const override |
| Get a map of id and their index position in this cube.
|
|
const std::vector< QuantLib::Date > & | dates () const override |
| Get the vector of dates for this cube.
|
|
Real | getT0 (Size i, Size d) const override |
| Get a T0 value from the cube using index.
|
|
void | setT0 (Real value, Size i, Size d) override |
| Set a value in the cube using index.
|
|
Real | get (Size i, Size j, Size k, Size d) const override |
| Get a value from the cube using index.
|
|
void | set (Real value, Size i, Size j, Size k, Size d) override |
| Set a value in the cube using index.
|
|
| NPVCube () |
| default ctor
|
|
| NPVCube (NPVCube &)=delete |
| Do not allow cube copying.
|
|
NPVCube & | operator= (NPVCube const &)=delete |
|
virtual | ~NPVCube () |
| dtor
|
|
const std::set< std::string > | ids () const |
| Get a set of all ids in the cube.
|
|
virtual Real | getT0 (const std::string &id, Size depth=0) const |
| Get a T0 value from the cube using trade id.
|
|
virtual void | setT0 (Real value, const std::string &id, Size depth=0) |
| Set a value in the cube using trade id.
|
|
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.
|
|
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.
|
|
virtual void | remove (Size id) |
|
virtual void | remove (Size id, Size sample) |
|
Size | getTradeIndex (const std::string &id) const |
|