67 using std::list<
TSlice>::value_type;
68 using std::list<
TSlice>::size_type;
69 using std::list<
TSlice>::difference_type;
70 using std::list<
TSlice>::reference;
71 using std::list<
TSlice>::const_reference;
72 using std::list<
TSlice>::iterator;
73 using std::list<
TSlice>::const_iterator;
74 using std::list<
TSlice>::reverse_iterator;
75 using std::list<
TSlice>::const_reverse_iterator;
76 using std::list<
TSlice>::begin;
77 using std::list<
TSlice>::end;
78 using std::list<
TSlice>::cbegin;
79 using std::list<
TSlice>::cend;
80 using std::list<
TSlice>::rbegin;
81 using std::list<
TSlice>::rend;
82 using std::list<
TSlice>::crbegin;
83 using std::list<
TSlice>::crend;
84 using std::list<
TSlice>::front;
85 using std::list<
TSlice>::back;
86 using std::list<
TSlice>::size;
87 using std::list<
TSlice>::empty;
148 std::list<TSlice>::iterator
tslice(
double t);
161 std::list<TSlice>::iterator
sample(
double t,
bool with_gate =
false);
216 static bool are_same(
const std::shared_ptr<const TDomain>& tdom1,
const std::shared_ptr<const TDomain>& tdom2);
222 std::map<double,std::list<TSlice>::iterator> _time_index;
224 std::list<TSlice>::iterator insert_tslice(std::list<TSlice>::iterator pos,
const TSlice& ts);
225 std::list<TSlice>::iterator erase_tslice(std::list<TSlice>::iterator it);
Interval class, for representing closed and connected subsets of .
Definition codac2_Interval.h:50
void truncate(const Interval &new_tdomain)
Restricts this temporal domain to a subdomain.
size_t nb_tslices() const
Returns the number of temporal elements stored in this partition.
friend std::shared_ptr< TDomain > create_tdomain(const Interval &t0_tf)
Creates a temporal domain made of a single slice.
void delete_gates()
Removes all explicit gates from this temporal domain.
static bool are_same(const std::shared_ptr< const TDomain > &tdom1, const std::shared_ptr< const TDomain > &tdom2)
Tests whether two temporal domains share the same temporal partition.
std::vector< TSlice > tslices_vector() const
Returns a copy of the temporal slices as a std::vector.
friend std::shared_ptr< TDomain > create_tdomain(const Interval &t0_tf, double dt, bool with_gates)
Creates a sampled temporal domain.
friend std::ostream & operator<<(std::ostream &os, const TDomain &x)
Stream output for a temporal domain.
Interval t0_tf() const
Returns the global temporal domain .
TDomain(const Interval &t0_tf)
Creates a temporal domain made of a single TSlice.
void sample(const Interval &t0_tf, double dt, bool with_gates=false)
Samples this temporal domain over a time interval.
size_t nb_tubes() const
Returns the number of sliced tubes attached to this temporal domain.
TDomain(const Interval &t0_tf, double dt, bool with_gates=true)
Creates a sampled temporal domain over .
bool all_gates_defined() const
Tests whether all sampling gates are explicitly represented.
std::list< TSlice >::iterator tslice(double t)
Returns the temporal slice containing .
std::list< TSlice >::iterator sample(double t, bool with_gate=false)
Samples this temporal domain at time .
Temporal slice shared by sliced tubes.
Definition codac2_TSlice.h:35
Definition codac2_OctaSym.h:21
std::shared_ptr< TDomain > create_tdomain(const Interval &t0_tf=Interval(-oo, oo))
Creates a temporal domain made of a single slice.