codac 2.0.0
Loading...
Searching...
No Matches
codac2_TubeBase.h
Go to the documentation of this file.
1
9
10#pragma once
11
12#include "codac2_Domain.h"
13#include "codac2_TDomain.h"
14
15namespace codac2
16{
29 class TubeBase : public Domain
30 {
31 public:
32
38 explicit TubeBase(const std::shared_ptr<TDomain>& tdomain)
40 {
41 assert_release(tdomain != nullptr);
42 }
43
49 inline const std::shared_ptr<TDomain>& tdomain() const
50 {
51 return _tdomain;
52 }
53
61 inline Interval t0_tf() const
62 {
63 return _tdomain->t0_tf();
64 }
65
66 protected:
67
71 const std::shared_ptr<TDomain> _tdomain;
72 };
73}
Interval class, for representing closed and connected subsets of .
Definition codac2_Interval.h:49
const std::shared_ptr< TDomain > _tdomain
Shared temporal domain of this tube.
Definition codac2_TubeBase.h:71
TubeBase(const std::shared_ptr< TDomain > &tdomain)
Creates a tube over a given temporal domain.
Definition codac2_TubeBase.h:38
Interval t0_tf() const
Returns the global temporal interval of this tube.
Definition codac2_TubeBase.h:61
const std::shared_ptr< TDomain > & tdomain() const
Returns the temporal domain of this tube.
Definition codac2_TubeBase.h:49
Definition codac2_OctaSym.h:21