Skip to content

datatypes::timeseries::TimeStepImplementation

#include <time_step_implementation.h>

Inherited by datatypes::timeseries::IrregularTimeStepImplementation, datatypes::timeseries::RegularTimeStepImplementation

Public Functions

Name
virtual ~TimeStepImplementation()
virtual TimeStepImplementation * Clone() =0
virtual TimeStepImplementation * Multiply(int mult) const =0
virtual TimeStepImplementation * Divide(int divisor) const =0
virtual TimeStepImplementation * Multiply(double mult) const =0
virtual bool Equals(TimeStepImplementation * tsImpl) const =0
virtual const ptime AddIntSteps(const ptime & startTimeStep, int n) const =0
virtual const ptime AddSteps(const ptime & startTimeStep, double mult) const =0
virtual const time_duration GetTimeStepDuration(const ptime & startTimeStep) const =0
virtual const void Increment(ptime * t) const =0
virtual const ptrdiff_t GetUpperNumSteps(const ptime & start, const ptime & end) const
virtual const ptrdiff_t GetNumSteps(const ptime & start, const ptime & end) const
virtual const ptrdiff_t GetOffset(const ptime & start, const ptime & end) const
virtual bool IsRegular() const =0
virtual time_duration GetRegularStepDuration() const =0
virtual std::string GetName() const =0
void CheckIsDateTime(const ptime & instant)

Protected Functions

Name
virtual const double GetLinearIndexing(const ptime & start, const ptime & end) const =0

Public Functions Documentation

function ~TimeStepImplementation

virtual ~TimeStepImplementation()

function Clone

virtual TimeStepImplementation * Clone() =0

Reimplemented by: datatypes::timeseries::RegularTimeStepImplementation::Clone, datatypes::timeseries::MonthlyQppTimeStepImplementation::Clone, datatypes::timeseries::IrregularTimeStepImplementation::Clone

function Multiply

virtual TimeStepImplementation * Multiply(
    int mult
) const =0

Reimplemented by: datatypes::timeseries::RegularTimeStepImplementation::Multiply, datatypes::timeseries::IrregularTimeStepImplementation::Multiply

function Divide

virtual TimeStepImplementation * Divide(
    int divisor
) const =0

Reimplemented by: datatypes::timeseries::RegularTimeStepImplementation::Divide, datatypes::timeseries::IrregularTimeStepImplementation::Divide

function Multiply

virtual TimeStepImplementation * Multiply(
    double mult
) const =0

Reimplemented by: datatypes::timeseries::RegularTimeStepImplementation::Multiply, datatypes::timeseries::IrregularTimeStepImplementation::Multiply

function Equals

virtual bool Equals(
    TimeStepImplementation * tsImpl
) const =0

Reimplemented by: datatypes::timeseries::RegularTimeStepImplementation::Equals, datatypes::timeseries::MonthlyQppTimeStepImplementation::Equals, datatypes::timeseries::IrregularTimeStepImplementation::Equals

function AddIntSteps

virtual const ptime AddIntSteps(
    const ptime & startTimeStep,
    int n
) const =0

Reimplemented by: datatypes::timeseries::RegularTimeStepImplementation::AddIntSteps, datatypes::timeseries::MonthlyQppTimeStepImplementation::AddIntSteps, datatypes::timeseries::IrregularTimeStepImplementation::AddIntSteps

function AddSteps

virtual const ptime AddSteps(
    const ptime & startTimeStep,
    double mult
) const =0

Reimplemented by: datatypes::timeseries::RegularTimeStepImplementation::AddSteps, datatypes::timeseries::MonthlyQppTimeStepImplementation::AddSteps, datatypes::timeseries::IrregularTimeStepImplementation::AddSteps

function GetTimeStepDuration

virtual const time_duration GetTimeStepDuration(
    const ptime & startTimeStep
) const =0

Reimplemented by: datatypes::timeseries::RegularTimeStepImplementation::GetTimeStepDuration, datatypes::timeseries::IrregularTimeStepImplementation::GetTimeStepDuration, datatypes::timeseries::MonthlyQppTimeStepImplementation::GetTimeStepDuration

function Increment

virtual const void Increment(
    ptime * t
) const =0

Reimplemented by: datatypes::timeseries::RegularTimeStepImplementation::Increment, datatypes::timeseries::MonthlyQppTimeStepImplementation::Increment, datatypes::timeseries::IrregularTimeStepImplementation::Increment

function GetUpperNumSteps

virtual const ptrdiff_t GetUpperNumSteps(
    const ptime & start,
    const ptime & end
) const

function GetNumSteps

virtual const ptrdiff_t GetNumSteps(
    const ptime & start,
    const ptime & end
) const

function GetOffset

virtual const ptrdiff_t GetOffset(
    const ptime & start,
    const ptime & end
) const

function IsRegular

virtual bool IsRegular() const =0

Reimplemented by: datatypes::timeseries::RegularTimeStepImplementation::IsRegular, datatypes::timeseries::IrregularTimeStepImplementation::IsRegular

function GetRegularStepDuration

virtual time_duration GetRegularStepDuration() const =0

Reimplemented by: datatypes::timeseries::RegularTimeStepImplementation::GetRegularStepDuration, datatypes::timeseries::IrregularTimeStepImplementation::GetRegularStepDuration

function GetName

virtual std::string GetName() const =0

Reimplemented by: datatypes::timeseries::RegularTimeStepImplementation::GetName, datatypes::timeseries::MonthlyQppTimeStepImplementation::GetName, datatypes::timeseries::IrregularTimeStepImplementation::GetName

function CheckIsDateTime

static void CheckIsDateTime(
    const ptime & instant
)

Protected Functions Documentation

function GetLinearIndexing

virtual const double GetLinearIndexing(
    const ptime & start,
    const ptime & end
) const =0

Reimplemented by: datatypes::timeseries::RegularTimeStepImplementation::GetLinearIndexing, datatypes::timeseries::MonthlyQppTimeStepImplementation::GetLinearIndexing, datatypes::timeseries::IrregularTimeStepImplementation::GetLinearIndexing


Updated on 2022-08-21 at 18:10:33 +1000