|
| | JointNPVCube (const QuantLib::ext::shared_ptr< NPVCube > &cube1, const QuantLib::ext::shared_ptr< NPVCube > &cube2, const std::set< std::string > &ids={}, const bool requireUniqueIds=true, const std::function< Real(Real a, Real x)> &accumulator=[](Real a, Real x) { return a+x;}, const Real accumulatorInit=0.0) |
| | JointNPVCube (const std::vector< QuantLib::ext::shared_ptr< NPVCube > > &cubes, const std::set< std::string > &ids={}, const bool requireUniqueIds=true, const std::function< Real(Real a, Real x)> &accumulator=[](Real a, Real x) { return a+x;}, const Real accumulatorInit=0.0) |
| Size | numIds () const override |
| | Return the length of each dimension.
|
| Size | numDates () const override |
| Size | samples () const override |
| Size | depth () const override |
| 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.
|
| QuantLib::Date | asof () const override |
| | Return the asof date (T0 date).
|
| Real | getT0 (Size id, Size depth=0) const override |
| | Get a T0 value from the cube using index.
|
| void | setT0 (Real value, Size id, Size depth=0) override |
| | Set a value in the cube using index.
|
| Real | get (Size id, Size date, Size sample, Size depth=0) const override |
| | Get a value from the cube using index.
|
| void | set (Real value, Size id, Size date, Size sample, Size depth=0) override |
| | Set a value in the cube using index.
|
| bool | usesDoublePrecision () const override |
|
| 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 | removeT0 (Size id) |
| virtual void | remove (Size id, Size sample, bool setToT0Value) |
|
Size | getTradeIndex (const std::string &id) const |
|
Size | getDateIndex (const QuantLib::Date &date) const |