40#ifndef ALTIMETRY_DEFINITIONS_H
41#define ALTIMETRY_DEFINITIONS_H
60 typedef AltimetryMap::iterator AltIt;
61 typedef AltimetryMap::const_iterator AltCIt;
62 typedef AltimetryMap::reverse_iterator AltRIt;
63 typedef AltimetryMap::const_reverse_iterator AltCRIt;
69 #define ALTIMETRY_RANGE_STEPS (1)
116 return &((
new Altimetry() )->updateMinMaxAltimetryValues()); ; }
124 return &((
new Altimetry( map ) )->updateMinMaxAltimetryValues()); }
191 virtual Altimetry*
crop(
double range_start,
double range_end );
217 AltCIt
at(
const int i )
const ;
521 virtual Altimetry& updateMinMaxAltimetryValues();
621 ret_val->updateMinMaxAltimetryValues();
631 ret_val->updateMinMaxAltimetryValues();
821 else it->second += altimetry;
829 <<
"; altimetry = " << instance.
begin()->second
830 <<
"; max range = " << instance.
altimetry_map.rbegin()->first
831 <<
"; altimetry = " << instance.
altimetry_map.rbegin()->second;
841 if ( &left == &right )
return true;
847 if ( &left == &right )
return false;
bool operator!=(const Altimetry &left, const Altimetry &right)
Definition altimetry-definitions.h:846
std::ostream & operator<<(std::ostream &os, const Altimetry &instance)
Definition altimetry-definitions.h:826
Altimetry & operator*=(Altimetry &left, double right)
Definition altimetry-definitions.cpp:367
const Altimetry operator/(const Altimetry &left, const double right)
Definition altimetry-definitions.cpp:285
bool operator==(const Altimetry &left, const Altimetry &right)
Definition altimetry-definitions.h:840
Altimetry & operator+=(Altimetry &left, const Altimetry &right)
Definition altimetry-definitions.cpp:327
std::map< PDouble, double > AltimetryMap
Definition altimetry-definitions.h:59
const Altimetry operator+(const Altimetry &left, const Altimetry &right)
Definition altimetry-definitions.cpp:257
const Altimetry operator*(const Altimetry &left, const double right)
Definition altimetry-definitions.cpp:292
Altimetry & operator-=(Altimetry &left, const Altimetry &right)
Definition altimetry-definitions.cpp:335
const Altimetry operator-(const Altimetry &left, const Altimetry &right)
Definition altimetry-definitions.cpp:264
Altimetry & operator/=(Altimetry &left, double right)
Definition altimetry-definitions.cpp:359
AltimBretschneider supports Bretschneider wave model.
Definition altimetry-definitions.h:582
AltimBretschneider & operator=(const AltimBretschneider ©)
Definition altimetry-definitions.cpp:412
double average_period
Definition altimetry-definitions.h:756
virtual AltimBretschneider * timeEvolve(const Time &time_value)
Definition altimetry-definitions.cpp:443
virtual bool initialize()
Definition altimetry-definitions.cpp:422
virtual AltimBretschneider * randomize(double ratio_incr_value) const
Definition altimetry-definitions.cpp:470
virtual AltimBretschneider * create(AltimetryMap &map) const
Definition altimetry-definitions.h:629
virtual AltimBretschneider * create(const Altimetry ©) const
Definition altimetry-definitions.h:647
virtual AltimBretschneider * create() const
Definition altimetry-definitions.h:619
virtual bool isValid() const
Definition altimetry-definitions.cpp:431
virtual AltimBretschneider * create(const AltimBretschneider ©) const
Definition altimetry-definitions.h:639
AltimBretschneider & setAveragePeriod(double p)
Definition altimetry-definitions.h:724
double char_height
Definition altimetry-definitions.h:749
AltimBretschneider & setCharacteristicHeight(double h)
Definition altimetry-definitions.h:717
double getAveragePeriod() const
Definition altimetry-definitions.h:736
virtual AltimBretschneider * create(double ch_height, double avg_per, int total_range_steps, double depth) const
Definition altimetry-definitions.h:663
virtual AltimBretschneider * clone() const
Definition altimetry-definitions.h:671
AltimBretschneider()
Definition altimetry-definitions.cpp:375
double getCharacteristicHeight() const
Definition altimetry-definitions.h:730
Altimetry profile class.
Definition altimetry-definitions.h:78
virtual bool initialize()
Definition altimetry-definitions.cpp:238
double getMaxAltimetryValue() const
Definition altimetry-definitions.h:291
virtual Altimetry * clone() const
Definition altimetry-definitions.h:137
long double getRangePrecision() const
Definition altimetry-definitions.h:303
AltimetryMap altimetry_map
Definition altimetry-definitions.h:571
double getDepth() const
Definition altimetry-definitions.h:327
Altimetry & operator=(const Altimetry ©)
Definition altimetry-definitions.cpp:131
Altimetry & setTotalRangeSteps(int r_s)
Definition altimetry-definitions.h:260
double getEvolutionTimeQuantum() const
Definition altimetry-definitions.h:309
virtual Altimetry * crop(double range_start, double range_end)
Definition altimetry-definitions.cpp:168
double evolution_time_quantum
Definition altimetry-definitions.h:561
Altimetry & eraseValue(double range)
Definition altimetry-definitions.h:181
AltCIt end() const
Definition altimetry-definitions.h:210
friend const Altimetry operator/(const double left, const Altimetry &right)
virtual Altimetry * create() const
Definition altimetry-definitions.h:115
static AltimetryMap & createFlat(double altimetry=0)
Definition altimetry-definitions.h:807
double getMinAltimetryValue() const
Definition altimetry-definitions.h:297
double depth
Definition altimetry-definitions.h:566
friend const Altimetry operator+(const Altimetry &left, const Altimetry &right)
void clear()
Definition altimetry-definitions.h:235
bool empty() const
Definition altimetry-definitions.h:229
friend const Altimetry operator-(const double left, const Altimetry &right)
Altimetry & insertValue(double range, double altimetry)
Definition altimetry-definitions.cpp:146
AltCIt at(const int i) const
Definition altimetry-definitions.cpp:157
friend Altimetry & operator+=(Altimetry &left, const Altimetry &right)
double range
Definition altimetry-definitions.h:531
double getMinRangeValue() const
Definition altimetry-definitions.h:285
AltCIt findValue(double range) const
Definition altimetry-definitions.h:173
static bool getDebug(bool flag)
Definition altimetry-definitions.h:248
friend std::ostream & operator<<(std::ostream &os, const Altimetry &instance)
Definition altimetry-definitions.h:826
friend const Altimetry operator+(const Altimetry &left, const double right)
double getRange() const
Definition altimetry-definitions.h:315
static AltimetryMap & createNotValid()
Definition altimetry-definitions.h:800
friend const Altimetry operator+(const double left, const Altimetry &right)
virtual Altimetry * create(const Altimetry ©) const
Definition altimetry-definitions.h:131
friend const Altimetry operator*(const Altimetry &left, const double right)
int total_range_steps
Definition altimetry-definitions.h:536
friend const Altimetry operator-(const Altimetry &left, const double right)
virtual Altimetry * timeEvolve(const Time &time_value)
Definition altimetry-definitions.cpp:213
Altimetry()
Definition altimetry-definitions.cpp:59
friend bool operator==(const Altimetry &left, const Altimetry &right)
Definition altimetry-definitions.h:840
static void setDebug(bool flag)
Definition altimetry-definitions.h:242
Altimetry & sumValue(double range, double altimetry)
Definition altimetry-definitions.h:815
friend bool operator!=(const Altimetry &left, const Altimetry &right)
Definition altimetry-definitions.h:846
double min_altimetry_value
Definition altimetry-definitions.h:541
Altimetry & setEvolutionTimeQuantum(double quantum)
Definition altimetry-definitions.h:254
int getTotalRangeSteps() const
Definition altimetry-definitions.h:321
Altimetry & setRange(double r)
Definition altimetry-definitions.h:266
friend Altimetry & operator-=(Altimetry &left, double right)
long double range_precision
Definition altimetry-definitions.h:551
friend const Altimetry operator-(const Altimetry &left, const Altimetry &right)
virtual Altimetry * randomize(double ratio_incr_value) const
Definition altimetry-definitions.cpp:189
int size() const
Definition altimetry-definitions.h:223
double getMaxRangeValue() const
Definition altimetry-definitions.h:279
Altimetry & setDepth(double d)
Definition altimetry-definitions.h:272
friend const Altimetry operator*(const double left, const Altimetry &right)
virtual bool isValid() const
Definition altimetry-definitions.cpp:123
friend Altimetry & operator*=(Altimetry &left, double right)
friend Altimetry & operator+=(Altimetry &left, double right)
AltCIt begin() const
Definition altimetry-definitions.h:204
static bool debug
Definition altimetry-definitions.h:526
friend Altimetry & operator-=(Altimetry &left, const Altimetry &right)
Time last_evolution_time
Definition altimetry-definitions.h:556
friend Altimetry & operator/=(Altimetry &left, double right)
virtual Altimetry * create(AltimetryMap &map) const
Definition altimetry-definitions.h:123
double max_altimetry_value
Definition altimetry-definitions.h:546
friend const Altimetry operator/(const Altimetry &left, const double right)
a class for time date manipulation
Definition time-definitions.h:95
Provides the interface for the woss::PDouble class.
Definitions and library for woss::Time, woss::SimTime, woss::TimeReference and woss::TimeReferenceTcl...