Xpace
Xpace::SourceBase< RET > Class Template Referenceabstract

A Source is an interface to an object that provides access to each field or column of a data record or row. More...

#include <data.h>

Inheritance diagram for Xpace::SourceBase< RET >:
Xpace::Source< LOC, RET >

Public Member Functions

virtual ~SourceBase ()
 destructor More...
 
virtual RET moveTo (uint64 targ)=0
 Move to another document/row/record. More...
 

Detailed Description

template<typename RET = bool>
class Xpace::SourceBase< RET >

A Source is an interface to an object that provides access to each field or column of a data record or row.

A database or table that supports this access pattern will have a method or methods that returns a Source object or reference. Note that this class is stateful in the sense that there is a current record or row. Also note that the lifetime of a Source is bounded by the lifetime of its creating object, or possibly earlier if an action on the creator invalidates it. The non-LOC part of a Source

Parameters
RETtype of the return value of moveTo()

Definition at line 156 of file data.h.

Constructor & Destructor Documentation

template<typename RET = bool>
virtual Xpace::SourceBase< RET >::~SourceBase ( )
inlinevirtual

destructor

Definition at line 161 of file data.h.

Member Function Documentation

template<typename RET = bool>
virtual RET Xpace::SourceBase< RET >::moveTo ( uint64  targ)
pure virtual

Move to another document/row/record.

Parameters
targthe new document/row/record number
Returns
true iff move was successful

The documentation for this class was generated from the following file:

current as of Wed Jun 10 2026 12:00:06