QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
CompositeConstraint::Impl Class Referencefinal
+ Inheritance diagram for CompositeConstraint::Impl:
+ Collaboration diagram for CompositeConstraint::Impl:

Public Member Functions

 Impl (Constraint c1, Constraint c2)
 
bool test (const Array &params) const override
 Tests if params satisfy the constraint. More...
 
Array upperBound (const Array &params) const override
 Returns upper bound for given parameters. More...
 
Array lowerBound (const Array &params) const override
 Returns lower bound for given parameters. More...
 
- Public Member Functions inherited from Constraint::Impl
virtual ~Impl ()=default
 
virtual bool test (const Array &params) const =0
 Tests if params satisfy the constraint. More...
 
virtual Array upperBound (const Array &params) const
 Returns upper bound for given parameters. More...
 
virtual Array lowerBound (const Array &params) const
 Returns lower bound for given parameters. More...
 

Private Attributes

Constraint c1_
 
Constraint c2_
 

Detailed Description

Definition at line 142 of file constraint.hpp.

Constructor & Destructor Documentation

◆ Impl()

Impl ( Constraint  c1,
Constraint  c2 
)

Definition at line 144 of file constraint.hpp.

Member Function Documentation

◆ test()

bool test ( const Array params) const
overridevirtual

Tests if params satisfy the constraint.

Implements Constraint::Impl.

Definition at line 145 of file constraint.hpp.

+ Here is the call graph for this function:

◆ upperBound()

Array upperBound ( const Array params) const
overridevirtual

Returns upper bound for given parameters.

Reimplemented from Constraint::Impl.

Definition at line 148 of file constraint.hpp.

+ Here is the call graph for this function:

◆ lowerBound()

Array lowerBound ( const Array params) const
overridevirtual

Returns lower bound for given parameters.

Reimplemented from Constraint::Impl.

Definition at line 157 of file constraint.hpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ c1_

Constraint c1_
private

Definition at line 168 of file constraint.hpp.

◆ c2_

Constraint c2_
private

Definition at line 168 of file constraint.hpp.