Blender V5.0
blender::ocio::CPUProcessorCache Class Reference

#include <cpu_processor_cache.hh>

Public Member Functions

 CPUProcessorCache ()=default
 CPUProcessorCache (const CPUProcessorCache &other)=delete
 CPUProcessorCache (CPUProcessorCache &&other) noexcept=default
 ~CPUProcessorCache ()=default
CPUProcessorCacheoperator= (const CPUProcessorCache &other)=delete
CPUProcessorCacheoperator= (CPUProcessorCache &&other)=default
const CPUProcessorget (const std::function< std::unique_ptr< CPUProcessor >()> &create_processor) const

Detailed Description

Definition at line 17 of file cpu_processor_cache.hh.

Constructor & Destructor Documentation

◆ CPUProcessorCache() [1/3]

blender::ocio::CPUProcessorCache::CPUProcessorCache ( )
default

◆ CPUProcessorCache() [2/3]

blender::ocio::CPUProcessorCache::CPUProcessorCache ( const CPUProcessorCache & other)
delete

References CPUProcessorCache().

◆ CPUProcessorCache() [3/3]

blender::ocio::CPUProcessorCache::CPUProcessorCache ( CPUProcessorCache && other)
defaultnoexcept

References CPUProcessorCache().

◆ ~CPUProcessorCache()

blender::ocio::CPUProcessorCache::~CPUProcessorCache ( )
default

Member Function Documentation

◆ get()

const CPUProcessor * blender::ocio::CPUProcessorCache::get ( const std::function< std::unique_ptr< CPUProcessor >()> & create_processor) const
inline

Get cached processor, or create the new one using create_processor() and cache it.

If the create_processor() returns nullptr it is cached as nullptr.

Definition at line 45 of file cpu_processor_cache.hh.

References lock.

◆ operator=() [1/2]

CPUProcessorCache & blender::ocio::CPUProcessorCache::operator= ( const CPUProcessorCache & other)
delete

References CPUProcessorCache().

◆ operator=() [2/2]

CPUProcessorCache & blender::ocio::CPUProcessorCache::operator= ( CPUProcessorCache && other)
default

References CPUProcessorCache().


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