Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::CA::Tile2D_Range Struct Reference

2D tile descriptor: a rectangle in axis-0 / axis-1 coordinates. More...

#include <ca-tiling.H>

Collaboration diagram for Aleph::CA::Tile2D_Range:
[legend]

Public Member Functions

constexpr ca_size_t size () const noexcept
 
constexpr bool empty () const noexcept
 

Public Attributes

Range1D rows {}
 Half-open axis-0 range.
 
Range1D cols {}
 Half-open axis-1 range.
 

Detailed Description

2D tile descriptor: a rectangle in axis-0 / axis-1 coordinates.

Definition at line 224 of file ca-tiling.H.

Member Function Documentation

◆ empty()

constexpr bool Aleph::CA::Tile2D_Range::empty ( ) const
inlineconstexprnoexcept
Returns
true when the tile is degenerate.

Definition at line 238 of file ca-tiling.H.

References Aleph::blossom_maximum_cardinality_matching(), cols, Aleph::CA::Range1D::empty(), and rows.

◆ size()

constexpr ca_size_t Aleph::CA::Tile2D_Range::size ( ) const
inlineconstexprnoexcept
Returns
number of cells covered by the tile.

Definition at line 232 of file ca-tiling.H.

References cols, rows, and Aleph::CA::Range1D::size().

Member Data Documentation

◆ cols

Range1D Aleph::CA::Tile2D_Range::cols {}

Half-open axis-1 range.

Definition at line 229 of file ca-tiling.H.

Referenced by empty(), and size().

◆ rows

Range1D Aleph::CA::Tile2D_Range::rows {}

Half-open axis-0 range.

Definition at line 227 of file ca-tiling.H.

Referenced by empty(), and size().


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