RT::TDataSource< T > Class Template Reference

IDataSource implemintation class. More...

#include <DataSource.h>

Inheritance diagram for RT::TDataSource< T >:
RT::IDataSource< T >

List of all members.

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)

Detailed Description

template<class T>
class RT::TDataSource< T >

IDataSource implemintation class.


Constructor & Destructor Documentation

template<class T >
RT::TDataSource< T >::TDataSource ( T *  begin,
int  count 
) [inline]

Sets the data element

Parameters:
begin Pointer to the first element in collection
count Elements quantity

Member Function Documentation

template<class T >
int RT::TDataSource< T >::count (  )  const [inline, virtual]

returns elements count

Implements RT::IDataSource< T >.

template<class T >
T * RT::TDataSource< T >::first (  )  const [inline, virtual]

returns pointer to the first element

Implements RT::IDataSource< T >.

template<class T >
T * RT::TDataSource< T >::last (  )  [inline, virtual]

returns pointer to the last element

Implements RT::IDataSource< T >.

template<class T >
T * RT::TDataSource< T >::next (  )  [inline, virtual]

returns pointer to the next element

Implements RT::IDataSource< T >.

template<class T >
T & RT::TDataSource< T >::operator[] ( int  indx  )  [inline, virtual]

index access to data elements

Implements RT::IDataSource< T >.

template<class T >
T * RT::TDataSource< T >::previous (  )  [inline, virtual]

returns pointer to the previous element

Implements RT::IDataSource< T >.

template<class T >
void RT::TDataSource< T >::set ( T *  t,
int  idx 
) [inline, virtual]

Sets the data element

Parameters:
t Value to copy from
idx Index of the element to change

Implements RT::IDataSource< T >.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Enumerations Enumerator
Generated on Tue Jun 7 15:51:19 2011 for RTAPI by  doxygen 1.6.3