Halide
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_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 ()
 
const std::string & name () const
 
void set (const std::string &new_value)
 
void set (const char *new_value)
 
 GeneratorParamBase (const GeneratorParamBase &)=delete
 
GeneratorParamBaseoperator= (const GeneratorParamBase &)=delete
 
 GeneratorParamBase (GeneratorParamBase &&)=delete
 
GeneratorParamBaseoperator= (GeneratorParamBase &&)=delete
 

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

value_
 

Detailed Description

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

Definition at line 504 of file Generator.h.

Member Typedef Documentation

◆ type

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

Definition at line 506 of file Generator.h.

Constructor & Destructor Documentation

◆ GeneratorParamImpl()

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

Definition at line 508 of file Generator.h.

Member Function Documentation

◆ value()

◆ operator T()

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

Definition at line 517 of file Generator.h.

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

◆ operator Expr()

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

Definition at line 521 of file Generator.h.

◆ set()

◆ set_impl()

Member Data Documentation

◆ value_


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