1.4.0
CCC
 
Constraints Class Reference

#include <Constraints.hpp>

Inheritance diagram for Constraints:
AStringable

Public Member Functions

 Constraints (double constantSillValue=TEST, const VectorDouble &constantSills=VectorDouble())
 
 Constraints (const Constraints &m)
 
Constraintsoperator= (const Constraints &m)
 
virtual ~Constraints ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 
void addItem (const ConsItem *item)
 
void addItemFromParamId (const EConsElem &elem=EConsElem::fromKey("UNKNOWN"), int icov=0, int iv1=0, int iv2=0, const EConsType &type=EConsType::fromKey("DEFAULT"), double value=0.)
 
int isDefined () const
 
int isDefinedForSill () const
 
int getConsItemNumber () const
 
const std::vector< ConsItem * > & getConsItems () const
 
const ConsItemgetConsItems (int i) const
 
void modifyConstraintsForSill ()
 
double getConstantSillValue () const
 
const VectorDoublegetConstantSills () const
 
double getConstantSills (int ivar) const
 
void setConstantSillValue (double value)
 
void setConstantSills (const VectorDouble &constantSills)
 
void expandConstantSill (int nvar)
 
bool isConstraintSillDefined () const
 
void setValue (int item, double value)
 
- Public Member Functions inherited from AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (int level) const final
 

Constructor & Destructor Documentation

◆ Constraints() [1/2]

Constraints::Constraints ( double  constantSillValue = TEST,
const VectorDouble constantSills = VectorDouble() 
)

◆ Constraints() [2/2]

Constraints::Constraints ( const Constraints m)

◆ ~Constraints()

Constraints::~Constraints ( )
virtual

Member Function Documentation

◆ addItem()

void Constraints::addItem ( const ConsItem item)

◆ addItemFromParamId()

void Constraints::addItemFromParamId ( const EConsElem &  elem = EConsElem::fromKey("UNKNOWN"),
int  icov = 0,
int  iv1 = 0,
int  iv2 = 0,
const EConsType &  type = EConsType::fromKey("DEFAULT"),
double  value = 0. 
)

◆ expandConstantSill()

void Constraints::expandConstantSill ( int  nvar)

◆ getConsItemNumber()

int Constraints::getConsItemNumber ( ) const
inline

◆ getConsItems() [1/2]

const std::vector<ConsItem*>& Constraints::getConsItems ( ) const
inline

◆ getConsItems() [2/2]

const ConsItem* Constraints::getConsItems ( int  i) const
inline

◆ getConstantSills() [1/2]

const VectorDouble& Constraints::getConstantSills ( ) const
inline

◆ getConstantSills() [2/2]

double Constraints::getConstantSills ( int  ivar) const
inline

◆ getConstantSillValue()

double Constraints::getConstantSillValue ( ) const
inline

◆ isConstraintSillDefined()

bool Constraints::isConstraintSillDefined ( ) const

◆ isDefined()

int Constraints::isDefined ( ) const
inline

◆ isDefinedForSill()

int Constraints::isDefinedForSill ( ) const

◆ modifyConstraintsForSill()

void Constraints::modifyConstraintsForSill ( )

◆ operator=()

Constraints & Constraints::operator= ( const Constraints m)

◆ setConstantSills()

void Constraints::setConstantSills ( const VectorDouble constantSills)
inline

◆ setConstantSillValue()

void Constraints::setConstantSillValue ( double  value)
inline

◆ setValue()

void Constraints::setValue ( int  item,
double  value 
)

◆ toString()

String Constraints::toString ( const AStringFormat strfmt = nullptr) const
overridevirtual

Reimplemented from AStringable.


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