Row class for databases.
More...
#include <row.hxx>
|
|
| Row () noexcept=default |
| | Default Constructor.
|
| |
| | Row (const Row &other)=default |
| | Copy Constructor.
|
| |
| | Row (Row &&other) noexcept=default |
| | Move Constructor.
|
| |
|
| ~Row () noexcept override=default |
| | Destructor.
|
| |
| Row & | operator= (const Row &other)=default |
| | Copy Assignment Operator.
|
| |
| Row & | operator= (Row &&other) noexcept=default |
| | Move Assignment Operator.
|
| |
| const Value & | operator[] (const std::string &columnName) const & |
| | Gets the value for the specified column name.
|
| |
| Value & | operator[] (const std::string &columnName) & |
| | Gets the value for the specified column name.
|
| |
| Value | operator[] (const std::string &columnName) && |
| | Gets the value for the specified column name (rvalue)
|
| |
| void | add (std::string &&columnName, Value &&value) |
| | Adds a value to the Row.
|
| |
| std::size_t | Count () const noexcept |
| | Gets number of columns in the Row.
|
| |
◆ Row() [1/2]
| StormByte::Database::Row::Row |
( |
const Row & |
other | ) |
|
|
default |
Copy Constructor.
- Parameters
-
| other | Other Row to copy from |
◆ Row() [2/2]
| StormByte::Database::Row::Row |
( |
Row && |
other | ) |
|
|
defaultnoexcept |
Move Constructor.
- Parameters
-
| other | Other Row to move from |
◆ add()
| void StormByte::Database::Row::add |
( |
std::string && |
columnName, |
|
|
Value && |
value |
|
) |
| |
|
inline |
Adds a value to the Row.
- Parameters
-
| columnName | Optional name of the column |
| value | Value to add |
◆ Count()
| std::size_t StormByte::Database::Row::Count |
( |
| ) |
const |
|
inlinenoexcept |
Gets number of columns in the Row.
- Returns
- Number of columns in the Row
◆ operator=() [1/2]
| Row & StormByte::Database::Row::operator= |
( |
const Row & |
other | ) |
|
|
default |
Copy Assignment Operator.
- Parameters
-
| other | Other Row to copy from |
- Returns
- Reference to this Row
◆ operator=() [2/2]
| Row & StormByte::Database::Row::operator= |
( |
Row && |
other | ) |
|
|
defaultnoexcept |
Move Assignment Operator.
- Parameters
-
| other | Other Row to move from |
- Returns
- Reference to this Row
◆ operator[]() [1/3]
| Value & StormByte::Database::Row::operator[] |
( |
const std::string & |
columnName | ) |
& |
Gets the value for the specified column name.
- Parameters
-
| columnName | Name of the column |
- Returns
- Reference to the Value for the specified column name
- Exceptions
-
◆ operator[]() [2/3]
| Value StormByte::Database::Row::operator[] |
( |
const std::string & |
columnName | ) |
&& |
Gets the value for the specified column name (rvalue)
- Parameters
-
| columnName | Name of the column |
- Returns
- Value for the specified column name
- Exceptions
-
◆ operator[]() [3/3]
| const Value & StormByte::Database::Row::operator[] |
( |
const std::string & |
columnName | ) |
const & |
Gets the value for the specified column name.
- Parameters
-
| columnName | Name of the column |
- Returns
- Reference to the Value for the specified column name
- Exceptions
-
The documentation for this class was generated from the following file:
- /home/runner/work/StormByte-Database/StormByte-Database/lib/public/StormByte/database/row.hxx