A chunk of a result.
More...
#include <Result.hpp>
|
| Chunk () noexcept=default |
| Constructor, constructs a closed chunk.
|
|
| ~Chunk () noexcept |
| Destructor.
|
|
| Chunk (Chunk &other)=delete |
| Copy constructor.
|
|
Chunk & | operator= (Chunk &other)=delete |
| Copy assignment.
|
|
| Chunk (Chunk &&other) noexcept |
| Move constructor.
|
|
Chunk & | operator= (Chunk &&other) noexcept |
| Move assignment.
|
|
Row | getRowAt (hyper_row_index_t chunkRowIndex) const noexcept |
| Retrieves the row at the given index inside the chunk (starting at 0).
|
|
size_t | getRowCount () const noexcept |
|
bool | isOpen () const noexcept |
| Returns whether the chunk is valid.
|
|
| operator bool () const noexcept |
| Returns whether the chunk is valid.
|
|
A chunk of a result.
A chunk is a collection of rows.
Definition at line 129 of file Result.hpp.
◆ Chunk()
hyperapi::Chunk::Chunk |
( |
| ) |
|
|
defaultnoexcept |
Constructor, constructs a closed chunk.
- Postcondition
- !isOpen()
◆ getRowAt()
Row hyperapi::Chunk::getRowAt |
( |
hyper_row_index_t |
chunkRowIndex | ) |
const |
|
noexcept |
Retrieves the row at the given index inside the chunk (starting at 0).
- Parameters
-
chunkRowIndex | The index of the row inside the chunk. |
- Returns
- The row at given index.
- Precondition
- isOpen()
◆ getRowCount()
size_t hyperapi::Chunk::getRowCount |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- The number of rows inside the chunk.
- Precondition
- isOpen()
Definition at line 161 of file Result.hpp.
◆ isOpen()
bool hyperapi::Chunk::isOpen |
( |
| ) |
const |
|
inlinenoexcept |
Returns whether the chunk is valid.
Definition at line 164 of file Result.hpp.
◆ operator bool()
hyperapi::Chunk::operator bool |
( |
| ) |
const |
|
inlinenoexcept |
Returns whether the chunk is valid.
Definition at line 167 of file Result.hpp.
The documentation for this class was generated from the following file: