Halide 19.0.0
Halide compiler and libraries
Loading...
Searching...
No Matches
Halide::Internal::GeneratorParamImpl< T > Class Template Reference

#include <Generator.h>

Inheritance diagram for Halide::Internal::GeneratorParamImpl< T >:
Halide::Internal::GeneratorParamBase Halide::Internal::GeneratorParam_Arithmetic< T > Halide::Internal::GeneratorParam_Enum< T > Halide::Internal::GeneratorParam_String< T > Halide::Internal::GeneratorParam_Synthetic< T > Halide::Internal::GeneratorParam_Target< T > Halide::Internal::GeneratorParam_Bool< T > Halide::Internal::GeneratorParam_Type< 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 503 of file Generator.h.

Member Typedef Documentation

◆ type

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

Definition at line 505 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 507 of file Generator.h.

Member Function Documentation

◆ value()

◆ operator T()

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

Definition at line 516 of file Generator.h.

◆ operator Expr()

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

◆ set()

◆ set_impl()

Member Data Documentation

◆ value_


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