19 #ifndef __TLM_ARRAY_H__
20 #define __TLM_ARRAY_H__
50 :
private std::vector<T>
52 typedef std::vector<T> base_type;
53 typedef typename base_type::size_type size_type;
57 tlm_array(size_type size = 0, T
const & default_value = T() )
58 : base_type(size,default_value)
72 using base_type::operator[];
75 using base_type::size;
80 if (new_size > size())
82 base_type::resize(new_size);
119 template <
typename T>
void expand(size_type new_size)
void insert_in_cache(T *p)
const char * kind() const
static const char *const kind_string
std::vector< size_type > m_entries
tlm_array & operator=(const tlm_array< T > &)
tlm_array(size_type size=0, T const &default_value=T())