Halide
Halide::Internal::GeneratorInputImpl< T, ValueType > Class Template Reference

#include <Generator.h>

Inherits Halide::Internal::GeneratorInputBase.

Public Member Functions

template<typename T2 = T, typename std::enable_if< std::is_array< T2 >::value >::type * = nullptr>
size_t size () const
 
template<typename T2 = T, typename std::enable_if< std::is_array< T2 >::value >::type * = nullptr>
const ValueType & operator[] (size_t i) const
 
template<typename T2 = T, typename std::enable_if< std::is_array< T2 >::value >::type * = nullptr>
const ValueType & at (size_t i) const
 
template<typename T2 = T, typename std::enable_if< std::is_array< T2 >::value >::type * = nullptr>
std::vector< ValueType >::const_iterator begin () const
 
template<typename T2 = T, typename std::enable_if< std::is_array< T2 >::value >::type * = nullptr>
std::vector< ValueType >::const_iterator end () const
 
- Public Member Functions inherited from Halide::Internal::GeneratorInputBase
 ~GeneratorInputBase () override
 
- Public Member Functions inherited from Halide::Internal::GIOBase
bool array_size_defined () const
 
size_t array_size () const
 
const std::string & name () const
 
IOKind kind () const
 
bool types_defined () const
 
const std::vector< Type > & types () const
 
Type type () const
 
bool dims_defined () const
 
int dims () const
 
const std::vector< Func > & funcs () const
 
const std::vector< Expr > & exprs () const
 
virtual ~GIOBase ()
 

Protected Types

using TBase = typename std::remove_all_extents< T >::type
 

Protected Member Functions

bool is_array () const override
 
template<typename T2 = T, typename std::enable_if< !std::is_array< T2 >::value >::type * = nullptr>
 GeneratorInputImpl (const std::string &name, IOKind kind, const std::vector< Type > &t, int d)
 
template<typename T2 = T, typename std::enable_if< std::is_array< T2 >::value &&std::rank< T2 >::value==1 &&(std::extent< T2, 0 >::value > 0)>::type * = nullptr>
 GeneratorInputImpl (const std::string &name, IOKind kind, const std::vector< Type > &t, int d)
 
template<typename T2 = T, typename std::enable_if< std::is_array< T2 >::value &&std::rank< T2 >::value==1 &&std::extent< T2, 0 >::value==0 >::type * = nullptr>
 GeneratorInputImpl (const std::string &name, IOKind kind, const std::vector< Type > &t, int d)
 
- Protected Member Functions inherited from Halide::Internal::GeneratorInputBase
 GeneratorInputBase (size_t array_size, const std::string &name, IOKind kind, const std::vector< Type > &t, int d)
 
 GeneratorInputBase (const std::string &name, IOKind kind, const std::vector< Type > &t, int d)
 
Parameter parameter () const
 
void init_internals ()
 
void set_inputs (const std::vector< StubInput > &inputs)
 
virtual void set_def_min_max ()
 
virtual Expr get_def_expr () const
 
void verify_internals () override
 
virtual std::string get_c_type () const =0
 
void check_value_writable () const override
 
const char * input_or_output () const override
 
void set_estimate_impl (const Var &var, const Expr &min, const Expr &extent)
 
void set_estimates_impl (const Region &estimates)
 
- Protected Member Functions inherited from Halide::Internal::GIOBase
 GIOBase (size_t array_size, const std::string &name, IOKind kind, const std::vector< Type > &types, int dims)
 
std::string array_name (size_t i) const
 
void check_matching_array_size (size_t size) const
 
void check_matching_types (const std::vector< Type > &t) const
 
void check_matching_dims (int d) const
 
template<typename ElemType >
const std::vector< ElemType > & get_values () const
 
void check_gio_access () const
 
template<>
const std::vector< Expr > & get_values () const
 
template<>
const std::vector< Func > & get_values () const
 

Additional Inherited Members

- Protected Attributes inherited from Halide::Internal::GeneratorInputBase
std::vector< Parameterparameters_
 
- Protected Attributes inherited from Halide::Internal::GIOBase
int array_size_
 
const std::string name_
 
const IOKind kind_
 
std::vector< Typetypes_
 
int dims_
 
std::vector< Funcfuncs_
 
std::vector< Exprexprs_
 
GeneratorBasegenerator {nullptr}
 

Detailed Description

template<typename T, typename ValueType>
class Halide::Internal::GeneratorInputImpl< T, ValueType >

Definition at line 1562 of file Generator.h.

Member Typedef Documentation

◆ TBase

template<typename T , typename ValueType >
using Halide::Internal::GeneratorInputImpl< T, ValueType >::TBase = typename std::remove_all_extents<T>::type
protected

Definition at line 1564 of file Generator.h.

Constructor & Destructor Documentation

◆ GeneratorInputImpl() [1/3]

template<typename T , typename ValueType >
template<typename T2 = T, typename std::enable_if< !std::is_array< T2 >::value >::type * = nullptr>
Halide::Internal::GeneratorInputImpl< T, ValueType >::GeneratorInputImpl ( const std::string &  name,
IOKind  kind,
const std::vector< Type > &  t,
int  d 
)
inlineprotected

Definition at line 1573 of file Generator.h.

◆ GeneratorInputImpl() [2/3]

template<typename T , typename ValueType >
template<typename T2 = T, typename std::enable_if< std::is_array< T2 >::value &&std::rank< T2 >::value==1 &&(std::extent< T2, 0 >::value > 0)>::type * = nullptr>
Halide::Internal::GeneratorInputImpl< T, ValueType >::GeneratorInputImpl ( const std::string &  name,
IOKind  kind,
const std::vector< Type > &  t,
int  d 
)
inlineprotected

Definition at line 1580 of file Generator.h.

◆ GeneratorInputImpl() [3/3]

template<typename T , typename ValueType >
template<typename T2 = T, typename std::enable_if< std::is_array< T2 >::value &&std::rank< T2 >::value==1 &&std::extent< T2, 0 >::value==0 >::type * = nullptr>
Halide::Internal::GeneratorInputImpl< T, ValueType >::GeneratorInputImpl ( const std::string &  name,
IOKind  kind,
const std::vector< Type > &  t,
int  d 
)
inlineprotected

Definition at line 1587 of file Generator.h.

Member Function Documentation

◆ is_array()

template<typename T , typename ValueType >
bool Halide::Internal::GeneratorInputImpl< T, ValueType >::is_array ( ) const
inlineoverrideprotectedvirtual

Reimplemented from Halide::Internal::GIOBase.

Definition at line 1566 of file Generator.h.

◆ size()

template<typename T , typename ValueType >
template<typename T2 = T, typename std::enable_if< std::is_array< T2 >::value >::type * = nullptr>
size_t Halide::Internal::GeneratorInputImpl< T, ValueType >::size ( ) const
inline

Definition at line 1593 of file Generator.h.

◆ operator[]()

template<typename T , typename ValueType >
template<typename T2 = T, typename std::enable_if< std::is_array< T2 >::value >::type * = nullptr>
const ValueType& Halide::Internal::GeneratorInputImpl< T, ValueType >::operator[] ( size_t  i) const
inline

Definition at line 1599 of file Generator.h.

◆ at()

template<typename T , typename ValueType >
template<typename T2 = T, typename std::enable_if< std::is_array< T2 >::value >::type * = nullptr>
const ValueType& Halide::Internal::GeneratorInputImpl< T, ValueType >::at ( size_t  i) const
inline

Definition at line 1605 of file Generator.h.

◆ begin()

template<typename T , typename ValueType >
template<typename T2 = T, typename std::enable_if< std::is_array< T2 >::value >::type * = nullptr>
std::vector<ValueType>::const_iterator Halide::Internal::GeneratorInputImpl< T, ValueType >::begin ( ) const
inline

Definition at line 1611 of file Generator.h.

◆ end()

template<typename T , typename ValueType >
template<typename T2 = T, typename std::enable_if< std::is_array< T2 >::value >::type * = nullptr>
std::vector<ValueType>::const_iterator Halide::Internal::GeneratorInputImpl< T, ValueType >::end ( ) const
inline

Definition at line 1617 of file Generator.h.


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