Halide
12.0.1
Halide compiler and libraries
|
#include <ParamMap.h>
Classes | |
struct | ParamMapping |
Public Member Functions | |
ParamMap ()=default | |
ParamMap (const std::initializer_list< ParamMapping > &init) | |
template<typename T > | |
void | set (const Param< T > &p, T val) |
void | set (const ImageParam &p, const Buffer<> &buf) |
size_t | size () const |
const Internal::Parameter & | map (const Internal::Parameter &p, Buffer<> *&buf_out_param) const |
If there is an entry in the ParamMap for this Parameter, return it. More... | |
Internal::Parameter & | map (Internal::Parameter &p, Buffer<> *&buf_out_param) const |
Static Public Member Functions | |
static const ParamMap & | empty_map () |
A const ref to an empty ParamMap. More... | |
Definition at line 17 of file ParamMap.h.
|
default |
Halide::ParamMap::ParamMap | ( | const std::initializer_list< ParamMapping > & | init | ) |
|
inline |
Definition at line 76 of file ParamMap.h.
References Halide::Param< T >::name(), Halide::Param< T >::parameter(), Halide::Internal::Parameter::set_scalar(), and Halide::Param< T >::type().
|
inline |
Definition at line 85 of file ParamMap.h.
References buf.
|
inline |
Definition at line 89 of file ParamMap.h.
const Internal::Parameter& Halide::ParamMap::map | ( | const Internal::Parameter & | p, |
Buffer<> *& | buf_out_param | ||
) | const |
If there is an entry in the ParamMap for this Parameter, return it.
Otherwise return the parameter itself.
Internal::Parameter& Halide::ParamMap::map | ( | Internal::Parameter & | p, |
Buffer<> *& | buf_out_param | ||
) | const |
|
inlinestatic |
A const ref to an empty ParamMap.
Useful for default function arguments, which would otherwise require a copy constructor (with llvm in c++98 mode)
Definition at line 104 of file ParamMap.h.