Stefan Scholz / ETL
Embed: (wiki syntax)

« Back to documentation index

memory

Data Structures

struct  create_copy< T >
 Copy constructs a derived class to an address. More...

Functions

template<typename T >
T * addressof (T &t)
 Gets the address of an object.
template<typename TOutputIterator , typename T >
etl::enable_if
< etl::is_trivially_constructible
< typename
std::iterator_traits
< TOutputIterator >
::value_type >::value,
TOutputIterator >::type 
uninitialized_fill (TOutputIterator o_begin, TOutputIterator o_end, const T &value)
 Fills uninitialised memory range with a value.
template<typename TOutputIterator , typename T , typename TCounter >
etl::enable_if
< etl::is_trivially_constructible
< typename
std::iterator_traits
< TOutputIterator >
::value_type >::value,
TOutputIterator >::type 
uninitialized_fill (TOutputIterator o_begin, TOutputIterator o_end, const T &value, TCounter &count)
 Fills uninitialised memory range with a value.
template<typename TOutputIterator , typename TSize , typename T >
TOutputIterator uninitialized_fill_n (TOutputIterator o_begin, TSize n, const T &value)
 Fills uninitialised memory with N values.
template<typename TOutputIterator , typename TSize , typename T , typename TCounter >
TOutputIterator uninitialized_fill_n (TOutputIterator o_begin, TSize n, const T &value, TCounter &count)
 Fills uninitialised memory with N values.
template<typename TInputIterator , typename TOutputIterator >
etl::enable_if
< etl::is_trivially_constructible
< typename
std::iterator_traits
< TOutputIterator >
::value_type >::value,
TOutputIterator >::type 
uninitialized_copy (TInputIterator i_begin, TInputIterator i_end, TOutputIterator o_begin)
 Copies a range of objects to uninitialised memory.
template<typename TInputIterator , typename TOutputIterator , typename TCounter >
etl::enable_if
< etl::is_trivially_constructible
< typename
std::iterator_traits
< TOutputIterator >
::value_type >::value,
TOutputIterator >::type 
uninitialized_copy (TInputIterator i_begin, TInputIterator i_end, TOutputIterator o_begin, TCounter &count)
 Copies a range of objects to uninitialised memory.
template<typename TInputIterator , typename TSize , typename TOutputIterator >
TOutputIterator uninitialized_copy_n (TInputIterator i_begin, TSize n, TOutputIterator o_begin)
 Copies N objects to uninitialised memory.
template<typename TInputIterator , typename TSize , typename TOutputIterator , typename TCounter >
TOutputIterator uninitialized_copy_n (TInputIterator i_begin, TSize n, TOutputIterator o_begin, TCounter &count)
 Copies N objects to uninitialised memory.
template<typename T >
etl::enable_if
< etl::is_trivially_constructible
< T >::value, void >::type 
create_default_at (T *)
 Default contruct an item at address p.
template<typename T , typename TCounter >
etl::enable_if
< etl::is_trivially_constructible
< T >::value, void >::type 
create_default_at (T *, TCounter &count)
 Default contruct an item at address p.
template<typename TOutputIterator >
etl::enable_if
< etl::is_trivially_constructible
< typename
std::iterator_traits
< TOutputIterator >
::value_type >::value, void >
::type 
uninitialized_default_construct (TOutputIterator, TOutputIterator)
 Default initialises a range of objects to uninitialised memory.
template<typename TOutputIterator , typename TCounter >
etl::enable_if
< etl::is_trivially_constructible
< typename
std::iterator_traits
< TOutputIterator >
::value_type >::value, void >
::type 
uninitialized_default_construct (TOutputIterator o_begin, TOutputIterator o_end, TCounter &count)
 Default initialises a range of objects to uninitialised memory.
template<typename TOutputIterator , typename TSize >
etl::enable_if
< etl::is_trivially_constructible
< typename
std::iterator_traits
< TOutputIterator >
::value_type >::value,
TOutputIterator >::type 
uninitialized_default_construct_n (TOutputIterator o_begin, TSize n)
 Default initialises N objects to uninitialised memory.
