18 class TDomain :
public std::list<TSlice>
22 explicit TDomain(
const Interval& t0_tf);
23 explicit TDomain(
const Interval& t0_tf,
double dt,
bool with_gates =
false);
27 Interval t0_tf()
const;
28 size_t nb_tslices()
const;
29 size_t nb_tubes()
const;
30 bool all_gates_defined()
const;
31 std::vector<TSlice> tslices_vector()
const;
33 std::list<TSlice>::iterator tslice(
double t);
34 std::list<TSlice>::iterator sample(
double t,
bool with_gate =
false);
35 void sample(
const Interval& t0_tf,
double dt,
bool with_gates =
false);
38 friend std::ostream& operator<<(std::ostream& os,
const TDomain& x);
39 static bool are_same(
const std::shared_ptr<const TDomain>& tdom1,
const std::shared_ptr<const TDomain>& tdom2);
43 friend std::shared_ptr<TDomain> create_tdomain(
const Interval&);
44 friend std::shared_ptr<TDomain> create_tdomain(
const Interval&,
double,
bool);
47 std::shared_ptr<TDomain> create_tdomain(
const Interval& t0_tf =
Interval(-oo,oo));
48 std::shared_ptr<TDomain> create_tdomain(
const Interval& t0_tf,
double dt,
bool with_gates =
false);
Interval class, for representing closed and connected subsets of .
Definition codac2_Interval.h:62