Represents a SliceArrayOf, SliceMissingOf, or SliceJaggedOf with missing values: None
(no equivalent in NumPy).
More...
#include <Slice.h>
Public Member Functions | |
SliceMissingOf (const IndexOf< T > &index, const Index8 &originalmask, const SliceItemPtr &content) | |
Creates a SliceMissingOf with a full set of parameters. More... | |
const IndexOf< T > | index () const |
Positions in the content or negative values representing None in the same sense as IndexedOptionArray . More... | |
const Index8 | originalmask () const |
The array of booleans from which the index was derived. More... | |
const SliceItemPtr | content () const |
The non-None values of the array, much like an IndexedOptionArray's content . More... | |
int64_t | length () const |
The length of the array: len(index) . More... | |
const SliceItemPtr | shallow_copy () const override |
Copies this node without copying any associated arrays. More... | |
const std::string | tostring () const override |
Returns a string representation of this slice item (single-line custom format). More... | |
const std::string | tostring_part () const |
bool | preserves_type (const Index64 &advanced) const override |
Returns true if this slice would preserve an array's slice and therefore should pass on Content::parameters . More... | |
virtual bool | referentially_equal (const SliceItemPtr &other) const override |
Returns true if this slice item has all the same buffers and parameters as other ; false otherwise. More... | |
![]() | |
virtual | ~SliceItem () |
Virtual destructor acts as a first non-inline virtual function that determines a specific translation unit in which vtable shall be emitted. More... | |
virtual const SliceItemPtr | shallow_copy () const =0 |
Copies this node without copying any associated arrays. More... | |
virtual const std::string | tostring () const =0 |
Returns a string representation of this slice item (single-line custom format). More... | |
virtual bool | preserves_type (const Index64 &advanced) const =0 |
Returns true if this slice would preserve an array's slice and therefore should pass on Content::parameters . More... | |
virtual bool | referentially_equal (const SliceItemPtr &other) const =0 |
Returns true if this slice item has all the same buffers and parameters as other ; false otherwise. More... | |
Represents a SliceArrayOf, SliceMissingOf, or SliceJaggedOf with missing values: None
(no equivalent in NumPy).
Currently, the only type specialization is T = int64_t
.
SliceMissingOf | ( | const IndexOf< T > & | index, |
const Index8 & | originalmask, | ||
const SliceItemPtr & | content | ||
) |
Creates a SliceMissingOf with a full set of parameters.
const SliceItemPtr content | ( | ) | const |
const IndexOf< T > index | ( | ) | const |
Positions in the content or negative values representing None
in the same sense as IndexedOptionArray
.
int64_t length | ( | ) | const |
The length of the array: len(index)
.
|
overridevirtual |
Returns true
if this slice would preserve an array's slice and therefore should pass on Content::parameters
.
advanced | The index that is passed through Content::getitem_next . |
Always true
for SliceMissingOf.
Implements SliceItem.
|
overridevirtual |
Returns true
if this slice item has all the same buffers and parameters as other
; false
otherwise.
other | The slice item to compare this with. |
Implements SliceItem.
|
overridevirtual |
Copies this node without copying any associated arrays.
Implements SliceItem.
|
overridevirtual |
Returns a string representation of this slice item (single-line custom format).
Implements SliceItem.
const std::string tostring_part | ( | ) | const |