codac 1.5.6
Loading...
Searching...
No Matches
codac2_AbstractConstTube.h
Go to the documentation of this file.
1
9
10#pragma once
11
12#include <list>
13#include <memory>
14
15#include "codac2_Interval.h"
17
18namespace codac2
19{
20 template<typename W, typename T>
21 class AbstractConstTube
22 {
23 public:
24
25 AbstractConstTube()
26 {
27
28 }
29
30 AbstractConstTube(const T& x);
31
32 virtual ~AbstractConstTube()
33 {
34
35 }
36
37 virtual size_t size() const = 0;
38 //virtual BoolInterval contains(const TrajectoryVector& value) const = 0;
39 virtual Interval t0_tf() const = 0;
40 virtual W codomain() const = 0;
41 // virtual W operator()(double t) const = 0;
42 //virtual W operator()(const Interval& t) const = 0;
43
44 //TubeVectorComponent operator[](size_t index);
45 //const TubeVectorComponent operator[](size_t index) const;
46
47 //friend std::ostream& operator<<(std::ostream& os, const TubeVector_& x);
48 void print(std::ostream& os) const
49 {
50 os << t0_tf()
51 << "↦" << codomain()
52 << std::flush;
53 }
54 };
55
56}