7#include "include/Sfx_DefineTypes.h"
22 using vec_iter = std::vector<SectionFlow>::iterator;
23 using vec_citer = std::vector<SectionFlow>::const_iterator;
98 std::vector<SectionFlow>
getList() const noexcept
124 return aSectFlow.N() == 0.;
134 return aSectFlow.Z() == 0.;
144 return aSectFlow.B() == 1.;
153 std::map<unsigned int, double> w_sectManningMap;
157 w_sectManningMap.insert({ w_sect.getId(), w_sect.N() });
159 return w_sectManningMap;
167 std::map<unsigned int, double> w_sectBathymetryMap;
171 w_sectBathymetryMap.insert({ w_sect.getId(), w_sect.Z() });
173 return w_sectBathymetryMap;
181 std::map<unsigned int, double> w_sectWaterLevelMap;
185 w_sectWaterLevelMap.insert({ w_sect.getId(), w_sect.H() });
187 return w_sectWaterLevelMap;
List of cross-section flow (itereable)
Definition dbpp_ListSectionsFlow.h:15
SectionFlow & operator[](vec_sizetype aIdx)
Definition dbpp_ListSectionsFlow.h:72
vec_citer cbegin() const
Definition dbpp_ListSectionsFlow.h:32
std::map< unsigned, float64 > getSectionsBathymetry() const
Definition dbpp_ListSectionsFlow.h:165
std::map< unsigned, double > getSectionsWaterLevel() const
Definition dbpp_ListSectionsFlow.h:179
vec_rciter crend() const
Definition dbpp_ListSectionsFlow.h:35
std::vector< SectionFlow > m_listSectionsFlow
Definition dbpp_ListSectionsFlow.h:190
void shrink2Fit()
Definition dbpp_ListSectionsFlow.h:93
vec_sizetype size() const noexcept
Definition dbpp_ListSectionsFlow.h:89
bool isFlatBed() const
Definition dbpp_ListSectionsFlow.h:129
bool contains(SectionFlow aSectF2Find)
Definition dbpp_ListSectionsFlow.h:56
std::vector< SectionFlow > getList() const noexcept
Definition dbpp_ListSectionsFlow.h:98
bool isEmpty() const noexcept
Definition dbpp_ListSectionsFlow.h:84
vec_iter begin()
Definition dbpp_ListSectionsFlow.h:28
vec_iter end()
Definition dbpp_ListSectionsFlow.h:29
vec_riter rbegin()
Definition dbpp_ListSectionsFlow.h:30
const SectionFlow & front() const
Definition dbpp_ListSectionsFlow.h:106
std::vector< SectionFlow >::size_type vec_sizetype
Aliases.
Definition dbpp_ListSectionsFlow.h:20
std::vector< SectionFlow >::value_type vec_valtype
Definition dbpp_ListSectionsFlow.h:21
void reserve(vec_sizetype aSize)
Definition dbpp_ListSectionsFlow.h:116
void clear()
Empty list.
Definition dbpp_ListSectionsFlow.h:69
vec_rciter crbegin() const
Definition dbpp_ListSectionsFlow.h:34
vec_citer cend() const
Definition dbpp_ListSectionsFlow.h:33
const SectionFlow & back() const
Definition dbpp_ListSectionsFlow.h:111
std::reverse_iterator< vec_citer > vec_rciter
Definition dbpp_ListSectionsFlow.h:25
std::vector< SectionFlow >::const_iterator vec_citer
Definition dbpp_ListSectionsFlow.h:23
std::reverse_iterator< vec_iter > vec_riter
Definition dbpp_ListSectionsFlow.h:24
void push_back(const SectionFlow &aSectF)
Definition dbpp_ListSectionsFlow.h:45
std::map< unsigned, float64 > getSectionsManning() const
Definition dbpp_ListSectionsFlow.h:151
std::vector< SectionFlow >::iterator vec_iter
Definition dbpp_ListSectionsFlow.h:22
vec_riter rend()
Definition dbpp_ListSectionsFlow.h:31
bool isUnitWidth() const
Definition dbpp_ListSectionsFlow.h:139
void push_back(SectionFlow &&aSectF)
Definition dbpp_ListSectionsFlow.h:50
bool isFrictionLess() const
Definition dbpp_ListSectionsFlow.h:119
Cross-sectional flow (2-dimensional).
Definition dbpp_SectionFlow.h:16
Definition DamBreakProb.h:15