codac 1.5.6
Loading...
Searching...
No Matches
codac2_SepCtcPair.h
Go to the documentation of this file.
1
9
10#pragma once
11
12#include "codac2_Sep.h"
13#include "codac2_CtcWrapper.h"
14#include "codac2_Collection.h"
16
17namespace codac2
18{
19 class SepCtcPair : public Sep<SepCtcPair>
20 {
21 public:
22
23 template<typename C1, typename C2>
24 requires (IsCtcBaseOrPtr<C1,IntervalVector> && IsCtcBaseOrPtr<C2,IntervalVector>)
25 SepCtcPair(const C1& ctc_in, const C2& ctc_out)
26 : Sep<SepCtcPair>(size_of(ctc_in)), _ctc_in_out(ctc_in, ctc_out)
27 {
28 assert_release(size_of(ctc_in) == size_of(ctc_out));
29 }
30
31 BoxPair separate(const IntervalVector& x) const;
32
33 protected:
34
35 const Collection<CtcBase<IntervalVector>> _ctc_in_out;
36 };
37}