Blender V4.3
blender::fn::lazy_function::RemappedParams Class Reference

#include <FN_lazy_function_execute.hh>

Inherits blender::fn::lazy_function::Params.

Public Member Functions

RemappedParams.
 RemappedParams (const LazyFunction &fn, Params &base_params, Span< int > input_map, Span< int > output_map, bool &multi_threading_enabled)
 
void * try_get_input_data_ptr_impl (const int index) const override
 
void * try_get_input_data_ptr_or_request_impl (const int index) override
 
void * get_output_data_ptr_impl (const int index) override
 
void output_set_impl (const int index) override
 
bool output_was_set_impl (const int index) const override
 
ValueUsage get_output_usage_impl (const int index) const override
 
void set_input_unused_impl (const int index) override
 
bool try_enable_multi_threading_impl () override
 
- Public Member Functions inherited from blender::fn::lazy_function::Params
 Params (const LazyFunction &fn, bool allow_multi_threading_initially)
 
void * try_get_input_data_ptr (int index) const
 
void * try_get_input_data_ptr_or_request (int index)
 
void * get_output_data_ptr (int index)
 
void output_set (int index)
 
bool output_was_set (int index) const
 
ValueUsage get_output_usage (int index) const
 
void set_input_unused (int index)
 
template<typename T >
T extract_input (int index)
 
template<typename T >
Tget_input (int index) const
 
template<typename T >
Ttry_get_input_data_ptr (int index) const
 
template<typename T >
Ttry_get_input_data_ptr_or_request (int index)
 
template<typename T >
void set_output (int index, T &&value)
 
bool try_enable_multi_threading ()
 

Additional Inherited Members

- Public Attributes inherited from blender::fn::lazy_function::Params
const LazyFunctionfn_
 
std::thread::id main_thread_id_
 
std::atomic< bool > allow_multi_threading_
 

Detailed Description

Wraps an existing Params. This should be used when a lazy-function internally contains another lazy-function that handles a subset or the inputs and outputs.

Definition at line 53 of file FN_lazy_function_execute.hh.

Constructor & Destructor Documentation

◆ RemappedParams()

blender::fn::lazy_function::RemappedParams::RemappedParams ( const LazyFunction & fn,
Params & base_params,
Span< int > input_map,
Span< int > output_map,
bool & multi_threading_enabled )

Definition at line 82 of file lazy_function_execute.cc.

Member Function Documentation

◆ get_output_data_ptr_impl()

void * blender::fn::lazy_function::RemappedParams::get_output_data_ptr_impl ( const int index)
overridevirtual

◆ get_output_usage_impl()

lf::ValueUsage blender::fn::lazy_function::RemappedParams::get_output_usage_impl ( const int index) const
overridevirtual

◆ output_set_impl()

void blender::fn::lazy_function::RemappedParams::output_set_impl ( const int index)
overridevirtual

◆ output_was_set_impl()

bool blender::fn::lazy_function::RemappedParams::output_was_set_impl ( const int index) const
overridevirtual

◆ set_input_unused_impl()

void blender::fn::lazy_function::RemappedParams::set_input_unused_impl ( const int index)
overridevirtual

◆ try_enable_multi_threading_impl()

bool blender::fn::lazy_function::RemappedParams::try_enable_multi_threading_impl ( )
overridevirtual

◆ try_get_input_data_ptr_impl()

void * blender::fn::lazy_function::RemappedParams::try_get_input_data_ptr_impl ( const int index) const
overridevirtual

Methods that need to be implemented by subclasses. Those are separate from the non-virtual methods above to make it easy to insert additional debugging logic on top of the implementations.

Implements blender::fn::lazy_function::Params.

Definition at line 95 of file lazy_function_execute.cc.

References blender::fn::lazy_function::Params::try_get_input_data_ptr().

◆ try_get_input_data_ptr_or_request_impl()

void * blender::fn::lazy_function::RemappedParams::try_get_input_data_ptr_or_request_impl ( const int index)
overridevirtual

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