void
dwver_index_table<T>::add (T const &emt)
{
- _m_data.insert (std::make_pair (emt.name (), emt));
+ _m_table.insert (std::make_pair (emt.name (), emt));
}
template <class T>
T const *
dwver_index_table<T>::get (int f) const
{
- typename _map_t::const_iterator it = _m_data.find (f);
- if (it != _m_data.end ())
+ typename _table_t::const_iterator it = _m_table.find (f);
+ if (it != _m_table.end ())
return &it->second;
else
return NULL;
template <class T>
class dwver_index_table
{
- typedef std::map<int, T> _map_t;
- _map_t _m_data;
+ typedef std::map<int, T> _table_t;
+ _table_t _m_table;
protected:
- void add (T const &f);
+ void add (T const &emt);
public:
- T const *get (int f) const;
+ T const *get (int name) const;
};
typedef dwver_index_table<form> form_table;