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
{
15
class
TerminationType
16
{
17
public
:
18
TerminationType
(
TerminationStatus
status
) : status_(
status
) {}
19
20
operator
bool()
const
21
{
22
return
status_ ==
TerminationStatus::SUCCESS
;
23
}
24
operator
TerminationStatus
()
const
25
{
26
return
status_;
27
}
28
29
TerminationStatus
status
()
const
30
{
31
return
status_;
32
}
33
34
private
:
35
TerminationStatus
status_;
36
};
37
38
class
InitTermination
:
public
TerminationType
39
{
40
public
:
41
using
TerminationType::TerminationType
;
42
InitTermination
(
const
TerminationType
& tt) :
TerminationType
(tt) {}
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
include
jrl-qp
internal
TerminationType.h
Generated by
1.8.17