#include <sqratAllocator.h>
|
static SQInteger | New (HSQUIRRELVM vm) |
|
static SQInteger | Copy (HSQUIRRELVM vm, SQInteger idx, const void *value) |
|
static SQInteger | Delete (SQUserPointer ptr, SQInteger size) |
|
template<class C>
class Sqrat::CopyOnly< C >
CopyOnly is the allocator to use for Class that can be copied but not constructed
- Template Parameters
-
template<class C >
static SQInteger Sqrat::CopyOnly< C >::Copy |
( |
HSQUIRRELVM |
vm, |
|
|
SQInteger |
idx, |
|
|
const void * |
value |
|
) |
| |
|
inlinestatic |
Called by Sqrat to set up the instance at idx on the stack as a copy of a value of the same type
- Parameters
-
vm | VM that has an instance object of the correct type at idx |
idx | Index of the stack that the instance object is at |
value | A pointer to data of the same type as the instance object |
- Returns
- Squirrel error code
template<class C >
static SQInteger Sqrat::CopyOnly< C >::Delete |
( |
SQUserPointer |
ptr, |
|
|
SQInteger |
size |
|
) |
| |
|
inlinestatic |
Called by Sqrat to delete an instance's data
- Parameters
-
ptr | Pointer to the data contained by the instance |
size | Size of the data contained by the instance |
- Returns
- Squirrel error code
Called by Sqrat to set up an instance on the stack for the template class (not allowed in this allocator)
- Parameters
-
vm | VM that has an instance object of the correct type at position 1 in its stack |
- Returns
- Squirrel error code
The documentation for this class was generated from the following file:
- /media/drive2/atai/software_projects/sqrat/sqrat.git/include/sqrat/sqratAllocator.h