TerminationType.h
Go to the documentation of this file.
1 /* Copyright 2020 CNRS-AIST JRL */
2 
3 #pragma once
4 
5 #include <jrl-qp/api.h>
6 #include <jrl-qp/enums.h>
7 
8 namespace jrl::qp::internal
9 {
16 {
17 public:
19 
20  operator bool() const
21  {
22  return status_ == TerminationStatus::SUCCESS;
23  }
24  operator TerminationStatus() const
25  {
26  return status_;
27  }
28 
30  {
31  return status_;
32  }
33 
34 private:
35  TerminationStatus status_;
36 };
37 
39 {
40 public:
43 };
44 } // namespace jrl::qp::internal
jrl::qp::TerminationStatus::SUCCESS
@ SUCCESS
jrl::qp::internal::TerminationType
Definition: TerminationType.h:15
jrl::qp::internal::InitTermination::InitTermination
InitTermination(const TerminationType &tt)
Definition: TerminationType.h:42
jrl::qp::TerminationStatus
TerminationStatus
Definition: enums.h:26
jrl::qp::internal::TerminationType::TerminationType
TerminationType(TerminationStatus status)
Definition: TerminationType.h:18
jrl::qp::internal
Definition: ActiveSet.h:11
jrl::qp::internal::TerminationType::status
TerminationStatus status() const
Definition: TerminationType.h:29
enums.h
api.h
jrl::qp::internal::InitTermination
Definition: TerminationType.h:38