![]() |
RenderMan
26.0
|
Allocator is a utility (fully inlined) class to assist with tedious memory pool allocations. More...
#include <RixLightFilter.h>
Public Member Functions | |
Allocator (RixLightFilterContext const *lfCtx) | |
template<typename T > | |
T * | Allocate (int num) |
Allocator is a utility (fully inlined) class to assist with tedious memory pool allocations.
Uses templates to support the variety of atomic datatypes. Refer to above comments on Allocate for destructor policies.
Usage: RixLightFilterContext::Allocator m(sCtx); float *scmem = m.Allocate<float>(n); // default lifetime float *smem = m.AllocForBxdf<float>(n);
|
inline |
|
inline |
References RixLightFilterContext::Allocate().