A platform for high-performance distributed tool and library development written in C++. It can be deployed in two different cluster modes: standalone or distributed. API for v0.5.0, released on June 13, 2018.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
RecordIterator Class Reference

#include <RecordIterator.h>

+ Collaboration diagram for RecordIterator:

Public Member Functions

 RecordIterator (PDBPagePtr page)
 
 ~RecordIterator ()
 
Record< Object > * next ()
 
bool hasNext ()
 

Private Attributes

PDBPagePtr page
 
int numObjectsInCurPage
 
char * curPosInPage
 
int numObjectsIterated
 

Detailed Description

This class wraps an iterator to scan records in a page.

Definition at line 36 of file RecordIterator.h.

Constructor & Destructor Documentation

RecordIterator::RecordIterator ( PDBPagePtr  page)

Definition at line 25 of file RecordIterator.cc.

RecordIterator::~RecordIterator ( )

Definition at line 33 of file RecordIterator.cc.

Member Function Documentation

bool RecordIterator::hasNext ( )

Returns true, if there is more objects in the page, otherwise returns false.

Definition at line 54 of file RecordIterator.cc.

Record< Object > * RecordIterator::next ( )

Returns a pointer to a Record. Returns nullptr, if there is no more record in the page.

Definition at line 35 of file RecordIterator.cc.

Member Data Documentation

char* RecordIterator::curPosInPage
private

Definition at line 56 of file RecordIterator.h.

int RecordIterator::numObjectsInCurPage
private

Definition at line 55 of file RecordIterator.h.

int RecordIterator::numObjectsIterated
private

Definition at line 57 of file RecordIterator.h.

PDBPagePtr RecordIterator::page
private

Definition at line 54 of file RecordIterator.h.


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