#include <basis/byte_array.h>#include <basis/guards.h>#include <basis/istring.h>#include <data_struct/matrix.cpp>#include <data_struct/symbol_table.cpp>#include <mechanisms/time_stamp.h>#include <loggers/console_logger.h>#include <data_struct/static_memory_gremlin.h>#include <textual/string_manipulation.h>#include <stdio.h>#include <stdlib.h>Include dependency graph for t_symtab.cpp:

Go to the source code of this file.
Defines | |
| #define | WHERE __WHERE__.s() |
Functions | |
| void | ADD (my_table_def &syms, const istring &name, const istring &to_add) |
| void | FIND (my_table_def &syms, const istring &name, const istring &to_add) |
| void | pack (byte_array &packed_form, const my_table_def &to_pack) |
| bool | unpack (byte_array &packed_form, my_table_def &to_unpack) |
| my_table_def | creatapose () |
| void | test_byte_table () |
| void | ADD2 (second_table_def &syms, const istring &name, const test_content &to_add) |
| void | test_tc_table () |
| int | main (int formal(argc), char *formal(argv)[]) |
Variables | |
| const int | test_iterations = 20 |
| const int | FIND_ITERATIONS = 100 |
| const int | MAXIMUM_RANDOM_ADDS = 200 |
| console_logger | out |
| HOOPLE_STARTUP_CODE | |
| double | time_in_add = 0 |
| double | time_in_dep_find = 0 |
| double | time_in_new_find = 0 |
| double | time_in_pack = 0 |
| double | time_in_unpack = 0 |
| double | time_in_copy = 0 |
| #define WHERE __WHERE__.s() |
Definition at line 47 of file t_symtab.cpp.
Definition at line 72 of file t_symtab.cpp.
References deadly_error, common::EXISTING, istring::length(), negative(), time_stamp::reset(), istring::s(), time_in_add, time_in_dep_find, time_in_new_find, time_stamp::value(), and WHERE.
| void ADD2 | ( | second_table_def & | syms, | |
| const istring & | name, | |||
| const test_content & | to_add | |||
| ) |
Definition at line 364 of file t_symtab.cpp.
References deadly_error, common::EXISTING, negative(), common::OKAY, time_in_add, time_in_dep_find, time_in_new_find, time_stamp::value(), and WHERE.
Referenced by test_tc_table().
| my_table_def creatapose | ( | ) |
Definition at line 157 of file t_symtab.cpp.
References istring::length(), string_manipulation::make_random_name(), MAXIMUM_RANDOM_ADDS, and istring::s().
Referenced by test_byte_table().
Definition at line 100 of file t_symtab.cpp.
References deadly_error, FIND_ITERATIONS, istring::length(), negative(), time_stamp::reset(), istring::s(), time_in_dep_find, time_in_new_find, time_stamp::value(), and WHERE.
| int main | ( | int | formal(argc), | |
| char * | formal(argv)[] | |||
| ) |
Definition at line 508 of file t_symtab.cpp.
References guards::alert_message(), out, istring::SPRINTF, test_byte_table(), test_tc_table(), time_in_add, time_in_dep_find, time_in_new_find, time_in_pack, time_in_unpack, and timestamp().
| void pack | ( | byte_array & | packed_form, | |
| const my_table_def & | to_pack | |||
| ) |
Definition at line 128 of file t_symtab.cpp.
References basis::attach().
Referenced by post_office::deliver_mail_on_route(), symbol_table< contents >::find(), earth_time::time_locus::pack(), SAFE_STATIC_CONST(), string_array(), and test_byte_table().
| void test_byte_table | ( | ) |
Definition at line 173 of file t_symtab.cpp.
References ADD, creatapose(), deadly_error, FIND, LOG, string_manipulation::make_random_name(), MAXIMUM_RANDOM_ADDS, pack(), time_stamp::reset(), istring::SPRINTF, test_iterations, time_in_copy, time_in_pack, time_in_unpack, unpack(), time_stamp::value(), and WHERE.
Referenced by main().
| void test_tc_table | ( | ) |
Definition at line 409 of file t_symtab.cpp.
References ADD2(), deadly_error, LOG, istring::SPRINTF, test_iterations, time_in_copy, time_stamp::value(), and WHERE.
Referenced by main().
| bool unpack | ( | byte_array & | packed_form, | |
| my_table_def & | to_unpack | |||
| ) |
Definition at line 140 of file t_symtab.cpp.
References ADD, basis::detach(), array< contents >::observe(), and istring::unpack().
Referenced by SAFE_STATIC_CONST(), string_array(), and test_byte_table().
| const int FIND_ITERATIONS = 100 |
Definition at line 36 of file t_symtab.cpp.
Definition at line 45 of file t_symtab.cpp.
| const int MAXIMUM_RANDOM_ADDS = 200 |
Definition at line 37 of file t_symtab.cpp.
Definition at line 39 of file t_symtab.cpp.
| const int test_iterations = 20 |
Definition at line 34 of file t_symtab.cpp.
| double time_in_add = 0 |
Definition at line 52 of file t_symtab.cpp.
| double time_in_copy = 0 |
| double time_in_dep_find = 0 |
| double time_in_new_find = 0 |
| double time_in_pack = 0 |
Definition at line 55 of file t_symtab.cpp.
| double time_in_unpack = 0 |
Definition at line 56 of file t_symtab.cpp.
1.5.1