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

#include <Generator.h>

Public Member Functions

 GeneratorInput_Buffer (const std::string &name)
 
 GeneratorInput_Buffer (const std::string &name, const Type &t, int d=-1)
 
 GeneratorInput_Buffer (const std::string &name, int d)
 
template<typename... Args>
Expr operator() (Args &&... args) const
 
Expr operator() (std::vector< Expr > args) const
 
template<typename T2 >
 operator StubInputBuffer< T2 > () const
 
 operator Func () const
 
 operator ExternFuncArgument () const
 
GeneratorInput_Buffer< T > & set_estimate (Var var, Expr min, Expr extent)
 
GeneratorInput_Buffer< T > & estimate (const Var &var, const Expr &min, const Expr &extent)
 
GeneratorInput_Buffer< T > & set_estimates (const Region &estimates)
 
Func in ()
 
Func in (const Func &other)
 
Func in (const std::vector< Func > &others)
 
 operator ImageParam () const
 
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>
ImageParam operator[] (size_t i) const
 
template<typename T2 = T, typename std::enable_if< std::is_array< T2 >::value >::type * = nullptr>
ImageParam at (size_t i) const
 
template<typename T2 = T, typename std::enable_if< std::is_array< T2 >::value >::type * = nullptr>
std::vector< ImageParam >::const_iterator begin () const
 
template<typename T2 = T, typename std::enable_if< std::is_array< T2 >::value >::type * = nullptr>
std::vector< ImageParam >::const_iterator end () const
 

Protected Types

using TBase = typename Super::TBase
 

Protected Member Functions

std::string get_c_type () const override
 
template<typename T2 >
T2 as () const
 

Detailed Description

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

Definition at line 1255 of file Generator.h.

Member Typedef Documentation

◆ TBase

template<typename T >
using Halide::Internal::GeneratorInput_Buffer< T >::TBase = typename Super::TBase
protected

Definition at line 1651 of file Generator.h.

Constructor & Destructor Documentation

◆ GeneratorInput_Buffer() [1/3]

template<typename T >
Halide::Internal::GeneratorInput_Buffer< T >::GeneratorInput_Buffer ( const std::string &  name)
inline

Definition at line 1672 of file Generator.h.

◆ GeneratorInput_Buffer() [2/3]

template<typename T >
Halide::Internal::GeneratorInput_Buffer< T >::GeneratorInput_Buffer ( const std::string &  name,
const Type t,
int  d = -1 
)
inline

Definition at line 1678 of file Generator.h.

◆ GeneratorInput_Buffer() [3/3]

template<typename T >
Halide::Internal::GeneratorInput_Buffer< T >::GeneratorInput_Buffer ( const std::string &  name,
int  d 
)
inline

Definition at line 1683 of file Generator.h.

Member Function Documentation

◆ get_c_type()

template<typename T >
std::string Halide::Internal::GeneratorInput_Buffer< T >::get_c_type ( ) const
inlineoverrideprotected

Definition at line 1656 of file Generator.h.

References Halide::Internal::halide_type_to_c_type().

◆ as()

template<typename T >
template<typename T2 >
T2 Halide::Internal::GeneratorInput_Buffer< T >::as ( ) const
inlineprotected

Definition at line 1667 of file Generator.h.

◆ operator()() [1/2]

template<typename T >
template<typename... Args>
Expr Halide::Internal::GeneratorInput_Buffer< T >::operator() ( Args &&...  args) const
inline

Definition at line 1688 of file Generator.h.

◆ operator()() [2/2]

template<typename T >
Expr Halide::Internal::GeneratorInput_Buffer< T >::operator() ( std::vector< Expr args) const
inline

Definition at line 1693 of file Generator.h.

◆ operator StubInputBuffer< T2 >()

template<typename T >
template<typename T2 >
Halide::Internal::GeneratorInput_Buffer< T >::operator StubInputBuffer< T2 > ( ) const
inline

Definition at line 1699 of file Generator.h.

References user_assert.

◆ operator Func()

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

Definition at line 1704 of file Generator.h.

◆ operator ExternFuncArgument()

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

Definition at line 1709 of file Generator.h.

◆ set_estimate()

template<typename T >
GeneratorInput_Buffer<T>& Halide::Internal::GeneratorInput_Buffer< T >::set_estimate ( Var  var,
Expr  min,
Expr  extent 
)
inline

Definition at line 1714 of file Generator.h.

References Halide::min().

Referenced by Halide::Internal::GeneratorInput_Buffer< T >::estimate().

◆ estimate()

template<typename T >
GeneratorInput_Buffer<T>& Halide::Internal::GeneratorInput_Buffer< T >::estimate ( const Var var,
const Expr min,
const Expr extent 
)
inline

◆ set_estimates()

template<typename T >
GeneratorInput_Buffer<T>& Halide::Internal::GeneratorInput_Buffer< T >::set_estimates ( const Region estimates)
inline

Definition at line 1725 of file Generator.h.

◆ in() [1/3]

template<typename T >
Func Halide::Internal::GeneratorInput_Buffer< T >::in ( )
inline

Definition at line 1731 of file Generator.h.

References Halide::Func::in().

◆ in() [2/3]

template<typename T >
Func Halide::Internal::GeneratorInput_Buffer< T >::in ( const Func other)
inline

Definition at line 1736 of file Generator.h.

References Halide::Func::in().

◆ in() [3/3]

template<typename T >
Func Halide::Internal::GeneratorInput_Buffer< T >::in ( const std::vector< Func > &  others)
inline

Definition at line 1741 of file Generator.h.

References Halide::Func::in().

◆ operator ImageParam()

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

Definition at line 1746 of file Generator.h.

References user_assert.

◆ size()

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

Definition at line 1753 of file Generator.h.

◆ operator[]()

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

Definition at line 1759 of file Generator.h.

◆ at()

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

Definition at line 1765 of file Generator.h.

◆ begin()

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

Definition at line 1771 of file Generator.h.

References user_error.

◆ end()

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

Definition at line 1777 of file Generator.h.

References user_error.


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