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