Class xlifepp::SetOfConstraints#

class SetOfConstraints : public std::map<const Unknown*, Constraints*>#

class handles a set of Constraints indexed by Unknown pointer

a zero Unknown pointer means a global constraints: coupling unknowns constraints in that case, there is only one global constraints system in SetOfConstraints if not the case, to each non zero Unknown pointer is associated a constraints system

Note : SetOfConstraints is constructed from EssentialConditions (also stored) and it is deep copied to Term so it is not shared except the virtual dual space/unknown that are not duplicated

Public Functions

inline SetOfConstraints(const EssentialConditions &ecs)#

constructor from EssentialConditions

SetOfConstraints(const SetOfConstraints&)#

copy constructor with full copy of constraints

inline SetOfConstraints(const std::map<const Unknown*, Constraints*> &mc)#

constructor from constraints pointers (no full copy of constraints !)

inline SetOfConstraints(const Unknown *u, Constraints *c = nullptr)#

constructor from a constraints pointer (no full copy of constraints !)

~SetOfConstraints()#

destructor with deallocation of constraints pointers

void clear()#

deallocate constraints pointer and reset the map

void decEcShare() const#

decrement row unknowns nbEcShare

void incEcShare() const#

increment row unknowns nbEcShare

bool isGlobal() const#

return true if SetOfConstraints has a unique global constraints

bool isReduced() const#

return true if all constraints in SetOfConstraints have been already reduced

Constraints *operator()(const Unknown*) const#

direct access to constraints linked to unknown

SetOfConstraints &operator=(const SetOfConstraints&)#

assign operator with full copy of constraints

void print(std::ostream&) const#

print utility

void setRowUnknowns()#

set rowUnknowns list

ValueType valueType() const#

return value type of set of constraints (i.e involved real or complex)

Public Members

std::set<Unknown*> rowUnknowns#

set of row unknowns (ghost)

Friends

friend std::ostream &operator<<(std::ostream&, const SetOfConstraints&)#

print operator