Class Slice

Inheritance Relationships

Base Type

  • public Object

Class Documentation

class Slice : public Object

Slice defines a type of slice.

Public Functions

inline Slice()

The constructor of Slice.

Returns

The instance of Slice.

inline Slice(const TypePtr &start, const TypePtr &stop, const TypePtr &step)

The constructor of Slice with some parameters.

Parameters
  • start[in] Define the start type of Slice.

  • stop[in] Define the stop type of Slice.

  • step[in] Define the step type of Slice.

Returns

The instance of Slice.

~Slice() override = default

The destructor of Slice.

inline TypePtr get_start() const

Get the start type.

Returns

The start type.

inline TypePtr get_stop() const

Get the stop type.

Returns

The stop type.

inline TypePtr get_step() const

Get the step type.

Returns

The step type.