Handle all the constraints added to the problem.
More...
#include <ConstraintSet.hpp>
template<Qontrol::ControlOutput output>
class Qontrol::Constraint::ConstraintSet< output >
Handle all the constraints added to the problem.
- Template Parameters
-
output | The constraints control output |
◆ add() [1/2]
template<Qontrol::ControlOutput output>
template<template< Qontrol::ControlOutput output2 > class ControlInput>
Add a custom constraint to the constraint set.
- Template Parameters
-
- Parameters
-
- Returns
- std::shared_ptr<ControlInput<output>>
◆ add() [2/2]
template<Qontrol::ControlOutput output>
Add an implemented constaint in the constraint set.
- Template Parameters
-
ControlInput | The input type of the constraint |
- Parameters
-
constraint_name | The name of the constraint |
- Returns
- std::shared_ptr<ControlInput<output>> The pointer to the constraint
◆ exist()
template<Qontrol::ControlOutput output>
Check if a constraint existe in the constraint set.
- Parameters
-
◆ findConstraintIterator()
template<Qontrol::ControlOutput output>
Find the iterator of a constraint in the constraint set given its name.
- Parameters
-
- Returns
- std::vector<std::string>::iterator the constraint iterator
◆ getConstraintIndex()
template<Qontrol::ControlOutput output>
Get the index of a constraint in the constraint set given its name.
- Parameters
-
constraint_name | the constraint name |
- Returns
- int the constraint index
◆ getConstraints()
template<Qontrol::ControlOutput output>
Get the constraint set.
- Returns
- std::vector<std::shared_ptr<Constraint::GenericConstraint>>
◆ remove() [1/2]
template<Qontrol::ControlOutput output>
Remove a constraint from the constraint set.
- Parameters
-
◆ remove() [2/2]
template<Qontrol::ControlOutput output>
Remove a constraint from the constraint set given its name.
- Parameters
-
◆ update()
template<Qontrol::ControlOutput output>
Call the update function of all the constraints in the constraint set.
The documentation for this class was generated from the following file: