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 37 of file fft.cpp.

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

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: