19 #ifndef __TPIE_INTERNAL_STACK_VECTOR_BASE_H__
20 #define __TPIE_INTERNAL_STACK_VECTOR_BASE_H__
37 template <
typename T,
typename child_t>
96 #endif //__TPIE_INTERNAL_STACK_VECTOR_BASE_H__
Base class of data structures with linear memory usage.
size_t m_size
Number of elements pushed to the structure.
void resize(size_t size=0)
Change the capacity of the structure and clear all elements.
size_t size() const
Return the number of elements in the data structure.
A base class for a generic internal fixed size stack and vector.
void clear()
Clear the data structure of all elements.
Generic internal array with known memory requirements.
static double memory_overhead()
Return the memory overhead of the structure.
Class storring a reference to a memory bucket.
Miscellaneous utility functions.
static double memory_coefficient()
Return the memory coefficient of the structure.
static double memory_coefficient()
Return the memory coefficient of the structure.
void resize(size_t size, const T &elm)
Change the size of the array.
static double memory_overhead()
Return the memory overhead of the structure.
array< T > m_elements
Element storage.
bool empty() const
Check if no elements are currently pushed to the structure.
internal_stack_vector_base(size_t size=0, tpie::memory_bucket_ref b=memory_bucket_ref())
Construct structure with given capacity.