foobar2000 SDK  2015-08-03
Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes
pfc::alloc_standard< t_item >

#include <alloc.h>

Public Types

enum  { alloc_prioritizes_speed = false }
 

Public Member Functions

 alloc_standard ()
 
void force_reset ()
 
const t_item * get_ptr () const
 
t_item * get_ptr ()
 
t_size get_size () const
 
bool is_ptr_owned (const void *p_item) const
 
void move_from (t_self &other)
 
const t_item & operator[] (t_size p_index) const
 
t_item & operator[] (t_size p_index)
 
void prealloc (t_size p_size)
 
void set_size (t_size p_size)
 

Private Types

typedef alloc_standard< t_item > t_self
 

Private Member Functions

 alloc_standard (const t_self &)
 
const t_selfoperator= (const t_self &)
 

Private Attributes

__array_lite_helper_t< t_item > m_content
 

Detailed Description

template<typename t_item>
class pfc::alloc_standard< t_item >

Definition at line 308 of file alloc.h.

Member Typedef Documentation

template<typename t_item >
typedef alloc_standard<t_item> pfc::alloc_standard< t_item >::t_self
private

Definition at line 309 of file alloc.h.

Member Enumeration Documentation

template<typename t_item >
anonymous enum
Enumerator
alloc_prioritizes_speed 

Definition at line 326 of file alloc.h.

Constructor & Destructor Documentation

template<typename t_item >
pfc::alloc_standard< t_item >::alloc_standard ( )
inline

Definition at line 311 of file alloc.h.

311 {}
template<typename t_item >
pfc::alloc_standard< t_item >::alloc_standard ( const t_self )
inlineprivate

Definition at line 330 of file alloc.h.

330 {throw pfc::exception_not_implemented();}

Member Function Documentation

template<typename t_item >
void pfc::alloc_standard< t_item >::force_reset ( )
inline

Definition at line 324 of file alloc.h.

324 {set_size(0);}
void set_size(t_size p_size)
Definition: alloc.h:312
template<typename t_item >
const t_item* pfc::alloc_standard< t_item >::get_ptr ( ) const
inline

Definition at line 319 of file alloc.h.

319 {return m_content.get_ptr();}
__array_lite_helper_t< t_item > m_content
Definition: alloc.h:333
template<typename t_item >
t_item* pfc::alloc_standard< t_item >::get_ptr ( )
inline

Definition at line 320 of file alloc.h.

320 {return m_content.get_ptr();}
__array_lite_helper_t< t_item > m_content
Definition: alloc.h:333
template<typename t_item >
t_size pfc::alloc_standard< t_item >::get_size ( ) const
inline

Definition at line 314 of file alloc.h.

314 {return m_content.get_size();}
__array_lite_helper_t< t_item > m_content
Definition: alloc.h:333
template<typename t_item >
bool pfc::alloc_standard< t_item >::is_ptr_owned ( const void *  p_item) const
inline

Definition at line 322 of file alloc.h.

322 {return m_content.is_ptr_owned(p_item);}
__array_lite_helper_t< t_item > m_content
Definition: alloc.h:333
template<typename t_item >
void pfc::alloc_standard< t_item >::move_from ( t_self other)
inline

Definition at line 328 of file alloc.h.

328 { m_content.move_from(other.m_content); }
__array_lite_helper_t< t_item > m_content
Definition: alloc.h:333
template<typename t_item >
const t_self& pfc::alloc_standard< t_item >::operator= ( const t_self )
inlineprivate

Definition at line 331 of file alloc.h.

331 {throw pfc::exception_not_implemented();}
template<typename t_item >
const t_item& pfc::alloc_standard< t_item >::operator[] ( t_size  p_index) const
inline

Definition at line 316 of file alloc.h.

316 {return m_content[p_index];}
__array_lite_helper_t< t_item > m_content
Definition: alloc.h:333
template<typename t_item >
t_item& pfc::alloc_standard< t_item >::operator[] ( t_size  p_index)
inline

Definition at line 317 of file alloc.h.

317 {return m_content[p_index];}
__array_lite_helper_t< t_item > m_content
Definition: alloc.h:333
template<typename t_item >
void pfc::alloc_standard< t_item >::prealloc ( t_size  p_size)
inline

Definition at line 323 of file alloc.h.

323 {}
template<typename t_item >
void pfc::alloc_standard< t_item >::set_size ( t_size  p_size)
inline

Definition at line 312 of file alloc.h.

312 {m_content.set_size(p_size);}
__array_lite_helper_t< t_item > m_content
Definition: alloc.h:333

Field Documentation

template<typename t_item >
__array_lite_helper_t<t_item> pfc::alloc_standard< t_item >::m_content
private

Definition at line 333 of file alloc.h.


The documentation for this class was generated from the following file: