Halide
Halide::Runtime::Buffer< T, D >::Dimension Class Reference

Read-only access to the shape. More...

#include <HalideBuffer.h>

Classes

struct  iterator
 An iterator class, so that you can iterate over coordinates in a dimensions using a range-based for loop. More...
 

Public Member Functions

HALIDE_ALWAYS_INLINE int min () const
 The lowest coordinate in this dimension. More...
 
HALIDE_ALWAYS_INLINE int stride () const
 The number of elements in memory you have to step over to increment this coordinate by one. More...
 
HALIDE_ALWAYS_INLINE int extent () const
 The extent of the image along this dimension. More...
 
HALIDE_ALWAYS_INLINE int max () const
 The highest coordinate in this dimension. More...
 
HALIDE_ALWAYS_INLINE iterator begin () const
 An iterator that points to the min coordinate. More...
 
HALIDE_ALWAYS_INLINE iterator end () const
 An iterator that points to one past the max coordinate. More...
 
 Dimension (const halide_dimension_t &dim)
 

Detailed Description

template<typename T = void, int D = 4>
class Halide::Runtime::Buffer< T, D >::Dimension

Read-only access to the shape.

Definition at line 440 of file HalideBuffer.h.

Constructor & Destructor Documentation

◆ Dimension()

template<typename T = void, int D = 4>
Halide::Runtime::Buffer< T, D >::Dimension::Dimension ( const halide_dimension_t dim)
inline

Definition at line 491 of file HalideBuffer.h.

Member Function Documentation

◆ min()

◆ stride()

template<typename T = void, int D = 4>
HALIDE_ALWAYS_INLINE int Halide::Runtime::Buffer< T, D >::Dimension::stride ( ) const
inline

The number of elements in memory you have to step over to increment this coordinate by one.

Definition at line 451 of file HalideBuffer.h.

References halide_dimension_t::stride.

Referenced by Halide::Runtime::Buffer< double * >::stride().

◆ extent()

◆ max()

template<typename T = void, int D = 4>
HALIDE_ALWAYS_INLINE int Halide::Runtime::Buffer< T, D >::Dimension::max ( ) const
inline

◆ begin()

template<typename T = void, int D = 4>
HALIDE_ALWAYS_INLINE iterator Halide::Runtime::Buffer< T, D >::Dimension::begin ( ) const
inline

An iterator that points to the min coordinate.

Definition at line 482 of file HalideBuffer.h.

References Halide::Runtime::Buffer< T, D >::Dimension::min().

◆ end()

template<typename T = void, int D = 4>
HALIDE_ALWAYS_INLINE iterator Halide::Runtime::Buffer< T, D >::Dimension::end ( ) const
inline

An iterator that points to one past the max coordinate.

Definition at line 487 of file HalideBuffer.h.

References Halide::Runtime::Buffer< T, D >::Dimension::extent(), and Halide::Runtime::Buffer< T, D >::Dimension::min().


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