|
codac 2.0.0
|
Base class for codomain slices attached to a temporal slice. More...
#include <codac2_SliceBase.h>


Public Member Functions | |
| virtual | ~SliceBase ()=default |
| Virtual destructor. | |
| virtual std::shared_ptr< SliceBase > | copy () const =0 |
| Duplicates this slice. | |
| virtual void | init ()=0 |
| Initializes this slice to its unbounded codomain. | |
| virtual void | set_empty ()=0 |
| Sets this slice to the empty codomain. | |
| const Interval & | t0_tf () const |
| Returns the temporal domain of this slice. | |
| const TSlice & | tslice () const |
| Returns the temporal slice associated with this object. | |
| std::shared_ptr< const SliceBase > | prev_slice () const |
| Returns the previous slice of the same tube. | |
| std::shared_ptr< const SliceBase > | next_slice () const |
| Returns the next slice of the same tube. | |
Protected Member Functions | |
| SliceBase (const SlicedTubeBase &tube, const std::list< TSlice >::iterator &it_tslice) | |
| Creates a slice attached to a tube and a temporal slice. | |
Protected Attributes | |
| const SlicedTubeBase & | _tube |
| Parent sliced tube. | |
| std::list< TSlice >::iterator | _it_tslice |
| Iterator to the associated temporal slice. | |
Base class for codomain slices attached to a temporal slice.
A SliceBase represents the codomain of a sliced tube over one temporal slice of a TDomain.
This abstract class stores:
Concrete derived classes, such as Slice<T>, provide the actual codomain representation and the associated operations.
|
protected |
Creates a slice attached to a tube and a temporal slice.
| tube | sliced tube owning this slice |
| it_tslice | iterator to the associated temporal slice |
|
pure virtual |
Duplicates this slice.
Implemented in codac2::Slice< T >.
| const Interval & codac2::SliceBase::t0_tf | ( | ) | const |
Returns the temporal domain of this slice.
| const TSlice & codac2::SliceBase::tslice | ( | ) | const |
Returns the temporal slice associated with this object.
| std::shared_ptr< const SliceBase > codac2::SliceBase::prev_slice | ( | ) | const |
Returns the previous slice of the same tube.
The previous slice is searched in the temporal element preceding the current TSlice.
| std::shared_ptr< const SliceBase > codac2::SliceBase::next_slice | ( | ) | const |
Returns the next slice of the same tube.
The next slice is searched in the temporal element following the current TSlice.