template<typename TOutputIterator , typename TSize , typename TCounter >
etl::enable_if
< etl::is_trivially_constructible
< typename
std::iterator_traits
< TOutputIterator >
::value_type >::value,
TOutputIterator >::type 
uninitialized_default_construct_n (TOutputIterator o_begin, TSize n, TCounter &count)
 Default initialises N objects to uninitialised memory.
template<typename T >
void create_value_at (T *p)
 Value construct an item at address p.
template<typename T , typename TCounter >
void create_value_at (T *p, TCounter &count)
 Value construct an item at address p.
template<typename T >
void create_copy_at (T *p, const T &value)
 Copy construct an item at address p.
template<typename T , typename TCounter >
void create_copy_at (T *p, const T &value, TCounter &count)
 Copy construct an item at address p.
template<typename T >
T & make_default_at (T *p)
 Construct an item at address p.
template<typename T , typename TCounter >
T & make_default_at (T *p, TCounter &count)
 Construct an item at address p.
template<typename T >
T & make_copy_at (T *p, const T &other)
 Construct an item at address p.
template<typename T , typename TCounter >
T & make_copy_at (T *p, const T &other, TCounter &count)
 Construct an item at address p.
template<typename T , typename TParameter >
T & make_value_at (T *p, const TParameter &value)
 Construct an item at address p.
template<typename T , typename TParameter , typename TCounter >
T & make_value_at (T *p, const TParameter &value, TCounter &count)
 Construct an item at address p.
template<typename TOutputIterator >
etl::enable_if
< etl::is_trivially_constructible
< typename
std::iterator_traits
< TOutputIterator >
::value_type >::value, void >
::type 
uninitialized_value_construct (TOutputIterator o_begin, TOutputIterator o_end)
 Default initialises a range of objects to uninitialised memory.
template<typename TOutputIterator , typename TCounter >
void uninitialized_value_construct (TOutputIterator o_begin, TOutputIterator o_end, TCounter &count)
 Default initialises a range of objects to uninitialised memory.
template<typename TOutputIterator , typename TSize >
TOutputIterator uninitialized_value_construct_n (TOutputIterator o_begin, TSize n)
 Default initialises N objects to uninitialised memory.
template<typename TOutputIterator , typename TSize , typename TCounter >
TOutputIterator uninitialized_value_construct_n (TOutputIterator o_begin, TSize n, TCounter &count)
 Default initialises N objects to uninitialised memory.
template<typename T >
etl::enable_if
< etl::is_trivially_destructible
< T >::value, void >::type 
destroy_at (T *)
 Destroys an item at address p.
template<typename T , typename TCounter >
etl::enable_if
< etl::is_trivially_destructible
< T >::value, void >::type 
destroy_at (T *, TCounter &count)
 Destroys an item at address p.
template<typename TIterator >
etl::enable_if
< etl::is_trivially_destructible
< typename
std::iterator_traits
< TIterator >::value_type >
::value, void >::type 
destroy (TIterator, TIterator)
 Destroys a range of items.
template<typename TIterator , typename TCounter >
etl::enable_if
< etl::is_trivially_destructible
< typename
std::iterator_traits
< TIterator >::value_type >
::value, void >::type 
destroy (TIterator i_begin, TIterator i_end, TCounter &count)
 Destroys a range of items.
template<typename TIterator , typename TSize >
etl::enable_if
< etl::is_trivially_destructible
< typename
std::iterator_traits
< TIterator >::value_type >
::value, TIterator >::type 
destroy_n (TIterator i_begin, TSize n)
 Destroys a number of items.
template<typename TIterator , typename TSize , typename TCounter >
etl::enable_if
< etl::is_trivially_destructible
< typename
std::iterator_traits
< TIterator >::value_type >
::value, TIterator >::type 
destroy_n (TIterator i_begin, TSize n, TCounter &count)
 Destroys a number of items.

Function Documentation

T* etl::addressof ( T &  t )

Gets the address of an object.

Definition at line 49 of file memory.h.

void etl::create_copy_at ( T *  p,
const T &  value 
)

