Halide
Halide::ExternFuncArgument Struct Reference

An argument to an extern-defined Func. More...

#include <Function.h>

Public Types

enum  ArgType {
  UndefinedArg = 0, FuncArg, BufferArg, ExprArg,
  ImageParamArg
}
 

Public Member Functions

 ExternFuncArgument (Internal::FunctionPtr f)
 
template<typename T >
 ExternFuncArgument (Buffer< T > b)
 
 ExternFuncArgument (Expr e)
 
 ExternFuncArgument (int e)
 
 ExternFuncArgument (float e)
 
 ExternFuncArgument (Internal::Parameter p)
 
 ExternFuncArgument ()
 
bool is_func () const
 
bool is_expr () const
 
bool is_buffer () const
 
bool is_image_param () const
 
bool defined () const
 

Public Attributes

ArgType arg_type
 
Internal::FunctionPtr func
 
Buffer buffer
 
Expr expr
 
Internal::Parameter image_param
 

Detailed Description

An argument to an extern-defined Func.

May be a Function, Buffer, ImageParam or Expr.

Definition at line 24 of file Function.h.

Member Enumeration Documentation

◆ ArgType

Enumerator
UndefinedArg 
FuncArg 
BufferArg 
ExprArg 
ImageParamArg 

Definition at line 25 of file Function.h.

Constructor & Destructor Documentation

◆ ExternFuncArgument() [1/7]

Halide::ExternFuncArgument::ExternFuncArgument ( Internal::FunctionPtr  f)
inline

Definition at line 32 of file Function.h.

◆ ExternFuncArgument() [2/7]

template<typename T >
Halide::ExternFuncArgument::ExternFuncArgument ( Buffer< T >  b)
inline

Definition at line 35 of file Function.h.

◆ ExternFuncArgument() [3/7]

Halide::ExternFuncArgument::ExternFuncArgument ( Expr  e)
inline

Definition at line 36 of file Function.h.

◆ ExternFuncArgument() [4/7]

Halide::ExternFuncArgument::ExternFuncArgument ( int  e)
inline

Definition at line 37 of file Function.h.

◆ ExternFuncArgument() [5/7]

Halide::ExternFuncArgument::ExternFuncArgument ( float  e)
inline

Definition at line 38 of file Function.h.

◆ ExternFuncArgument() [6/7]

Halide::ExternFuncArgument::ExternFuncArgument ( Internal::Parameter  p)
inline

Definition at line 40 of file Function.h.

References internal_assert, and Halide::Internal::Parameter::is_buffer().

◆ ExternFuncArgument() [7/7]

Halide::ExternFuncArgument::ExternFuncArgument ( )
inline

Definition at line 44 of file Function.h.

Referenced by Halide::Internal::Function::operator ExternFuncArgument().

Member Function Documentation

◆ is_func()

bool Halide::ExternFuncArgument::is_func ( ) const
inline

Definition at line 46 of file Function.h.

References FuncArg.

◆ is_expr()

bool Halide::ExternFuncArgument::is_expr ( ) const
inline

Definition at line 47 of file Function.h.

References ExprArg.

◆ is_buffer()

bool Halide::ExternFuncArgument::is_buffer ( ) const
inline

Definition at line 48 of file Function.h.

References BufferArg.

◆ is_image_param()

bool Halide::ExternFuncArgument::is_image_param ( ) const
inline

Definition at line 49 of file Function.h.

References ImageParamArg.

◆ defined()

bool Halide::ExternFuncArgument::defined ( ) const
inline

Definition at line 50 of file Function.h.

References UndefinedArg.

Member Data Documentation

◆ arg_type

ArgType Halide::ExternFuncArgument::arg_type

Definition at line 26 of file Function.h.

◆ func

Internal::FunctionPtr Halide::ExternFuncArgument::func

Definition at line 27 of file Function.h.

◆ buffer

Buffer Halide::ExternFuncArgument::buffer

Definition at line 28 of file Function.h.

◆ expr

Expr Halide::ExternFuncArgument::expr

Definition at line 29 of file Function.h.

◆ image_param

Internal::Parameter Halide::ExternFuncArgument::image_param

Definition at line 30 of file Function.h.


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