Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template shifted_series

boost::time_series::shifted_series —

Synopsis

// In header: <boost/time_series/shifted_series.hpp>

template<typename Series> 
struct shifted_series :
  public boost::time_series::time_series_base< Derived >
{
  // types
  typedef Series                                                                    storage_type;       
  typedef concepts::TimeSeries< Series >                                            series_concept;     
  typedef series_concept::value_type                                                value_type;         
  typedef series_concept::cursor                                                    cursor;             
  typedef series_concept::elements                                                  elements;           
  typedef series_concept::runs                                                      runs;               
  typedef series_concept::run_type                                                  run_type;           
  typedef series_concept::offset_type                                               offset_type;        
  typedef series_concept::discretization_type                                       discretization_type;
  typedef result_of< range_run_storage::op::get_at(Series &, offset_type &) >::type reference;          

  // construct/copy/destruct
  shifted_series(Series &, offset_type);

  // public member functions
  discretization_type discretization() const;
  reference operator[](offset_type) const;
  offset_type shift() const;
  storage_type & data() const;
};

Description

shifted_series public construct/copy/destruct

  1. shifted_series(Series & series, offset_type shift);

shifted_series public member functions

  1. discretization_type discretization() const;
  2. reference operator[](offset_type n) const;
  3. offset_type shift() const;
  4. storage_type & data() const;

PrevUpHomeNext