Wiselib
Classes | Public Types | Public Member Functions | Public Attributes
concepts::Allocator_concept Class Reference

Memory allocator. More...

Inherits concepts::BasicReturnValues_concept.

List of all members.

Classes

struct  Ref

Public Types

enum  {
  SUCCESS, ERR_UNSPEC, ERR_NOMEM, ERR_BUSY,
  ERR_NOTIMPL, ERR_NETDOWN, ERR_HOSTUNREACH
}
enum  StateValues { READY, NO_VALUE, INACTIVE }

Public Member Functions

template<typename T >
struct
concepts::Allocator_concept::Ref 
allocate ()
template<typename T >
Ref< T >::pointer_t allocate_array (OsModel::size_t n)
template<typename T >
int free (typename Ref< T >::pointer_t)
template<typename T >
int free_array (typename Ref< T >::pointer_t)

Public Attributes

typedef OsModel
typedef self_type

Detailed Description

Memory allocator.


Member Enumeration Documentation

anonymous enum [inherited]
Enumerator:
SUCCESS 

Default return value of success.

ERR_UNSPEC 

Unspecified error value - if no other fits.

ERR_NOMEM 

Out of memory.

ERR_BUSY 

Device or resource busy - try again later.

ERR_NOTIMPL 

Function not implemented.

ERR_NETDOWN 

Network is down.

ERR_HOSTUNREACH 

No route to host.

Enumerator:
READY 

Ready for asking for data.

NO_VALUE 

Currently no data available.

INACTIVE 

Currently inactive - so no values available.


Member Function Documentation

template<typename T >
struct concepts::Allocator_concept::Ref concepts::Allocator_concept::allocate ( )
template<typename T >
Ref<T>::pointer_t concepts::Allocator_concept::allocate_array ( OsModel::size_t  n)
template<typename T >
int concepts::Allocator_concept::free ( typename Ref< T >::pointer_t  )
template<typename T >
int concepts::Allocator_concept::free_array ( typename Ref< T >::pointer_t  )

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines