sqrat  0.9
sqrat
 All Classes Functions Variables Enumerations Enumerator Pages
Static Public Member Functions | List of all members
Sqrat::CopyOnly< C > Class Template Reference

#include <sqratAllocator.h>

Static Public Member Functions

static SQInteger New (HSQUIRRELVM vm)
 
static SQInteger Copy (HSQUIRRELVM vm, SQInteger idx, const void *value)
 
static SQInteger Delete (SQUserPointer ptr, SQInteger size)
 

Detailed Description

template<class C>
class Sqrat::CopyOnly< C >

CopyOnly is the allocator to use for Class that can be copied but not constructed

Template Parameters
CType of class

Member Function Documentation

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
vmVM that has an instance object of the correct type at idx
idxIndex of the stack that the instance object is at
valueA 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
ptrPointer to the data contained by the instance
sizeSize of the data contained by the instance
Returns
Squirrel error code
template<class C >
static SQInteger Sqrat::CopyOnly< C >::New ( HSQUIRRELVM  vm)
inlinestatic

Called by Sqrat to set up an instance on the stack for the template class (not allowed in this allocator)

Parameters
vmVM 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: