Halide
Halide::Internal::Autoscheduler::OptionalRational Struct Reference

#include <FunctionDAG.h>

Public Member Functions

 OptionalRational ()=default
 
 OptionalRational (bool e, int64_t n, int64_t d)
 
void operator+= (const OptionalRational &other)
 
OptionalRational operator* (const OptionalRational &other) const
 
bool operator< (int x) const
 
bool operator<= (int x) const
 
bool operator> (int x) const
 
bool operator>= (int x) const
 
bool operator== (int x) const
 
bool operator== (const OptionalRational &other) const
 

Public Attributes

bool exists = false
 
int64_t numerator = 0
 
int64_t denominator = 0
 

Detailed Description

Definition at line 31 of file FunctionDAG.h.

Constructor & Destructor Documentation

◆ OptionalRational() [1/2]

Halide::Internal::Autoscheduler::OptionalRational::OptionalRational ( )
default

◆ OptionalRational() [2/2]

Halide::Internal::Autoscheduler::OptionalRational::OptionalRational ( bool  e,
int64_t  n,
int64_t  d 
)
inline

Definition at line 36 of file FunctionDAG.h.

Member Function Documentation

◆ operator+=()

void Halide::Internal::Autoscheduler::OptionalRational::operator+= ( const OptionalRational other)
inline

◆ operator*()

OptionalRational Halide::Internal::Autoscheduler::OptionalRational::operator* ( const OptionalRational other) const
inline

Definition at line 59 of file FunctionDAG.h.

References denominator, exists, and numerator.

◆ operator<()

bool Halide::Internal::Autoscheduler::OptionalRational::operator< ( int  x) const
inline

Definition at line 72 of file FunctionDAG.h.

References denominator, exists, and numerator.

◆ operator<=()

bool Halide::Internal::Autoscheduler::OptionalRational::operator<= ( int  x) const
inline

Definition at line 81 of file FunctionDAG.h.

References denominator, exists, and numerator.

◆ operator>()

bool Halide::Internal::Autoscheduler::OptionalRational::operator> ( int  x) const
inline

Definition at line 90 of file FunctionDAG.h.

References exists.

◆ operator>=()

bool Halide::Internal::Autoscheduler::OptionalRational::operator>= ( int  x) const
inline

Definition at line 95 of file FunctionDAG.h.

References exists.

◆ operator==() [1/2]

bool Halide::Internal::Autoscheduler::OptionalRational::operator== ( int  x) const
inline

Definition at line 100 of file FunctionDAG.h.

References denominator, exists, and numerator.

◆ operator==() [2/2]

bool Halide::Internal::Autoscheduler::OptionalRational::operator== ( const OptionalRational other) const
inline

Definition at line 104 of file FunctionDAG.h.

References denominator, exists, and numerator.

Member Data Documentation

◆ exists

bool Halide::Internal::Autoscheduler::OptionalRational::exists = false

◆ numerator

int64_t Halide::Internal::Autoscheduler::OptionalRational::numerator = 0

Definition at line 33 of file FunctionDAG.h.

Referenced by operator*(), operator+=(), operator<(), operator<=(), and operator==().

◆ denominator

int64_t Halide::Internal::Autoscheduler::OptionalRational::denominator = 0

Definition at line 33 of file FunctionDAG.h.

Referenced by operator*(), operator+=(), operator<(), operator<=(), and operator==().


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