00001 00002 extern "C" 00003 { 00004 #include "_table.h" 00005 } 00006 #include "table.hh" 00007 00008 RCS_TABLE::RCS_TABLE (size_t dsize) 00009 { 00010 table_new (&table, dsize); 00011 } 00012 00013 RCS_TABLE::~RCS_TABLE () 00014 { 00015 table_delete (&table); 00016 } 00017 00018 int 00019 RCS_TABLE::add (unsigned long int key, const void *data) 00020 { 00021 return table_add (&table, key, data); 00022 } 00023 00024 int 00025 RCS_TABLE::get (unsigned long int key, void *data) 00026 { 00027 return table_get (&table, key, data); 00028 } 00029 00030 int 00031 RCS_TABLE::clear (unsigned long int key) 00032 { 00033 return table_clear (&table, key); 00034 } 00035 00036 void 00037 RCS_TABLE::print () 00038 { 00039 table_print (&table); 00040 }