Halide
Halide::Internal::GeneratorParamBase Class Referenceabstract

#include <Generator.h>

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

Public Member Functions

 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

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 396 of file Generator.h.

Constructor & Destructor Documentation

◆ GeneratorParamBase() [1/3]

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

◆ ~GeneratorParamBase()

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

◆ GeneratorParamBase() [2/3]

Halide::Internal::GeneratorParamBase::GeneratorParamBase ( const GeneratorParamBase )
delete

◆ GeneratorParamBase() [3/3]

Halide::Internal::GeneratorParamBase::GeneratorParamBase ( GeneratorParamBase &&  )
delete

Member Function Documentation

◆ name()

◆ set() [1/2]

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

Definition at line 435 of file Generator.h.

References set_from_string().

◆ set() [2/2]

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

Definition at line 438 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 462 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 466 of file Generator.h.

◆ fail_wrong_type()

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

◆ operator=() [1/2]

GeneratorParamBase& Halide::Internal::GeneratorParamBase::operator= ( const GeneratorParamBase )
delete

◆ operator=() [2/2]

GeneratorParamBase& Halide::Internal::GeneratorParamBase::operator= ( GeneratorParamBase &&  )
delete

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