3#ifndef PDFSDK_CXX_PDF_FUNCTION_H_INCLUDED_
4#define PDFSDK_CXX_PDF_FUNCTION_H_INCLUDED_
9#include "wrapper_base.h"
18class Function :
public detail::RefCountedHandle<PDEFunction> {
55 void Execute(std::span<const float> inputs, std::span<float> outputs);
63 std::vector<float>
Execute(std::span<const float> inputs);
65 PDF_CXX_CORE_WRAPPER_DEFINE_MEMBERS_(Function, PDEFunction)
70#include "function_impl.inl"
size_t GetNumInputs() const
Get the number of input values.
Object GetPdfObject() const
Get the PDF object associated with this function.
size_t GetNumOutputs() const
Get the number of output values.
void Execute(std::span< const float > inputs, std::span< float > outputs)
Evaluates the function, writing the result into a caller-provided buffer.
std::vector< float > Execute(std::span< const float > inputs)
Evaluates the function for the specified input values.
static Function CreateFromPdfObject(const Object &object)
Creates a function from the specified PDF object.
Represents a PDF object.
Definition object.h:25