ASAGI
1.0
a pArallel Server for Adaptive GeoInformation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
allocator
default.h
Go to the documentation of this file.
1
38
#ifndef ALLOCATOR_DEFAULT_H
39
#define ALLOCATOR_DEFAULT_H
40
41
#include "
asagi.h
"
42
43
namespace
allocator
44
{
45
49
class
Default
50
{
51
public
:
57
template
<
typename
T>
58
static
asagi::Grid::Error
allocate
(
size_t
size, T* &ptr)
59
{
60
ptr =
new
T[size];
61
return
asagi::Grid::SUCCESS
;
62
}
63
67
template
<
typename
T>
68
static
void
free
(T *ptr)
69
{
70
delete
[] ptr;
71
}
72
};
73
74
}
75
76
#endif
/* ALLOCATOR_DEFAULT_H */
asagi::Grid::Error
Error
Definition:
asagi.h:92
allocator::Default::free
static void free(T *ptr)
Definition:
default.h:68
asagi::Grid::SUCCESS
Definition:
asagi.h:94
asagi.h
Include file for C and C++ API.
allocator::Default
Definition:
default.h:49
allocator::Default::allocate
static asagi::Grid::Error allocate(size_t size, T *&ptr)
Definition:
default.h:58
Generated by
1.8.7