Store all the tables of the database.
More...
#include <tutorial/Database.h>
|
bool | is_valid_record_id_for_city (Record_Id record_id) const |
|
bool | is_valid_record_id_for_person (Record_Id record_id) const |
|
void | remove_index_of_city_by_name (Record_Id record_id) |
|
void | add_index_of_city_by_name (Record_Id record_id) |
|
void | remove_index_of_person_by_name (Record_Id record_id) |
|
void | add_index_of_person_by_name (Record_Id record_id) |
|
void | internal_delete_city (Record_Id record_id) |
|
void | internal_delete_person (Record_Id record_id) |
|
void | internal_insert_city (Record_Id record_id) |
|
void | internal_vector_insert_city (Record_Id record_id, size_t size) |
|
void | internal_insert_person (Record_Id record_id) |
|
void | internal_vector_insert_person (Record_Id record_id, size_t size) |
|
void | internal_update_city__name (Record_Id record_id, const std::string &field_value_of_name) |
|
void | internal_update_vector_city__name (Record_Id record_id, size_t size, const std::string *value) |
|
void | internal_update_person__first_name (Record_Id record_id, const std::string &field_value_of_first_name) |
|
void | internal_update_vector_person__first_name (Record_Id record_id, size_t size, const std::string *value) |
|
void | internal_update_person__last_name (Record_Id record_id, const std::string &field_value_of_last_name) |
|
void | internal_update_vector_person__last_name (Record_Id record_id, size_t size, const std::string *value) |
|
void | internal_update_person__home (Record_Id record_id, id_of_city field_value_of_home) |
|
void | internal_update_vector_person__home (Record_Id record_id, size_t size, const id_of_city *value) |
|
Definition at line 92 of file Database.h.
◆ add_index_of_city_by_name()
void tutorial::Database::add_index_of_city_by_name |
( |
Record_Id |
record_id | ) |
|
|
inlineprotected |
◆ add_index_of_person_by_name()
void tutorial::Database::add_index_of_person_by_name |
( |
Record_Id |
record_id | ) |
|
|
inlineprotected |
◆ find_city_by_name()
id_of_city tutorial::Database::find_city_by_name |
( |
const std::string & |
field_value_of_name | ) |
const |
|
inline |
◆ find_person_by_name()
range_of_person_by_name tutorial::Database::find_person_by_name |
( |
const std::string & |
field_value_of_last_name, |
|
|
const std::string & |
field_value_of_first_name |
|
) |
| const |
|
inline |
◆ get_city_table()
◆ get_first_name()
const std::string & tutorial::Database::get_first_name |
( |
id_of_person |
record | ) |
const |
|
inline |
◆ get_home()
◆ get_index_of_city_by_name()
const std::map< std::string, id_of_city > & tutorial::Database::get_index_of_city_by_name |
( |
| ) |
|
|
inline |
◆ get_index_of_person_by_name()
const std::multimap< std::tuple< std::string, std::string >, id_of_person > & tutorial::Database::get_index_of_person_by_name |
( |
| ) |
|
|
inline |
◆ get_last_name()
const std::string & tutorial::Database::get_last_name |
( |
id_of_person |
record | ) |
const |
|
inline |
◆ get_name()
const std::string & tutorial::Database::get_name |
( |
id_of_city |
record | ) |
const |
|
inline |
◆ get_person_table()
◆ internal_delete_city()
void tutorial::Database::internal_delete_city |
( |
Record_Id |
record_id | ) |
|
|
inlineprotected |
◆ internal_delete_person()
void tutorial::Database::internal_delete_person |
( |
Record_Id |
record_id | ) |
|
|
inlineprotected |
◆ internal_insert_city()
void tutorial::Database::internal_insert_city |
( |
Record_Id |
record_id | ) |
|
|
inlineprotected |
◆ internal_insert_person()
void tutorial::Database::internal_insert_person |
( |
Record_Id |
record_id | ) |
|
|
inlineprotected |
◆ internal_update_city__name()
void tutorial::Database::internal_update_city__name |
( |
Record_Id |
record_id, |
|
|
const std::string & |
field_value_of_name |
|
) |
| |
|
inlineprotected |
◆ internal_update_person__first_name()
void tutorial::Database::internal_update_person__first_name |
( |
Record_Id |
record_id, |
|
|
const std::string & |
field_value_of_first_name |
|
) |
| |
|
inlineprotected |
◆ internal_update_person__home()
void tutorial::Database::internal_update_person__home |
( |
Record_Id |
record_id, |
|
|
id_of_city |
field_value_of_home |
|
) |
| |
|
inlineprotected |
◆ internal_update_person__last_name()
void tutorial::Database::internal_update_person__last_name |
( |
Record_Id |
record_id, |
|
|
const std::string & |
field_value_of_last_name |
|
) |
| |
|
inlineprotected |
◆ internal_update_vector_city__name()
void tutorial::Database::internal_update_vector_city__name |
( |
Record_Id |
record_id, |
|
|
size_t |
size, |
|
|
const std::string * |
value |
|
) |
| |
|
inlineprotected |
◆ internal_update_vector_person__first_name()
void tutorial::Database::internal_update_vector_person__first_name |
( |
Record_Id |
record_id, |
|
|
size_t |
size, |
|
|
const std::string * |
value |
|
) |
| |
|
inlineprotected |
◆ internal_update_vector_person__home()
void tutorial::Database::internal_update_vector_person__home |
( |
Record_Id |
record_id, |
|
|
size_t |
size, |
|
|
const id_of_city * |
value |
|
) |
| |
|
inlineprotected |
◆ internal_update_vector_person__last_name()
void tutorial::Database::internal_update_vector_person__last_name |
( |
Record_Id |
record_id, |
|
|
size_t |
size, |
|
|
const std::string * |
value |
|
) |
| |
|
inlineprotected |
◆ internal_vector_insert_city()
void tutorial::Database::internal_vector_insert_city |
( |
Record_Id |
record_id, |
|
|
size_t |
size |
|
) |
| |
|
inlineprotected |
◆ internal_vector_insert_person()
void tutorial::Database::internal_vector_insert_person |
( |
Record_Id |
record_id, |
|
|
size_t |
size |
|
) |
| |
|
inlineprotected |
◆ is_valid() [1/2]
bool tutorial::Database::is_valid |
( |
id_of_city |
id | ) |
const |
|
inline |
◆ is_valid() [2/2]
◆ is_valid_record_id_for_city()
bool tutorial::Database::is_valid_record_id_for_city |
( |
Record_Id |
record_id | ) |
const |
|
inlineprotected |
◆ is_valid_record_id_for_person()
bool tutorial::Database::is_valid_record_id_for_person |
( |
Record_Id |
record_id | ) |
const |
|
inlineprotected |
◆ next() [1/2]
◆ next() [2/2]
◆ next_city_by_name()
◆ null_city()
static id_of_city tutorial::Database::null_city |
( |
| ) |
|
|
inlinestatic |
◆ null_person()
◆ previous() [1/2]
◆ previous() [2/2]
◆ previous_city_by_name()
◆ remove_index_of_city_by_name()
void tutorial::Database::remove_index_of_city_by_name |
( |
Record_Id |
record_id | ) |
|
|
inlineprotected |
◆ remove_index_of_person_by_name()
void tutorial::Database::remove_index_of_person_by_name |
( |
Record_Id |
record_id | ) |
|
|
inlineprotected |
◆ sorted_city()
template<class Comparator >
std::vector< id_of_city > tutorial::Database::sorted_city |
( |
Comparator |
comparator | ) |
const |
◆ sorted_person()
template<class Comparator >
std::vector< id_of_person > tutorial::Database::sorted_person |
( |
Comparator |
comparator | ) |
const |
◆ throw_exception()
template<typename E = joedb::Exception>
static void tutorial::Database::throw_exception |
( |
const std::string & |
message | ) |
|
|
inlinestatic |
◆ container_of_city
◆ container_of_person
◆ id_of_city
◆ id_of_person
◆ range_of_person_by_name
◆ Readable
◆ index_of_city_by_name
std::map<std::string, id_of_city> tutorial::Database::index_of_city_by_name |
|
protected |
◆ index_of_person_by_name
std::multimap<std::tuple<std::string, std::string>, id_of_person> tutorial::Database::index_of_person_by_name |
|
protected |
◆ storage_of_city
detail::data_of_city tutorial::Database::storage_of_city |
|
protected |
◆ storage_of_person
detail::data_of_person tutorial::Database::storage_of_person |
|
protected |
The documentation for this class was generated from the following file:
- /home/rcoulom/repos/joedb/doc/source/tutorial/src/tutorial/Database.h