Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

DataAllocator.h File Reference

#include <stdio.h>
#include <iostream>
#include "base/array_t.h"
#include "base/c_allocator.h"
#include "base/Object.h"

Go to the source code of this file.

Namespaces

namespace  base

Functions

int32_t * base_allocate (size_t size, void *allocator)
 C wrapper function for DataAllocator.
void base_deallocate (void *mem, size_t intSize, void *allocator)
 C wrapper function for DataAllocator.
int32_t * base_new (size_t size, void *unused)
 C wrapper function for new.
void base_delete (void *mem, size_t unused1, void *unused2)
 C wrapper function for delete.
static std::ostream & operator<< (std::ostream &os, const base::DataAllocator &alloc)

Variables

allocator_t base_newallocator
 C wrapper allocator instance for new.


Function Documentation

int32_t* base_allocate size_t  size,
void *  allocator
 

C wrapper function for DataAllocator.

See also:
dbm/mingraph.h
Parameters:
size,: size in int to allocate.
allocator,: a pointer to DataAllocator

void base_deallocate void *  mem,
size_t  intSize,
void *  allocator
 

C wrapper function for DataAllocator.

See also:
base/c_allocator.h
Parameters:
mem,: memory to deallocate
intSize,: size in int to deallocate
allocator,: DataAllocator object
Precondition:
memory was allocated with base_allocate and intSize corresponds to the allocated size.

void base_delete void *  mem,
size_t  unused1,
void *  unused2
 

C wrapper function for delete.

See also:
base/c_allocator.h
Parameters:
mem,: memory to deallocate.
unused1,unused2,: unused parameters.

int32_t* base_new size_t  size,
void *  unused
 

C wrapper function for new.

See also:
dbm/mingraph.h, base/c_allocator.h
Parameters:
size,: size in int to allocate.
unused,: unused.

static std::ostream& operator<< std::ostream &  os,
const base::DataAllocator alloc
[inline, static]
 


Variable Documentation

allocator_t base_newallocator
 

C wrapper allocator instance for new.


Generated on Fri Jun 30 00:02:30 2006 for Module base by  doxygen 1.4.2