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

#include <Generator.h>

Inherits Halide::Internal::GeneratorParamImpl< T >.

Inherited by Halide::Internal::GeneratorParam_Type< T >.

Public Member Functions

 GeneratorParam_Enum (const std::string &name, const T &value, const std::map< std::string, T > &enum_map)
 
template<typename T2 = T, typename std::enable_if<!std::is_same< T2, Type >::value >::type * = nullptr>
void set (const T &e)
 
void set_from_string (const std::string &new_value_string) override
 
std::string call_to_string (const std::string &v) const override
 
std::string get_c_type () const override
 
std::string get_default_value () const override
 
std::string get_type_decls () const override
 
- Public Member Functions inherited from Halide::Internal::GeneratorParamImpl< T >
 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)
 

Additional Inherited Members

- Public Types inherited from Halide::Internal::GeneratorParamImpl< T >
using type = T
 
- Public Attributes inherited from Halide::Internal::GeneratorParamBase
const std::string name
 
- Protected Member Functions inherited from Halide::Internal::GeneratorParamImpl< T >
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 bool is_synthetic_param () const
 
virtual bool is_looplevel_param () const
 
void fail_wrong_type (const char *type)
 
- Protected Attributes inherited from Halide::Internal::GeneratorParamImpl< T >
value_
 

Detailed Description

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

Definition at line 841 of file Generator.h.

Constructor & Destructor Documentation

◆ GeneratorParam_Enum()

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

Definition at line 843 of file Generator.h.

Member Function Documentation

◆ set()

template<typename T >
template<typename T2 = T, typename std::enable_if<!std::is_same< T2, Type >::value >::type * = nullptr>
void Halide::Internal::GeneratorParam_Enum< T >::set ( const T &  e)
inline

◆ set_from_string()

template<typename T >
void Halide::Internal::GeneratorParam_Enum< T >::set_from_string ( const std::string &  new_value_string)
inlineoverridevirtual

◆ call_to_string()

template<typename T >
std::string Halide::Internal::GeneratorParam_Enum< T >::call_to_string ( const std::string &  v) const
inlineoverridevirtual

Implements Halide::Internal::GeneratorParamBase.

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

Definition at line 861 of file Generator.h.

◆ get_c_type()

template<typename T >
std::string Halide::Internal::GeneratorParam_Enum< T >::get_c_type ( ) const
inlineoverridevirtual

◆ get_default_value()

template<typename T >
std::string Halide::Internal::GeneratorParam_Enum< T >::get_default_value ( ) const
inlineoverridevirtual

◆ get_type_decls()

template<typename T >
std::string Halide::Internal::GeneratorParam_Enum< T >::get_type_decls ( ) const
inlineoverridevirtual

Reimplemented from Halide::Internal::GeneratorParamBase.

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

Definition at line 873 of file Generator.h.


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