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

Inclusive bounding box (returned by bbox). More...

#include <tpl_ca_hashlife.H>

Public Member Functions

bool is_empty () const noexcept
 True iff there are no alive cells.
 
std::int64_t width () const noexcept
 Width of the box (0 if empty).
 
std::int64_t height () const noexcept
 Height of the box (0 if empty).
 

Public Attributes

std::int64_t x_min
 
std::int64_t y_min
 
std::int64_t x_max
 
std::int64_t y_max
 

Detailed Description

Inclusive bounding box (returned by bbox).

Definition at line 307 of file tpl_ca_hashlife.H.

Member Function Documentation

◆ height()

std::int64_t Aleph::CA::Hashlife_Engine::BBox::height ( ) const
inlinenoexcept

Height of the box (0 if empty).

Definition at line 327 of file tpl_ca_hashlife.H.

References is_empty(), y_max, and y_min.

◆ is_empty()

bool Aleph::CA::Hashlife_Engine::BBox::is_empty ( ) const
inlinenoexcept

True iff there are no alive cells.

Definition at line 315 of file tpl_ca_hashlife.H.

References x_max, and x_min.

Referenced by height(), TEST(), TEST(), and width().

◆ width()

std::int64_t Aleph::CA::Hashlife_Engine::BBox::width ( ) const
inlinenoexcept

Width of the box (0 if empty).

Definition at line 321 of file tpl_ca_hashlife.H.

References is_empty(), x_max, and x_min.

Member Data Documentation

◆ x_max

std::int64_t Aleph::CA::Hashlife_Engine::BBox::x_max

Definition at line 311 of file tpl_ca_hashlife.H.

Referenced by is_empty(), and width().

◆ x_min

std::int64_t Aleph::CA::Hashlife_Engine::BBox::x_min

Definition at line 309 of file tpl_ca_hashlife.H.

Referenced by is_empty(), and width().

◆ y_max

std::int64_t Aleph::CA::Hashlife_Engine::BBox::y_max

Definition at line 312 of file tpl_ca_hashlife.H.

Referenced by height().

◆ y_min

std::int64_t Aleph::CA::Hashlife_Engine::BBox::y_min

Definition at line 310 of file tpl_ca_hashlife.H.

Referenced by height().


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