CONZEPT 16 C++ API
C16::RecordsSelection Class Reference

Record set of records restricted and ordered by a selection. More...

#include "C16/RecordsSelection.hpp"

Inheritance diagram for C16::RecordsSelection:
C16::Records

Detailed Description

Record set of records restricted and ordered by a selection.

Public Member Functions

 RecordsSelection (const Selection &selection, bool reverse=false)
 Constructs a record set by means of a selection buffer. More...
 
long int count () const override
 Gets the count of records of the record set. More...
 
- Public Member Functions inherited from C16::Records
const Tabletable () const
 Gets the table of the record set. More...
 
const Recordrecord () const
 Gets the record buffer of the record set. More...
 
Recordrecord ()
 Gets the record buffer of the record set. More...
 
bool reverse () const
 Gets if the order of the records is reverted. More...
 
void reverse_set (bool reverse)
 Sets if the order of the records is reverted. More...
 
Result read (Place place, Locking locking=Locking::NONE, bool reverse=false)
 Reads a record by means of a place into the record buffer. More...
 
Result read (long int position, Locking locking=Locking::NONE, bool reverse=false)
 Reads a record by means of its position into the record buffer. More...
 

Constructor & Destructor Documentation

◆ RecordsSelection()

C16::RecordsSelection::RecordsSelection ( const Selection selection,
bool  reverse = false 
)
explicit

Constructs a record set by means of a selection buffer.

Parameters
selectionselection buffer
reverseOption to revert the order of the records of the selection
Note
The selection must be locked to read its records.

Member Function Documentation

◆ count()

long int C16::RecordsSelection::count ( ) const
overridevirtual

Gets the count of records of the record set.

Implements C16::Records.