Halide::Internal::GeneratorParamImpl< T > Class Template Reference

#include <Generator.h>

Inherits Halide::Internal::GeneratorParamBase.

Inherited by Halide::Internal::GeneratorParam_Arithmetic< T >, Halide::Internal::GeneratorParam_Enum< T >, Halide::Internal::GeneratorParam_MachineParams< T >, Halide::Internal::GeneratorParam_String< T >, Halide::Internal::GeneratorParam_Synthetic< T >, and Halide::Internal::GeneratorParam_Target< T >.

Public Types

using type = T

Public Member Functions

 GeneratorParamImpl (const std::string &name, const T &value)
value () const
 operator T () const
 operator Expr () const
void set (const std::string &new_value)
- Public Member Functions inherited from Halide::Internal::GeneratorParamBase
 GeneratorParamBase (const std::string &name)
virtual ~GeneratorParamBase ()
void set (const std::string &new_value)
void set (const char *new_value)

Protected Member Functions

virtual void set_impl (const T &new_value)
- Protected Member Functions inherited from Halide::Internal::GeneratorParamBase
void check_value_readable () const
void check_value_writable () const
virtual void set_from_string (const std::string &value_string)=0
virtual std::string call_to_string (const std::string &v) const =0
virtual std::string get_c_type () const =0
virtual std::string get_type_decls () const
virtual std::string get_default_value () const =0
virtual bool is_synthetic_param () const
virtual bool is_looplevel_param () const
void fail_wrong_type (const char *type)

Protected Attributes


Additional Inherited Members

- Public Attributes inherited from Halide::Internal::GeneratorParamBase
const std::string name

Detailed Description

template<typename T>
class Halide::Internal::GeneratorParamImpl< T >

Definition at line 498 of file Generator.h.

Member Typedef Documentation

◆ type

template<typename T >
using Halide::Internal::GeneratorParamImpl< T >::type = T

Definition at line 500 of file Generator.h.

Constructor & Destructor Documentation

◆ GeneratorParamImpl()

template<typename T >
Halide::Internal::GeneratorParamImpl< T >::GeneratorParamImpl ( const std::string &  name,
const T &  value 

Definition at line 502 of file Generator.h.

Member Function Documentation

◆ value()

◆ operator T()

template<typename T >
Halide::Internal::GeneratorParamImpl< T >::operator T ( ) const

Definition at line 511 of file Generator.h.

References Halide::Internal::GeneratorParamImpl< T >::value().

◆ operator Expr()

template<typename T >
Halide::Internal::GeneratorParamImpl< T >::operator Expr ( ) const

Definition at line 515 of file Generator.h.

◆ set()

◆ set_impl()

Member Data Documentation

◆ value_

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