Comprehensive Guide for Developers: Features, Integration, and API Reference
Represents a function that maps input values to output values. More...
#include <pdfsdk/cxx/function.h>
Public Member Functions | |
| Object | GetPdfObject () const |
| Get the PDF object associated with this function. | |
| size_t | GetNumInputs () const |
| Get the number of input values. | |
| 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. | |
| Function (PDEFunction handle, bool adopt=false) noexcept | |
| Function (const Function &rhs) noexcept | |
| Function & | operator= (const Function &rhs) noexcept |
| Function (Function &&rhs) noexcept | |
| Function & | operator= (Function &&rhs) noexcept |
Static Public Member Functions | |
| static Function | CreateFromPdfObject (const Object &object) |
| Creates a function from the specified PDF object. | |
Represents a function that maps input values to output values.
ISO 32000-2:2020 - 7.10 Functions
|
static |
Creates a function from the specified PDF object.
| object | The PDF object. |
| std::vector< float > PDF::Function::Execute | ( | std::span< const float > | inputs | ) |
Evaluates the function for the specified input values.
| [in] | inputs | The input values; at least GetNumInputs() of them. |
| void PDF::Function::Execute | ( | std::span< const float > | inputs, |
| std::span< float > | outputs ) |
Evaluates the function, writing the result into a caller-provided buffer.
Avoids allocating the output buffer on every call; prefer it in hot loops. Hidden from language bindings, which use the returning overload above.
| [in] | inputs | The input values; at least GetNumInputs() of them. |
| [out] | outputs | The output buffer; at least GetNumOutputs() long. |
| size_t PDF::Function::GetNumInputs | ( | ) | const |
Get the number of input values.
| size_t PDF::Function::GetNumOutputs | ( | ) | const |
Get the number of output values.
| Object PDF::Function::GetPdfObject | ( | ) | const |
Get the PDF object associated with this function.