Hyper API for C++ 0.0.20746
Hyper client library for C++ applications
|
A result schema. More...
#include <ResultSchema.hpp>
Classes | |
class | Column |
A column of a result. More... | |
Public Member Functions | |
const std::vector< Column > & | getColumns () const noexcept |
Returns all columns. | |
const Column & | getColumn (hyper_field_index_t columnIndex) const |
Returns the column at the given index. | |
size_t | getColumnCount () const noexcept |
Returns the number of columns. | |
const Column * | getColumnByName (const Name &name) const |
Gets the column with the given name. | |
optional< hyper_field_index_t > | getColumnPositionByName (const Name &name) const |
Gets the position of the column with the given name. | |
A result schema.
Definition at line 20 of file ResultSchema.hpp.
const Column & hyperapi::ResultSchema::getColumn | ( | hyper_field_index_t | columnIndex | ) | const |
Returns the column at the given index.
columnIndex | The index of the column. |
Gets the column with the given name.
name | The name of the column |
nullptr
if such a column does not exist.
|
inlinenoexcept |
Returns the number of columns.
Definition at line 61 of file ResultSchema.hpp.
optional< hyper_field_index_t > hyperapi::ResultSchema::getColumnPositionByName | ( | const Name & | name | ) | const |
Gets the position of the column with the given name.
name | The name of the column. |
|
inlinenoexcept |
Returns all columns.
Definition at line 47 of file ResultSchema.hpp.