RixLightFilterContext::Allocator Class Reference

RixLightFilterContext::Allocator Class Reference

#include <RixLightFilter.h>

Public Member Functions

 Allocator (RixLightFilterContext const *lfCtx)
 
template<typename T >
T * Allocate (RtInt num)
 

Detailed Description

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); RtFloat *scmem = m.Allocate<RtFloat>(n); // default lifetime RtFloat *smem = m.AllocForBxdf<RtFloat>(n);


The documentation for this class was generated from the following file: