ClockWork DB CoreAPI 1.0.48
Abstract Time Series and Storage/Management Library
Loading...
Searching...
No Matches
tom::collections::time_series_impl< T > Class Template Reference
+ Inheritance diagram for tom::collections::time_series_impl< T >:
+ Collaboration diagram for tom::collections::time_series_impl< T >:

Public Types

typedef vector_type::const_iterator const_iterator
 
typedef vector_type::difference_type difference_type
 
typedef vector_type::iterator iterator
 
typedef std::random_access_iterator_tag iterator_category
 
typedef vector_type::pointer pointer
 
typedef vector_type::reference reference
 
typedef tom::value_types::scalar< typename T::value_type > scalar_type
 
typedef T value_type
 
typedef std::vector< typename T::value_type > vector_type
 

Public Member Functions

 time_series_impl (calendar &cal)
 
template<typename IteratorT >
 time_series_impl (calendar &cal, date start, IteratorT begin, IteratorT end)
 
template<typename Iter >
 time_series_impl (calendar &cal, date_int_type start, Iter begin, Iter end)
 
virtual time_series_iteratorbegin () const
 
virtual const void * data () const
 
virtual time_series_iteratorend () const
 
virtual tom::calendars::calendarget_calendar () const
 
date_int_type get_first_date_int () const
 
date_int_type get_last_date_int () const
 
virtual const observationget_observation (const date d) const
 
virtual const observationget_observation (date_int_type d) const
 
bool in_range (date_int_type d) const
 
bool is_empty () const
 
virtual observationoperator[] (const date d)
 
virtual const observationoperator[] (const date d) const
 
virtual observationoperator[] (const date_int_type d)
 
virtual const observationoperator[] (const date_int_type d) const
 
virtual std::ostream & print (std::ostream &) const
 
virtual void set_observation (const date d, const observation &val)
 
void set_observation (const date d, const typename T::value_type &val)
 
void set_observation (const date d, tom::value_type val)
 
void set_observation (const date_int_type d, const typename T::value_type &val)
 
void set_observation (const date_int_type d, tom::value_type val)
 
virtual void set_observation (date d, const Date &v)
 
virtual void set_observation (date_int_type d, const Date &v)
 
virtual void set_observation (date_int_type d, const observation &val)
 
void set_observation_ (date_int_type d, const T &v)
 
- Public Member Functions inherited from tom::collections::time_series
date get_first_date () const
 
date get_last_date () const
 
void set_observation (const Date &d, bool f)
 
virtual void set_observation (const Date &d, const char *f)
 
virtual void set_observation (const Date &d, const observation &val)
 
virtual void set_observation (const Date &d, const std::string &f)
 
void set_observation (const Date &d, double f)
 
void set_observation (const Date &d, float f)
 
void set_observation (const Date &d, int f)
 
void set_observation (const Date &d, tom::value_type f)
 
void set_observation (date d, bool f)
 
virtual void set_observation (date d, const char *f)
 
virtual void set_observation (date d, const std::string &f)
 
void set_observation (date d, double f)
 
void set_observation (date d, float f)
 
void set_observation (date d, int f)
 
void set_observation (date d, tom::value_type f)
 
void set_observation (date_int_type d, bool f)
 
virtual void set_observation (date_int_type d, const char *f)
 
virtual void set_observation (date_int_type d, const std::string &f)
 
void set_observation (date_int_type d, double f)
 
void set_observation (date_int_type d, float f)
 
void set_observation (date_int_type d, int f)
 
void set_observation (date_int_type d, tom::value_type f)
 

Protected Types

enum  Alignment { OFFSET , NATURAL }
 

Protected Member Functions

void assign_nd (date_int_type start, date_int_type end)
 
void extend (date_int_type d)
 
Alignment get_alignment () const
 
int get_offset () const
 
size_t index_of (date_int_type d) const
 
iterator real_begin ()
 
const_iterator real_begin () const
 
iterator real_end ()
 
const_iterator real_end () const
 
void realign ()
 
void set_alignment (Alignment a)
 
void set_first_date (date_int_type d)
 
void set_last_date (date_int_type d)
 
void unwind_end (date_int_type d)
 
void unwind_start (date_int_type d)
 
- Protected Member Functions inherited from tom::collections::time_series
date_int_type set_first_date_int (const date_int_type d)
 
date_int_type set_last_date_int (const date_int_type d)
 

Protected Attributes

Alignment m_align
 
calendarm_calendar
 
date_int_type m_calendar_offset
 
date_int_type m_first_date
 
date_int_type m_last_date
 
date_int_type m_min_first_date
 
value_type m_return_value
 
- Protected Attributes inherited from tom::collections::time_series
date_int_type m_end_date_int
 
date_int_type m_start_date_int
 

Member Function Documentation

◆ begin()

template<typename T >
virtual time_series_iterator & tom::collections::time_series_impl< T >::begin ( ) const
inlinevirtual

◆ data()

template<typename T >
virtual const void * tom::collections::time_series_impl< T >::data ( ) const
inlinevirtual

Reimplemented from tom::collections::time_series.

◆ end()

template<typename T >
virtual time_series_iterator & tom::collections::time_series_impl< T >::end ( ) const
inlinevirtual

◆ get_calendar()

template<typename T >
virtual tom::calendars::calendar & tom::collections::time_series_impl< T >::get_calendar ( ) const
inlinevirtual

◆ get_first_date_int()

template<typename T >
date_int_type tom::collections::time_series_impl< T >::get_first_date_int ( ) const
inlinevirtual

Reimplemented from tom::collections::time_series.

◆ get_last_date_int()

template<typename T >
date_int_type tom::collections::time_series_impl< T >::get_last_date_int ( ) const
inlinevirtual

Reimplemented from tom::collections::time_series.

◆ get_observation() [1/2]

template<typename T >
const observation & tom::collections::time_series_impl< T >::get_observation ( const date  d) const
inlinevirtual

◆ get_observation() [2/2]

template<typename T >
virtual const observation & tom::collections::time_series_impl< T >::get_observation ( date_int_type  d) const
inlinevirtual

◆ operator[]() [1/4]

template<typename T >
observation & tom::collections::time_series_impl< T >::operator[] ( const date  d)
virtual

◆ operator[]() [2/4]

template<typename T >
const observation & tom::collections::time_series_impl< T >::operator[] ( const date  d) const
virtual

◆ operator[]() [3/4]

template<typename T >
observation & tom::collections::time_series_impl< T >::operator[] ( const date_int_type  d)
virtual

◆ operator[]() [4/4]

template<typename T >
const observation & tom::collections::time_series_impl< T >::operator[] ( const date_int_type  d) const
virtual

◆ print()

template<typename T >
std::ostream & tom::collections::time_series_impl< T >::print ( std::ostream &  os) const
inlinevirtual

◆ set_observation() [1/4]

template<typename T >
void tom::collections::time_series_impl< T >::set_observation ( const date  d,
const observation val 
)
inlinevirtual

◆ set_observation() [2/4]

template<typename T >
virtual void tom::collections::time_series_impl< T >::set_observation ( date  d,
const Date v 
)
inlinevirtual

◆ set_observation() [3/4]

template<typename T >
virtual void tom::collections::time_series_impl< T >::set_observation ( date_int_type  d,
const Date v 
)
inlinevirtual

◆ set_observation() [4/4]

template<typename T >
virtual void tom::collections::time_series_impl< T >::set_observation ( date_int_type  d,
const observation val 
)
inlinevirtual

The documentation for this class was generated from the following file: