FastLED 3.9.15
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages

◆ get_or_create()

FFTImpl & fl::FFT::get_or_create ( const FFT_Args & args)
private

Definition at line 36 of file fft.cpp.

36 {
37 Ptr<FFTImpl> *val = mMap->find_value(args);
38 if (val) {
39 // we have it.
40 return **val;
41 }
42 // else we have to make a new one.
43 Ptr<FFTImpl> fft = NewPtr<FFTImpl>(args);
44 (*mMap)[args] = fft;
45 return *fft;
46}
corkscrew_args args
AudioAnalyzeFFT1024 fft
scoped_ptr< HashMap > mMap
Definition fft.h:89
Ptr< T > NewPtr(Args... args)
Definition ptr.h:451

References args, fft, mMap, and fl::NewPtr().

Referenced by run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: