20 #ifndef _CCCC_TBL_BODY
21 #define _CCCC_TBL_BODY
27 #define LINE_BUFFER_SIZE 1000
43 T* itemptr=first_item();
55 T* itemptr=first_item();
58 retval+=itemptr->get_count(count_tag);
69 typename map_t::iterator value_iterator=map_t::find(name);
70 if(value_iterator!=map_t::end())
72 retval=(*value_iterator).second;
80 string new_key=new_item_ptr->key();
81 T *retval=find(new_key);
84 typename map_t::value_type new_pair(new_key,new_item_ptr);
85 map_t::insert(new_pair);
96 typename map_t::iterator value_iterator=map_t::find(old_item_ptr->key());
97 if(value_iterator!=map_t::end())
99 this->erase(value_iterator);
115 iter_=map_t::begin();
127 if(iter_!=map_t::end())
129 retval=(*iter_).second;
137 return map_t::size();
140 #endif // _CCCC_TBL_BODY
bool remove(T *old_item_ptr)
virtual int get_count(const char *count_tag)
T * find_or_insert(T *new_item_ptr)