FireSTARR
Loading...
Searching...
No Matches
fs::BurnedData Class Reference

Public Member Functions

 BurnedData (const CellGrid &cells) noexcept
 
 BurnedData (const FuelGrid &fuel) noexcept
 
bool at (const XYIdx &h) const noexcept
 
void set (const XYIdx &h) noexcept
 
void clear () noexcept
 
 BurnedData (const BurnedData &rhs) noexcept
 
 BurnedData (BurnedData &&rhs) noexcept
 
BurnedData & operator= (const BurnedData &rhs) noexcept
 
BurnedData & operator= (BurnedData &&rhs) noexcept
 
constexpr Idx height () const noexcept
 
constexpr Idx width () const noexcept
 
MathSize fireSize () const noexcept
 Calculate area for cells that have a value (ha)
 

Private Types

using dtype = std::bitset<static_cast<size_t>(MAX_HEIGHT) * MAX_WIDTH>
 

Static Private Member Functions

static uptr< dtype > from_grid (auto &grid, auto fct)
 

Private Attributes

uptr< dtype > data_ {nullptr}
 
MathSize cell_size_ {-1}
 
size_t unburnable_ {0}
 
Idx height_ {}
 
Idx width_ {}
 

Member Function Documentation

◆ fireSize()

MathSize fs::BurnedData::fireSize ( ) const
inlinenodiscardnoexcept

Calculate area for cells that have a value (ha)

Returns
Area for cells that have a value (ha)
Here is the caller graph for this function:

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