Tables of a database.
More...
#include "C16/Tables.hpp"
Tables of a database.
- Examples
Iteration
◆ database()
virtual Database& C16::Tables::database |
( |
| ) |
const |
|
pure virtual |
◆ get() [1/2]
virtual const Table& C16::Tables::get |
( |
int |
number | ) |
const |
|
pure virtual |
Gets a table by means of its number.
- Parameters
-
number | Number of the table |
- Exceptions
-
◆ get() [2/2]
virtual const Table& C16::Tables::get |
( |
const std::string & |
name | ) |
const |
|
pure virtual |
Gets a table by means of its name.
- Parameters
-
name | Name of the table (case insensitive) |
- Exceptions
-
◆ get_if_existent() [1/2]
virtual const Table* C16::Tables::get_if_existent |
( |
int |
number | ) |
const |
|
pure virtual |
Gets a table by means of its number, if existent.
- Parameters
-
number | Number of the table |
- Return values
-
!= nullptr | Pointer to the table. |
nullptr | Table inexistent. |
◆ get_if_existent() [2/2]
virtual const Table* C16::Tables::get_if_existent |
( |
const std::string & |
name | ) |
const |
|
pure virtual |
Gets a table by means of its name, if existent.
- Parameters
-
name | Name of the table (case insensitive) |
- Return values
-
!= nullptr | Pointer to the table. |
nullptr | Table inexistent. |
◆ begin()
Gets a const-iterator of the first table.
◆ end()
Gets a const-iterator of the table following the last table.
◆ rbegin()
Gets a const-iterator of the last table.
◆ rend()
Gets a const-iterator of the table preceding the first table.