56 s._slices.erase(
this);
83 const auto& slices =
_tdomain->front().slices();
84 assert(slices.find(
this) != slices.end());
85 return slices.at(
this);
97 inline std::shared_ptr<const SliceBase>
last_slice()
const
99 const auto& slices =
_tdomain->back().slices();
100 assert(slices.find(
this) != slices.end());
101 return slices.at(
this);
std::shared_ptr< const SliceBase > first_slice() const
Returns the first slice of this tube.
Definition codac2_SlicedTubeBase.h:81
~SlicedTubeBase()
Destroys this sliced tube.
Definition codac2_SlicedTubeBase.h:53
size_t nb_slices() const
Returns the number of temporal elements of this tube.
Definition codac2_SlicedTubeBase.h:67
std::shared_ptr< const SliceBase > last_slice() const
Returns the last slice of this tube.
Definition codac2_SlicedTubeBase.h:97
SlicedTubeBase(const std::shared_ptr< TDomain > &tdomain)
Creates a sliced tube over a given temporal domain.
Definition codac2_SlicedTubeBase.h:43
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
const std::shared_ptr< TDomain > & tdomain() const
Returns the temporal domain of this tube.
Definition codac2_TubeBase.h:49
Definition codac2_OctaSym.h:21