World Ocean Simulation System (WOSS) library
woss::Deck41TypeTests Class Reference

Abstraction layer for database and data manipulation. More...

#include <sediment-deck41-db-logic-control.h>

Collaboration diagram for woss::Deck41TypeTests:
Collaboration graph

Public Member Functions

constexpr Deck41TypeTests ()=default
 ~Deck41TypeTests ()=default
constexpr bool conditionFloorA (const Deck41Types &types) const
constexpr bool conditionFloorB (const Deck41Types &types) const
constexpr bool conditionFloorC (const Deck41Types &types) const
constexpr bool conditionFloorD (const Deck41Types &types) const
constexpr bool conditionFloorE (const Deck41Types &types) const
constexpr bool conditionFloorF (const Deck41Types &types) const
constexpr bool conditionFloorG (const Deck41Types &types) const
constexpr bool getConditionA () const
constexpr bool getConditionB () const
constexpr bool getConditionC () const
constexpr bool getConditionD () const
constexpr bool getConditionE () const
constexpr bool getConditionF () const
constexpr bool getConditionG () const
constexpr void updateAllConditions (const Deck41Types &types)

Private Attributes

bool condition_a = false
bool condition_b = false
bool condition_c = false
bool condition_d = false
bool condition_e = false
bool condition_f = false
bool condition_g = false

Detailed Description

Abstraction layer for database and data manipulation.

Deck41TypeTests helps SedimDeck41Db deciding what is the best DECK41 Sediment value to return. To this purpose it provides 8 conditional tests

Constructor & Destructor Documentation

◆ Deck41TypeTests()

woss::Deck41TypeTests::Deck41TypeTests ( )
constexprdefault

◆ ~Deck41TypeTests()

woss::Deck41TypeTests::~Deck41TypeTests ( )
default

Member Function Documentation

◆ conditionFloorA()

bool woss::Deck41TypeTests::conditionFloorA ( const Deck41Types & types) const
inlineconstexpr

Deck41TypeTests test A. If it succeed SedimDeck41Db will return DECK41 main type as Sediment

Parameters
typesconst reference to a Deck41Types object
Returns
true if condition holds, false otherwise

Referenced by updateAllConditions().

◆ conditionFloorB()

bool woss::Deck41TypeTests::conditionFloorB ( const Deck41Types & types) const
inlineconstexpr

Deck41TypeTests test B. If it succeed SedimDeck41Db will return DECK41 secondary type as Sediment

Parameters
typesconst reference to a Deck41Types object
Returns
true if condition holds, false otherwise

Referenced by updateAllConditions().

◆ conditionFloorC()

bool woss::Deck41TypeTests::conditionFloorC ( const Deck41Types & types) const
inlineconstexpr

Deck41TypeTests test C. If it succeed SedimDeck41Db will try other coordinates, if those fails it will return DECK41 main type as Sediment

Parameters
typesconst reference to a Deck41Types object
Returns
true if condition holds, false otherwise

Referenced by updateAllConditions().

◆ conditionFloorD()

bool woss::Deck41TypeTests::conditionFloorD ( const Deck41Types & types) const
inlineconstexpr

Deck41TypeTests test D. If it succeed SedimDeck41Db will try other coordinates, if those fails it will return DECK41 secondary type as Sediment

Parameters
typesconst reference to a Deck41Types object
Returns
true if condition holds, false otherwise

Referenced by updateAllConditions().

◆ conditionFloorE()

bool woss::Deck41TypeTests::conditionFloorE ( const Deck41Types & types) const
inlineconstexpr

Deck41TypeTests test E. If it succeed SedimDeck41Db will return DECK41 a weighted average of both main and secondary type as Sediment

Parameters
typesconst reference to a Deck41Types object
Returns
true if condition holds, false otherwise

Referenced by updateAllConditions().

◆ conditionFloorF()

bool woss::Deck41TypeTests::conditionFloorF ( const Deck41Types & types) const
inlineconstexpr

Deck41TypeTests test F. If it succeed SedimDeck41Db will return DECK41 a weighted average of both main and secondary type as Sediment

Parameters
typesconst reference to a Deck41Types object
Returns
true if condition holds, false otherwise

Referenced by updateAllConditions().

◆ conditionFloorG()

bool woss::Deck41TypeTests::conditionFloorG ( const Deck41Types & types) const
inlineconstexpr

Deck41TypeTests test G. If it succeed SedimDeck41Db will try other coordinates, if those fails a Sediment not valid will be returned

Parameters
typesconst reference to a Deck41Types object
Returns
true if condition holds, false otherwise

Referenced by updateAllConditions().

◆ getConditionA()

bool woss::Deck41TypeTests::getConditionA ( ) const
inlineconstexpr

Gets condition_a bool value

Returns
condition_a value

References condition_a.

Referenced by woss::SedimDeck41Db::doTestA().

◆ getConditionB()

bool woss::Deck41TypeTests::getConditionB ( ) const
inlineconstexpr

Gets condition_b bool value

Returns
condition_b value

References condition_b.

Referenced by woss::SedimDeck41Db::doTestA().

◆ getConditionC()

bool woss::Deck41TypeTests::getConditionC ( ) const
inlineconstexpr

Gets condition_c bool value

Returns
condition_c value

References condition_c.

Referenced by woss::SedimDeck41Db::doTestB(), and woss::SedimDeck41Db::doTestC().

◆ getConditionD()

bool woss::Deck41TypeTests::getConditionD ( ) const
inlineconstexpr

Gets condition_d bool value

Returns
condition_d value

References condition_d.

Referenced by woss::SedimDeck41Db::doTestB(), and woss::SedimDeck41Db::doTestC().

◆ getConditionE()

bool woss::Deck41TypeTests::getConditionE ( ) const
inlineconstexpr

Gets condition_e bool value

Returns
condition_e value

References condition_e.

Referenced by woss::SedimDeck41Db::doTestA().

◆ getConditionF()

bool woss::Deck41TypeTests::getConditionF ( ) const
inlineconstexpr

Gets condition_f bool value

Returns
condition_f value

References condition_f.

Referenced by woss::SedimDeck41Db::doTestA().

◆ getConditionG()

bool woss::Deck41TypeTests::getConditionG ( ) const
inlineconstexpr

Gets condition_g bool value

Returns
condition_g value

References condition_g.

Referenced by woss::SedimDeck41Db::doTestB().

◆ updateAllConditions()

void woss::Deck41TypeTests::updateAllConditions ( const Deck41Types & types)
inlineconstexpr

Performs all tests at once

Parameters
typesconst reference to a Deck41Types object

References condition_a, condition_b, condition_c, condition_d, condition_e, condition_f, condition_g, conditionFloorA(), conditionFloorB(), conditionFloorC(), conditionFloorD(), conditionFloorE(), conditionFloorF(), and conditionFloorG().

Here is the call graph for this function:

Member Data Documentation

◆ condition_a

bool woss::Deck41TypeTests::condition_a = false
private

◆ condition_b

bool woss::Deck41TypeTests::condition_b = false
private

◆ condition_c

bool woss::Deck41TypeTests::condition_c = false
private

◆ condition_d

bool woss::Deck41TypeTests::condition_d = false
private

◆ condition_e

bool woss::Deck41TypeTests::condition_e = false
private

◆ condition_f

bool woss::Deck41TypeTests::condition_f = false
private

◆ condition_g

bool woss::Deck41TypeTests::condition_g = false
private

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