 |
Shiokaze Framework
A research-oriented fluid solver for computer graphics
|
|
Go to the documentation of this file.
25 #ifndef SHKZ_SHARED_ARRAY_CORE2_H
26 #define SHKZ_SHARED_ARRAY_CORE2_H
54 static void *
borrow_shared(
const shape2 &shape,
size_t class_hash, std::string core_name, std::function<
void *(
const shape2 &shape, std::string core_name)> alloc_func, std::function<
void(
void *ptr )> dealloc_func );
66 static size_t clear();
Abstract storage class that enables sharing pre-allocated arrays.
Definition: shared_array_core2.h:36
static void * borrow_shared(const shape2 &shape, size_t class_hash, std::string core_name, std::function< void *(const shape2 &shape, std::string core_name)> alloc_func, std::function< void(void *ptr)> dealloc_func)
Borrow a shared array.
#define SHKZ_BEGIN_NAMESPACE
Name space beggining definition for shiokaze.
Definition: common.h:39
static void return_shared(void *array)
Return a borrowed array.
Structure that defines shape such as width, height.
Definition: shape.h:42
#define SHKZ_END_NAMESPACE
Name space end definition for shiokaze.
Definition: common.h:44
static size_t clear()
Clear grid storage.
static size_t get_total_grid_count()
Get the number of current shared arrays.