Trading System API  3.0
Library for Simulating and Deploying Trading and Investment Strategies
tsa::fast::table::iterator Class Reference

Table iterator. Supports forward iteration only. More...

#include <TSADBTable.h>

Public Member Functions

 iterator (const iterator &other)
 Copy constructor. More...
 
 ~iterator (void)
 Destructor.
 
void advance (void)
 Increments the cursor to the next record.
 
bool operator!= (const iterator &rhs) const
 Comparison. Returns true if rhs is not equal to self. More...
 
db_record * operator* (void)
 
void operator++ (int)
 Increments the cursor to the next record.
 
db_record * operator-> (void)
 Dereference operator. More...
 
void operator= (const iterator &other)
 Assigment operator. More...
 
bool operator== (const iterator &rhs) const
 Comparison. Returns true if rhs is equal to self. More...
 
const variant operator[] (size_t position) const
 Subscript operator. Returns the value at the given column position. More...
 
const date_timetimestamp (void) const
 Returns the timestamp of the record on which the iterator is positioned. More...
 

Detailed Description

Table iterator. Supports forward iteration only.

Constructor & Destructor Documentation

tsa::fast::table::iterator::iterator ( const iterator other)

Copy constructor.

Parameters
otherThe other iterator.

Member Function Documentation

bool tsa::fast::table::iterator::operator!= ( const iterator rhs) const

Comparison. Returns true if rhs is not equal to self.

Parameters
rhsThe right hand side iterator.
Returns
true if both are not equal.
db_record * tsa::fast::table::iterator::operator-> ( void  )

Dereference operator.

Returns
A db_record pointer.
void tsa::fast::table::iterator::operator= ( const iterator other)

Assigment operator.

Parameters
otherThe other iterator.
bool tsa::fast::table::iterator::operator== ( const iterator rhs) const

Comparison. Returns true if rhs is equal to self.

Parameters
rhsThe right hand side iterator.
Returns
true if both are equal.
const variant tsa::fast::table::iterator::operator[] ( size_t  position) const

Subscript operator. Returns the value at the given column position.

Parameters
positionThe position.
Returns
The value at given position.
const date_time & tsa::fast::table::iterator::timestamp ( void  ) const

Returns the timestamp of the record on which the iterator is positioned.

Returns
A date_time&