IDataSource implemintation class. More...
#include <DataSource.h>
Public Member Functions | |
TDataSource (T *begin, int count) | |
virtual int | init (T *, int) |
virtual T * | first () const |
virtual T * | last () |
virtual T * | next () |
virtual T * | previous () |
virtual void | set (T *, int) |
virtual int | count () const |
virtual void | count (int) |
virtual T & | operator[] (int indx) |
IDataSource implemintation class.
RT::TDataSource< T >::TDataSource | ( | T * | begin, | |
int | count | |||
) | [inline] |
Sets the data element
begin | Pointer to the first element in collection | |
count | Elements quantity |
int RT::TDataSource< T >::count | ( | ) | const [inline, virtual] |
returns elements count
Implements RT::IDataSource< T >.
T * RT::TDataSource< T >::first | ( | ) | const [inline, virtual] |
returns pointer to the first element
Implements RT::IDataSource< T >.
T * RT::TDataSource< T >::last | ( | ) | [inline, virtual] |
returns pointer to the last element
Implements RT::IDataSource< T >.
T * RT::TDataSource< T >::next | ( | ) | [inline, virtual] |
returns pointer to the next element
Implements RT::IDataSource< T >.
T & RT::TDataSource< T >::operator[] | ( | int | indx | ) | [inline, virtual] |
index access to data elements
Implements RT::IDataSource< T >.
T * RT::TDataSource< T >::previous | ( | ) | [inline, virtual] |
returns pointer to the previous element
Implements RT::IDataSource< T >.
void RT::TDataSource< T >::set | ( | T * | t, | |
int | idx | |||
) | [inline, virtual] |
Sets the data element
t | Value to copy from | |
idx | Index of the element to change |
Implements RT::IDataSource< T >.