Skip to content

datatypes::timeseries::RegularTimeStepImplementation

#include <time_step_implementation.h>

Inherits from datatypes::timeseries::TimeStepImplementation

Public Functions

Name
RegularTimeStepImplementation * GetHourly()
RegularTimeStepImplementation * GetDaily()
RegularTimeStepImplementation(const time_duration & stepDuration)
virtual ~RegularTimeStepImplementation()
virtual TimeStepImplementation * Clone()
virtual bool Equals(TimeStepImplementation * tsImpl) const
virtual TimeStepImplementation * Multiply(int mult) const
virtual TimeStepImplementation * Multiply(double mult) const
virtual TimeStepImplementation * Divide(int divisor) const
virtual const ptime AddIntSteps(const ptime & startTimeStep, int n) const
virtual const ptime AddSteps(const ptime & startTimeStep, double mult) const
virtual const time_duration GetTimeStepDuration(const ptime & startTimeStep) const
virtual const void Increment(ptime * t) const
virtual bool IsRegular() const
virtual time_duration GetRegularStepDuration() const
virtual std::string GetName() const

Protected Functions

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

Additional inherited members

Public Functions inherited from datatypes::timeseries::TimeStepImplementation

Name
virtual ~TimeStepImplementation()
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
void CheckIsDateTime(const ptime & instant)

Public Functions Documentation

function GetHourly

static RegularTimeStepImplementation * GetHourly()

function GetDaily

static RegularTimeStepImplementation * GetDaily()

function RegularTimeStepImplementation

RegularTimeStepImplementation(
    const time_duration & stepDuration
)

function ~RegularTimeStepImplementation

virtual ~RegularTimeStepImplementation()

function Clone

virtual TimeStepImplementation * Clone()

Reimplements: datatypes::timeseries::TimeStepImplementation::Clone

function Equals

virtual bool Equals(
    TimeStepImplementation * tsImpl
) const

Reimplements: datatypes::timeseries::TimeStepImplementation::Equals

function Multiply

virtual TimeStepImplementation * Multiply(
    int mult
) const

Reimplements: datatypes::timeseries::TimeStepImplementation::Multiply

function Multiply

virtual TimeStepImplementation * Multiply(
    double mult
) const

Reimplements: datatypes::timeseries::TimeStepImplementation::Multiply

function Divide

virtual TimeStepImplementation * Divide(
    int divisor
) const

Reimplements: datatypes::timeseries::TimeStepImplementation::Divide

function AddIntSteps

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

Reimplements: datatypes::timeseries::TimeStepImplementation::AddIntSteps

function AddSteps

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

Reimplements: datatypes::timeseries::TimeStepImplementation::AddSteps

function GetTimeStepDuration

virtual const time_duration GetTimeStepDuration(
    const ptime & startTimeStep
) const

Reimplements: datatypes::timeseries::TimeStepImplementation::GetTimeStepDuration

function Increment

virtual const void Increment(
    ptime * t
) const

Reimplements: datatypes::timeseries::TimeStepImplementation::Increment

function IsRegular

virtual bool IsRegular() const

Reimplements: datatypes::timeseries::TimeStepImplementation::IsRegular

function GetRegularStepDuration

virtual time_duration GetRegularStepDuration() const

Reimplements: datatypes::timeseries::TimeStepImplementation::GetRegularStepDuration

function GetName

virtual std::string GetName() const

Reimplements: datatypes::timeseries::TimeStepImplementation::GetName

Protected Functions Documentation

function GetLinearIndexing

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

Reimplements: datatypes::timeseries::TimeStepImplementation::GetLinearIndexing


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