Trading System API  3.0
Library for Simulating and Deploying Trading and Investment Strategies
tsa::series_cref< T > Class Template Reference

The series cref. More...

#include <TSASeriesTemplate.h>

Inheritance diagram for tsa::series_cref< T >:
tsa::object

Public Member Functions

 series_cref (void)
 
 series_cref (const series< T > &other)
 
 series_cref (const series_cref< T > &other)
 
virtual ~series_cref (void)
 
const T * data (void) const
 
const series_cref< T > & name (const std::string &name) const
 
std::string name (void) const
 
 operator const series< T > & (void)
 
series_cref< T > operator() (size_t shift_by) const
 
void operator= (const series_cref< T > &other)
 
void operator= (const series< T > &)=delete
 
operator[] (size_t pos) const
 
void pane_auto_pane (bool b)
 
void pane_dotted_grid (bool b)
 
void pane_grid_color (const tsa::color &c)
 
void pane_h_line (const h_line &hl)
 
void pane_h_line (const tsa::color &c, double y_value, int weight=1)
 
const std::vector< tsa::h_line > & pane_h_lines (void) const
 
void pane_show_grid (bool b)
 
void pane_y_max (double max)
 
const variantpane_y_max (void) const
 
void pane_y_min (double min)
 
const variantpane_y_min (void) const
 
series_cref< T > & plot_as (const plot_info &pi)
 
const series_cref< T > & plot_as (const std::string &name, const tsa::variant &period=0.0, plot_type type=plot_type::line, tsa::color clr=tsa::color::auto_color, unsigned weight=2) const
 
const series_cref< T > & plot_as (const std::string &name, const std::vector< tsa::variant > &periods, plot_type type=plot_type::line, tsa::color clr=tsa::color::auto_color, unsigned weight=2) const
 
void push (T)=delete
 
void push (const variant &)=delete
 
const series< T > * series_ptr (void) const
 
size_t size (void) const
 
bool size_ok (size_t sz) const
 
type_t type (void) const
 
void verify_size (size_t sz) const
 
- Public Member Functions inherited from tsa::object
 object (void)
 Constructor.
 
virtual ~object (void)
 Destructor.
 
const char * class_name (void) const
 Returns the class name as returned by the 'Real Time Type Information' (RTTI) mechanism. More...
 
bool has_same_class_as (const object &other) const
 Returns true if self has the same type as other object. More...
 

Detailed Description

template<typename T = double>
class tsa::series_cref< T >

The series cref.

Template Parameters
TGeneric type parameter.