SHOGUN  v2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
memory.h File Reference

Go to the source code of this file.

Macros

#define SG_MALLOC(type, len)   (type*) sg_malloc(sizeof(type)*size_t(len))
#define SG_MALLOC(type, len)   (type*) sg_malloc(sizeof(type)*size_t(len))
#define SG_CALLOC(type, len)   (type*) sg_calloc(size_t(len), sizeof(type))
#define SG_REALLOC(type, ptr, len)   (type*) sg_realloc(ptr, sizeof(type)*size_t(len))
#define SG_FREE(ptr)   sg_free(ptr)

Functions

void * sg_malloc (size_t size)
void sg_free (void *ptr)
void * sg_realloc (void *ptr, size_t size)
void * sg_calloc (size_t num, size_t size)
void * operator new (size_t size) throw (std::bad_alloc)
void operator delete (void *p) throw ()
void * operator new[] (size_t size) throw (std::bad_alloc)
void operator delete[] (void *p) throw ()

Macro Definition Documentation

#define SG_CALLOC (   type,
  len 
)    (type*) sg_calloc(size_t(len), sizeof(type))

Definition at line 37 of file memory.h.

#define SG_FREE (   ptr)    sg_free(ptr)

Definition at line 39 of file memory.h.

#define SG_MALLOC (   type,
  len 
)    (type*) sg_malloc(sizeof(type)*size_t(len))

Definition at line 36 of file memory.h.

#define SG_MALLOC (   type,
  len 
)    (type*) sg_malloc(sizeof(type)*size_t(len))

Definition at line 36 of file memory.h.

#define SG_REALLOC (   type,
  ptr,
  len 
)    (type*) sg_realloc(ptr, sizeof(type)*size_t(len))

Definition at line 38 of file memory.h.

Function Documentation

void operator delete ( void *  p) throw ()

Definition at line 103 of file memory.cpp.

void operator delete[] ( void *  p) throw ()

Definition at line 135 of file memory.cpp.

void* operator new ( size_t  size) throw (std::bad_alloc)

Definition at line 81 of file memory.cpp.

void* operator new[] ( size_t  size) throw (std::bad_alloc)

Definition at line 112 of file memory.cpp.

void* sg_calloc ( size_t  num,
size_t  size 
)

Definition at line 171 of file memory.cpp.

void sg_free ( void *  ptr)

Definition at line 200 of file memory.cpp.

void* sg_malloc ( size_t  size)

Definition at line 144 of file memory.cpp.

void* sg_realloc ( void *  ptr,
size_t  size 
)

Definition at line 209 of file memory.cpp.


SHOGUN Machine Learning Toolbox - Documentation