Loading...
Searching...
No Matches
mesh::InfilRow Struct Reference

One infiltration specification: method + positional parameters + destination. More...

#include <mesh/meshinfil.h>

Collaboration diagram for mesh::InfilRow:

Public Member Functions

bool isNone () const
 Test whether this row explicitly selects no infiltration method.
 
bool operator== (const InfilRow &o) const
 Compare method, destination and every positional parameter, treating unset NaNs as equal.
 
bool operator!= (const InfilRow &o) const
 Negate all-slot infiltration-row equality with its NaN-as-unset convention.
 

Public Attributes

InfilMethod method = InfilMethod::None
 Model; None (default) = no infiltration.
 
double p [kInfilMaxParams] = {qQNaN(), qQNaN(), qQNaN(), qQNaN(), qQNaN()}
 Positional parameters p0..p4 in project units (table above); NaN (default) = unset.
 
InfilDest dest = InfilDest::Lost
 Where infiltrated water goes; Lost by default.
 

Detailed Description

One infiltration specification: method + positional parameters + destination.

Parameters are POSITIONAL and in PROJECT units, matching legacy [INFILTRATION]:

method p0 p1 p2 p3 p4
Horton f0 fmin decay (1/hr) dry_time(d) Fmax
ModHorton f0 fmin decay (1/hr) dry_time(d) Fmax
GreenAmpt S (suction) Ks IMD — —
ModGreenAmpt S (suction) Ks IMD — —
CurveNumber CN — dry_time(d) — —
Constant rate — — — —

NaN in a slot means "not set"; the writer emits - for unused columns.

Member Function Documentation

◆ isNone()

bool mesh::InfilRow::isNone ( ) const
inline

Test whether this row explicitly selects no infiltration method.

Returns
True only for InfilMethod::None, false for every other enum value including unknown values. Does not validate parameters/destination or resolve inheritance; constant read-only query.
Here is the caller graph for this function:

◆ operator!=()

bool mesh::InfilRow::operator!= ( const InfilRow & o) const
inline

Negate all-slot infiltration-row equality with its NaN-as-unset convention.

Parameters
[in]oBorrowed other row, unchanged.
Returns
False for equal method/destination/all parameters, true otherwise; no tolerance or validation. Read only, with no allocation or ownership transfer.

◆ operator==()

bool mesh::InfilRow::operator== ( const InfilRow & o) const

Compare method, destination and every positional parameter, treating unset NaNs as equal.

Parameters
[in]oBorrowed row, unchanged.
Returns
True only when methods/destinations match and each of five slots compares exactly or both values are NaN. Even unused slots participate, infinities use ordinary equality and no numeric tolerance or method-specific validation occurs. No mutation, allocation or unit conversion.

Member Data Documentation

◆ dest

InfilDest mesh::InfilRow::dest = InfilDest::Lost

Where infiltrated water goes; Lost by default.

◆ method

InfilMethod mesh::InfilRow::method = InfilMethod::None

Model; None (default) = no infiltration.

◆ p

double mesh::InfilRow::p[kInfilMaxParams] = {qQNaN(), qQNaN(), qQNaN(), qQNaN(), qQNaN()}

Positional parameters p0..p4 in project units (table above); NaN (default) = unset.


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