Halide
Halide::Internal::GeneratorParamBase Class Referenceabstract

#include <Generator.h>

Inherited by Halide::Internal::GeneratorParamImpl< LoopLevel >, and Halide::Internal::GeneratorParamImpl< T >.

Public Member Functions

 GeneratorParamBase (const std::string &name)
 
virtual ~GeneratorParamBase ()
 
void set (const std::string &new_value)
 
void set (const char *new_value)
 

Public Attributes

const std::string name
 

Protected Member Functions

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)
 

Detailed Description

Definition at line 393 of file Generator.h.

Constructor & Destructor Documentation

◆ GeneratorParamBase()

Halide::Internal::GeneratorParamBase::GeneratorParamBase ( const std::string &  name)
explicit

◆ ~GeneratorParamBase()

virtual Halide::Internal::GeneratorParamBase::~GeneratorParamBase ( )
virtual

Member Function Documentation

◆ set() [1/2]

void Halide::Internal::GeneratorParamBase::set ( const std::string &  new_value)
inline

Definition at line 430 of file Generator.h.

References set_from_string().

◆ set() [2/2]

void Halide::Internal::GeneratorParamBase::set ( const char *  new_value)
inline

Definition at line 433 of file Generator.h.

References set_from_string().

◆ check_value_readable()

void Halide::Internal::GeneratorParamBase::check_value_readable ( ) const
protected

◆ check_value_writable()

void Halide::Internal::GeneratorParamBase::check_value_writable ( ) const
protected

◆ set_from_string()

◆ call_to_string()

◆ get_c_type()

◆ get_type_decls()

virtual std::string Halide::Internal::GeneratorParamBase::get_type_decls ( ) const
inlineprotectedvirtual

◆ get_default_value()

◆ is_synthetic_param()

virtual bool Halide::Internal::GeneratorParamBase::is_synthetic_param ( ) const
inlineprotectedvirtual

Reimplemented in Halide::Internal::GeneratorParam_Synthetic< T >.

Definition at line 457 of file Generator.h.

◆ is_looplevel_param()

virtual bool Halide::Internal::GeneratorParamBase::is_looplevel_param ( ) const
inlineprotectedvirtual

Reimplemented in Halide::Internal::GeneratorParam_LoopLevel.

Definition at line 461 of file Generator.h.

◆ fail_wrong_type()

void Halide::Internal::GeneratorParamBase::fail_wrong_type ( const char *  type)
protected

Member Data Documentation

◆ name

const std::string Halide::Internal::GeneratorParamBase::name

Definition at line 398 of file Generator.h.

Referenced by Halide::Internal::GeneratorParam_Enum< T >::get_c_type().


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