Copy construct an item at address p.

Definition at line 413 of file memory.h.

void etl::create_copy_at ( T *  p,
const T &  value,
TCounter &  count 
)

Copy construct an item at address p.

Definition at line 423 of file memory.h.

etl::enable_if<!etl::is_trivially_constructible< T >::value, void >::type create_default_at ( T *  p )

Default contruct an item at address p.

Definition at line 234 of file memory.h.

etl::enable_if<!etl::is_trivially_constructible< T >::value, void >::type create_default_at ( T *  p,
TCounter &  count 
)

Default contruct an item at address p.

Definition at line 244 of file memory.h.

void etl::create_value_at ( T *  p,
TCounter &  count 
)

Value construct an item at address p.

Definition at line 402 of file memory.h.

void etl::create_value_at ( T *  p )

Value construct an item at address p.

Definition at line 392 of file memory.h.

etl::enable_if<!etl::is_trivially_destructible< typename std::iterator_traits< TIterator >::value_type >::value, void >::type destroy ( TIterator  i_begin,
TIterator  i_end 
)

Destroys a range of items.

Definition at line 624 of file memory.h.

etl::enable_if<!etl::is_trivially_destructible< typename std::iterator_traits< TIterator >::value_type >::value, void >::type destroy ( TIterator  i_begin,
TIterator  i_end,
TCounter &  count 
)

Destroys a range of items.

Debug counter version.

Definition at line 650 of file memory.h.

etl::enable_if<!etl::is_trivially_destructible< T >::value, void >::type destroy_at ( T *  p )

Destroys an item at address p.

Definition at line 578 of file memory.h.

etl::enable_if<!etl::is_trivially_destructible< T >::value, void >::type destroy_at ( T *  p,
TCounter &  count 
)

Destroys an item at address p.

Debug counter version.

Definition at line 600 of file memory.h.

etl::enable_if<!etl::is_trivially_destructible< typename std::iterator_traits< TIterator >::value_type >::value, TIterator >::type destroy_n ( TIterator  i_begin,
TSize  n 
)

Destroys a number of items.

Definition at line 679 of file memory.h.

etl::enable_if<!etl::is_trivially_destructible< typename std::iterator_traits< TIterator >::value_type >::value, TIterator >::type destroy_n ( TIterator  i_begin,
TSize  n,
TCounter &  count 
)

Destroys a number of items.

Debug counter version.

Definition at line 709 of file memory.h.

T& etl::make_copy_at ( T *  p,
const T &  other 
)

Construct an item at address p.

Definition at line 457 of file memory.h.

T& etl::make_copy_at ( T *  p,
const T &  other,
TCounter &  count 
)

Construct an item at address p.

Definition at line 468 of file memory.h.

T& etl::make_default_at ( T *  p )

Construct an item at address p.

Definition at line 434 of file memory.h.

T& etl::make_default_at ( T *  p,
TCounter &  count 
)

Construct an item at address p.

Definition at line 445 of file memory.h.

T& etl::make_value_at ( T *  p,
const TParameter &  value,
TCounter &  count 
)

Construct an item at address p.

Definition at line 491 of file memory.h.

T& etl::make_value_at ( T *  p,
const TParameter &  value 
)

Construct an item at address p.

Definition at line 480 of file memory.h.

etl::enable_if<!etl::is_trivially_constructible< typename std::iterator_traits< TOutputIterator >::value_type >::value, TOutputIterator >::type uninitialized_copy ( TInputIterator  i_begin,
TInputIterator  i_end,
TOutputIterator  o_begin,
TCounter &  count 
)

Copies a range of objects to uninitialised memory.

Debug counter version.

Definition at line 181 of file memory.h.

etl::enable_if<!etl::is_trivially_constructible< typename std::iterator_traits< TOutputIterator >::value_type >::value, TOutputIterator >::type uninitialized_copy ( TInputIterator  i_begin,
TInputIterator  i_end,
TOutputIterator  o_begin 
)

Copies a range of objects to uninitialised memory.

Definition at line 147 of file memory.h.

TOutputIterator etl::uninitialized_copy_n ( TInputIterator  i_begin,
TSize  n,
TOutputIterator  o_begin,
TCounter &  count 
)

Copies N objects to uninitialised memory.

Debug counter version.

Definition at line 221 of file memory.h.

TOutputIterator etl::uninitialized_copy_n ( TInputIterator  i_begin,
TSize  n,
TOutputIterator  o_begin 
)

Copies N objects to uninitialised memory.

Definition at line 210 of file memory.h.

etl::enable_if<!etl::is_trivially_constructible< typename std::iterator_traits< TOutputIterator >::value_type >::value, void >::type uninitialized_default_construct ( TOutputIterator  o_begin,
TOutputIterator  o_end 
)

Default initialises a range of objects to uninitialised memory.

Definition at line 278 of file memory.h.

etl::enable_if<!etl::is_trivially_constructible< typename std::iterator_traits< TOutputIterator >::value_type >::value, void >::type uninitialized_default_construct ( TOutputIterator  o_begin,
TOutputIterator  o_end,
TCounter &  count 
)

Default initialises a range of objects to uninitialised memory.

Debug counter version.

Definition at line 306 of file memory.h.

etl::enable_if<!etl::is_trivially_constructible< typename std::iterator_traits< TOutputIterator >::value_type >::value, TOutputIterator >::type uninitialized_default_construct_n ( TOutputIterator  o_begin,
TSize  n,
TCounter &  count 
)

Default initialises N objects to uninitialised memory.

Debug counter version.

Definition at line 360 of file memory.h.

etl::enable_if<!etl::is_trivially_constructible< typename std::iterator_traits< TOutputIterator >::value_type >::value, TOutputIterator >::type uninitialized_default_construct_n ( TOutputIterator  o_begin,
TSize  n 
)

Default initialises N objects to uninitialised memory.

Definition at line 331 of file memory.h.

etl::enable_if<!etl::is_trivially_constructible< typename std::iterator_traits< TOutputIterator >::value_type >::value, TOutputIterator >::type uninitialized_fill ( TOutputIterator  o_begin,
TOutputIterator  o_end,
const T &  value 
)

Fills uninitialised memory range with a value.

Definition at line 60 of file memory.h.

etl::enable_if<!etl::is_trivially_constructible< typename std::iterator_traits< TOutputIterator >::value_type >::value, TOutputIterator >::type uninitialized_fill ( TOutputIterator  o_begin,
TOutputIterator  o_end,
const T &  value,
TCounter &  count 
)

Fills uninitialised memory range with a value.

Debug counter version.

Definition at line 93 of file memory.h.

TOutputIterator etl::uninitialized_fill_n ( TOutputIterator  o_begin,
TSize  n,
const T &  value,
TCounter &  count 
)

Fills uninitialised memory with N values.

Debug counter version.

Definition at line 134 of file memory.h.

TOutputIterator etl::uninitialized_fill_n ( TOutputIterator  o_begin,
TSize  n,
const T &  value 
)

Fills uninitialised memory with N values.

Definition at line 123 of file memory.h.

etl::enable_if<!etl::is_trivially_constructible< typename std::iterator_traits< TOutputIterator >::value_type >::value, void >::type uninitialized_value_construct ( TOutputIterator  o_begin,
TOutputIterator  o_end 
)

Default initialises a range of objects to uninitialised memory.

Definition at line 504 of file memory.h.

void etl::uninitialized_value_construct ( TOutputIterator  o_begin,
TOutputIterator  o_end,
TCounter &  count 
)

Default initialises a range of objects to uninitialised memory.

Debug counter version.

Definition at line 534 of file memory.h.

TOutputIterator etl::uninitialized_value_construct_n ( TOutputIterator  o_begin,
TSize  n,
TCounter &  count 
)

Default initialises N objects to uninitialised memory.

Debug counter version.

Definition at line 561 of file memory.h.

TOutputIterator etl::uninitialized_value_construct_n ( TOutputIterator  o_begin,
TSize  n 
)

Default initialises N objects to uninitialised memory.

Definition at line 546 of file memory.h.