None Class Reference

Represents a scalar missing value, which is None in Python. More...

#include <None.h>

Inheritance diagram for None:
Content

Public Member Functions

 None ()
 Creates a None instance. More...
 
bool isscalar () const override
 Returns true if the data represented by this node is scalar, not a true array. More...
 
const std::string classname () const override
 User-friendly name of this class: "None". More...
 
void setidentities () override
 
void setidentities (const IdentitiesPtr &identities) override
 
const TypePtr type (const util::TypeStrs &typestrs) const override
 
const FormPtr form (bool materialize) const override
 
kernel::lib kernels () const override
 Returns the kernel library enum for all nested ptr_lib within the array's tree structure. If different libraries are associated with nodes of the same tree, this returns kernel::lib::size to indicate that it is "mixed". More...
 
void caches (std::vector< ArrayCachePtr > &out) const override
 Accumulates all the unique #ArrayCache objects from nested #VirtualArray nodes. (Uniqueness is determined by pointer value.) More...
 
const std::string tostring_part (const std::string &indent, const std::string &pre, const std::string &post) const override
 Internal function to build an output string for tostring. More...
 
void tojson_part (ToJson &builder, bool include_beginendlist) const override
 Internal function to produce a JSON representation one node at a time. More...
 
void nbytes_part (std::map< size_t, int64_t > &largest) const override
 
int64_t length () const override
 Always returns -1. More...
 
const ContentPtr shallow_copy () const override
 Copies this node without copying any nodes hierarchically nested within it or any array/index/identity buffers. More...
 
const ContentPtr deep_copy (bool copyarrays, bool copyindexes, bool copyidentities) const override
 Copies this node and all nodes hierarchically nested within it, optionally copying the associated arrays, indexes, and identities, too. More...
 
void check_for_iteration () const override
 Performs up-front validity checks on an array so that they don't have to be checked in getitem_at_nowrap for each item. More...
 
const ContentPtr getitem_nothing () const override
 
const ContentPtr getitem_at (int64_t at) const override
 
const ContentPtr getitem_at_nowrap (int64_t at) const override
 
const ContentPtr getitem_range (int64_t start, int64_t stop) const override
 
const ContentPtr getitem_range_nowrap (int64_t start, int64_t stop) const override
 
const ContentPtr getitem_field (const std::string &key) const override
 
const ContentPtr getitem_field (const std::string &key, const Slice &only_fields) const override
 
const ContentPtr getitem_fields (const std::vector< std::string > &keys) const override
 
const ContentPtr getitem_fields (const std::vector< std::string > &keys, const Slice &only_fields) const override
 
const ContentPtr carry (const Index64 &carry, bool allow_lazy) const override
 
int64_t purelist_depth () const override
 
const std::pair< int64_t, int64_t > minmax_depth () const override
 
const std::pair< bool, int64_t > branch_depth () const override
 
int64_t numfields () const override
 
int64_t fieldindex (const std::string &key) const override
 
const std::string key (int64_t fieldindex) const override
 
bool haskey (const std::string &key) const override
 
const std::vector< std::string > keys () const override
 
const std::string validityerror (const std::string &path) const override
 
const ContentPtr shallow_simplify () const override
 
const ContentPtr num (int64_t axis, int64_t depth) const override
 
const std::pair< Index64, ContentPtroffsets_and_flattened (int64_t axis, int64_t depth) const override
 
bool mergeable (const ContentPtr &other, bool mergebool) const override
 
bool referentially_equal (const ContentPtr &other) const override
 
const ContentPtr mergemany (const ContentPtrVec &others) const override
 
const SliceItemPtr asslice () const override
 
const ContentPtr fillna (const ContentPtr &value) const override
 
const ContentPtr rpad (int64_t target, int64_t axis, int64_t depth) const override
 
const ContentPtr rpad_and_clip (int64_t target, int64_t axis, int64_t depth) const override
 
const ContentPtr reduce_next (const Reducer &reducer, int64_t negaxis, const Index64 &starts, const Index64 &shifts, const Index64 &parents, int64_t outlength, bool mask, bool keepdims) const override
 
const ContentPtr sort_next (int64_t negaxis, const Index64 &starts, const Index64 &parents, int64_t outlength, bool ascending, bool stable) const override
 
const ContentPtr argsort_next (int64_t negaxis, const Index64 &starts, const Index64 &shifts, const Index64 &parents, int64_t outlength, bool ascending, bool stable) const override
 This array sorted indices. More...
 
const ContentPtr localindex (int64_t axis, int64_t depth) const override
 
const ContentPtr combinations (int64_t n, bool replacement, const util::RecordLookupPtr &recordlookup, const util::Parameters &parameters, int64_t axis, int64_t depth) const override
 
const ContentPtr getitem_next (const SliceAt &at, const Slice &tail, const Index64 &advanced) const override
 
const ContentPtr getitem_next (const SliceRange &range, const Slice &tail, const Index64 &advanced) const override
 
const ContentPtr getitem_next (const SliceArray64 &array, const Slice &tail, const Index64 &advanced) const override
 
const ContentPtr getitem_next (const SliceField &field, const Slice &tail, const Index64 &advanced) const override
 
const ContentPtr getitem_next (const SliceFields &fields, const Slice &tail, const Index64 &advanced) const override
 
const ContentPtr getitem_next (const SliceJagged64 &jagged, const Slice &tail, const Index64 &advanced) const override
 
const ContentPtr getitem_next_jagged (const Index64 &slicestarts, const Index64 &slicestops, const SliceArray64 &slicecontent, const Slice &tail) const override
 
const ContentPtr getitem_next_jagged (const Index64 &slicestarts, const Index64 &slicestops, const SliceMissing64 &slicecontent, const Slice &tail) const override
 
const ContentPtr getitem_next_jagged (const Index64 &slicestarts, const Index64 &slicestops, const SliceJagged64 &slicecontent, const Slice &tail) const override
 
const ContentPtr copy_to (kernel::lib ptr_lib) const override
 Recursively copies components of the array from main memory to a GPU (if ptr_lib == kernel::lib::cuda) or to main memory (if ptr_lib == kernel::lib::cpu) if those components are not already there. More...
 
const ContentPtr numbers_to_type (const std::string &name) const override
 Change the leaf types to 'totype'. More...
 
bool is_unique () const override
 Returns 'true' if all components of the array are unique. More...
 
const ContentPtr unique () const override
 Returns an array where all components are unique. More...
 
bool is_subrange_equal (const Index64 &start, const Index64 &stop) const override
 Returns 'true' if subranges are equal. More...
 
- Public Member Functions inherited from Content
 Content (const IdentitiesPtr &identities, const util::Parameters &parameters)
 Called by all subclass constructors; assigns identities and parameters upon construction. More...
 
virtual ~Content ()
 Empty destructor; required for some C++ reason. More...
 
virtual const IdentitiesPtr identities () const
 Optional Identities for each element of the array (may be nullptr). More...
 
virtual const ContentPtr getitem (const Slice &where) const
 Entry point for general slicing: Slice represents a tuple of SliceItem nodes applying to each level of nested lists. More...
 
virtual const ContentPtr getitem_next (const SliceItemPtr &head, const Slice &tail, const Index64 &advanced) const
 Internal function that propagates a generic getitem request through one axis (including advanced indexing). More...
 
virtual const ContentPtr getitem_next_jagged (const Index64 &slicestarts, const Index64 &slicestops, const SliceItemPtr &slicecontent, const Slice &tail) const
 Internal function that propagates a jagged array (array with irregular-length dimensions) slice through one axis. More...
 
virtual const std::string purelist_parameter (const std::string &key) const
 The parameter associated with key at the first level that has a non-null value, descending only as deep as the first RecordArray. More...
 
bool purelist_isregular () const
 Returns true if all nested lists down to the first RecordArray are RegularArray nodes; false otherwise. More...
 
virtual bool dimension_optiontype () const
 Returns true if this dimension has option-type; false otherwise. More...
 
virtual const std::pair< ContentPtrVec, ContentPtrVecmerging_strategy (const ContentPtrVec &others) const
 Partitions this array plus a list of others into a head sequence and a tail sequence: More...
 
virtual const ContentPtr reverse_merge (const ContentPtr &other) const
 Merges a single other with this array in reverse order: other first, this last. More...
 
const ContentPtr merge (const ContentPtr &other) const
 An array with this and the other concatenated (this first, other last). More...
 
const std::string tostring () const
 Returns a string representation of this array (multi-line XML). More...
 
const std::string tojson (bool pretty, int64_t maxdecimals, const char *nan_string=nullptr, const char *infinity_string=nullptr, const char *minus_infinity_string=nullptr, const char *complex_real_string=nullptr, const char *complex_imag_string=nullptr) const
 Returns a JSON representation of this array. More...
 
void tojson (FILE *destination, bool pretty, int64_t maxdecimals, int64_t buffersize, const char *nan_string=nullptr, const char *infinity_string=nullptr, const char *minus_infinity_string=nullptr, const char *complex_real_string=nullptr, const char *complex_imag_string=nullptr) const
 Writes a JSON representation of this array to a destination file. More...
 
int64_t nbytes () const
 The number of bytes contained in all array buffers, Index buffers, and Identities buffers, not including the lightweight node objects themselves. More...
 
const ContentPtr reduce (const Reducer &reducer, int64_t axis, bool mask, bool keepdims) const
 This array with one axis removed by applying a Reducer (e.g. "sum", "max", "any", "all). More...
 
const ContentPtr sort (int64_t axis, bool ascending, bool stable) const
 This array with one axis sorted by applying a sorting algorithm. More...
 
const ContentPtr argsort (int64_t axis, bool ascending, bool stable) const
 This array indices with one axis sorted by applying a sorting algorithm. More...
 
const util::Parameters parameters () const
 String-to-JSON map that augments the meaning of this array. More...
 
void setparameters (const util::Parameters &parameters)
 Assign all the parameters for this array node (in-place). More...
 
const std::string parameter (const std::string &key) const
 Get one parameter from this array node. More...
 
void setparameter (const std::string &key, const std::string &value)
 Assign one parameter for this array node (in-place). More...
 
bool parameter_equals (const std::string &key, const std::string &value) const
 Returns true if the parameter associated with key exists and is equal to value; false otherwise. More...
 
bool parameters_equal (const util::Parameters &other, bool check_all) const
 Returns true if all parameters of this array node are equal to the other parameters. More...
 
bool parameter_isstring (const std::string &key) const
 Returns true if the parameter associated with key is a string; false otherwise. More...
 
bool parameter_isname (const std::string &key) const
 Returns true if the parameter associated with key is a string that matches [A-Za-z_][A-Za-z_0-9]*; false otherwise. More...
 
const std::string parameter_asstring (const std::string &key) const
 Returns the parameter associated with key as a string if parameter_isstring; raises an error otherwise. More...
 
const ContentPtr merge_as_union (const ContentPtr &other) const
 Concatenates this array with other by creating a UnionArray instead of actually merging the data. This does not call UnionArray::simplify_uniontype. More...
 
const ContentPtr rpad_axis0 (int64_t target, bool clip) const
 Internal function to handle the axis = 0 case of rpad and rpad_and_clip. More...
 
const ContentPtr localindex_axis0 () const
 Internal function to handle the axis = 0 case of localindex. More...
 
const ContentPtr combinations_axis0 (int64_t n, bool replacement, const util::RecordLookupPtr &recordlookup, const util::Parameters &parameters) const
 Internal function to handle the axis = 0 case of combinations. More...
 
virtual const ContentPtr getitem_next (const SliceEllipsis &ellipsis, const Slice &tail, const Index64 &advanced) const
 Internal function that propagates a generic getitem request through one axis (including advanced indexing). More...
 
virtual const ContentPtr getitem_next (const SliceNewAxis &newaxis, const Slice &tail, const Index64 &advanced) const
 Internal function that propagates a generic getitem request through one axis (including advanced indexing). More...
 
virtual const ContentPtr getitem_next (const SliceMissing64 &missing, const Slice &tail, const Index64 &advanced) const
 Internal function that propagates a generic getitem request through one axis (including advanced indexing). More...
 
const int64_t axis_wrap_if_negative (int64_t axis) const
 Internal function defining the negative axis handling for many operations. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Content
const std::string validityerror_parameters (const std::string &path) const
 Internal function to determine if a particular set of parameters are allowed on a particular node (centralized by parameter, not by class). More...
 
const ContentPtr getitem_next_array_wrap (const ContentPtr &outcontent, const std::vector< int64_t > &shape) const
 Internal function to wrap putative getitem output with enough RegularArray nodes to satisfy a given shape. More...
 
const std::string parameters_tostring (const std::string &indent, const std::string &pre, const std::string &post) const
 Internal function to convert parameters into a string fragment for tostring. More...
 
kernel::lib kernels_compare (kernel::lib from_index, const ContentPtr &content) const
 Internal function to support most of the logic in kernels. More...
 
- Protected Attributes inherited from Content
IdentitiesPtr identities_
 See identities. More...
 
util::Parameters parameters_
 See parameters. More...
 

Detailed Description

Represents a scalar missing value, which is None in Python.

Nearly all of the methods raise runtime errors. See Content::isscalar.

Constructor & Destructor Documentation

◆ None()

None ( )

Creates a None instance.

Member Function Documentation

◆ argsort_next()

const ContentPtr argsort_next ( int64_t  negaxis,
const Index64 starts,
const Index64 shifts,
const Index64 parents,
int64_t  outlength,
bool  ascending,
bool  stable 
) const
overridevirtual

This array sorted indices.

The user's entry point for this operation is argsort.

Parameters
negaxisThe negative axis: -axis. That is, negaxis = 1 means the deepest axis level.
startsStaring positions of each group to combine as an Index. These are downward pointers from an outer structure into this structure with the same meaning as in ListArray.
shiftsPer-element adjustments that allows for variable-length lists with axis != -1 and for missing values (None).
parentsGroups to combine as an Index of upward pointers from this structure to the outer structure to sort.
outlengthThe length of the array, after the operation completes.
ascendingIf true, the values will be sorted in an ascending order.
stableIf true, the values will be sorted by a stable sort algorithm to maintain the relative order of records with equal keys (i.e. values).

Implements Content.

◆ asslice()

const SliceItemPtr asslice ( ) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ branch_depth()

const std::pair<bool, int64_t> branch_depth ( ) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ caches()

void caches ( std::vector< ArrayCachePtr > &  out) const
overridevirtual

Accumulates all the unique #ArrayCache objects from nested #VirtualArray nodes. (Uniqueness is determined by pointer value.)

Implements Content.

◆ carry()

const ContentPtr carry ( const Index64 carry,
bool  allow_lazy 
) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ check_for_iteration()

void check_for_iteration ( ) const
overridevirtual

Performs up-front validity checks on an array so that they don't have to be checked in getitem_at_nowrap for each item.

Implements Content.

◆ classname()

const std::string classname ( ) const
overridevirtual

User-friendly name of this class: "None".

Implements Content.

◆ combinations()

const ContentPtr combinations ( int64_t  n,
bool  replacement,
const util::RecordLookupPtr recordlookup,
const util::Parameters parameters,
int64_t  axis,
int64_t  depth 
) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ copy_to()

const ContentPtr copy_to ( kernel::lib  ptr_lib) const
overridevirtual

Recursively copies components of the array from main memory to a GPU (if ptr_lib == kernel::lib::cuda) or to main memory (if ptr_lib == kernel::lib::cpu) if those components are not already there.

Implements Content.

◆ deep_copy()

const ContentPtr deep_copy ( bool  copyarrays,
bool  copyindexes,
bool  copyidentities 
) const
overridevirtual

Copies this node and all nodes hierarchically nested within it, optionally copying the associated arrays, indexes, and identities, too.

See also shallow_copy.

Parameters
copyarraysIf true, copy the associated array buffers (in NumpyArray and RawArray), not just the lightweight objects that point to them.
copyindexesIf true, copy the Index objects and their buffers as well.
copyidentitiesIf true, copy the Identities objects and their buffers as well.

Implements Content.

◆ fieldindex()

int64_t fieldindex ( const std::string &  key) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ fillna()

const ContentPtr fillna ( const ContentPtr value) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ form()

const FormPtr form ( bool  materialize) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ getitem_at()

const ContentPtr getitem_at ( int64_t  at) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ getitem_at_nowrap()

const ContentPtr getitem_at_nowrap ( int64_t  at) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ getitem_field() [1/2]

const ContentPtr getitem_field ( const std::string &  key) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ getitem_field() [2/2]

const ContentPtr getitem_field ( const std::string &  key,
const Slice only_fields 
) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ getitem_fields() [1/2]

const ContentPtr getitem_fields ( const std::vector< std::string > &  keys) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ getitem_fields() [2/2]

const ContentPtr getitem_fields ( const std::vector< std::string > &  keys,
const Slice only_fields 
) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ getitem_next() [1/6]

const ContentPtr getitem_next ( const SliceAt at,
const Slice tail,
const Index64 advanced 
) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ getitem_next() [2/6]

const ContentPtr getitem_next ( const SliceRange range,
const Slice tail,
const Index64 advanced 
) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ getitem_next() [3/6]

const ContentPtr getitem_next ( const SliceArray64 array,
const Slice tail,
const Index64 advanced 
) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ getitem_next() [4/6]

const ContentPtr getitem_next ( const SliceField field,
const Slice tail,
const Index64 advanced 
) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Reimplemented from Content.

◆ getitem_next() [5/6]

const ContentPtr getitem_next ( const SliceFields fields,
const Slice tail,
const Index64 advanced 
) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Reimplemented from Content.

◆ getitem_next() [6/6]

const ContentPtr getitem_next ( const SliceJagged64 jagged,
const Slice tail,
const Index64 advanced 
) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ getitem_next_jagged() [1/3]

const ContentPtr getitem_next_jagged ( const Index64 slicestarts,
const Index64 slicestops,
const SliceArray64 slicecontent,
const Slice tail 
) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ getitem_next_jagged() [2/3]

const ContentPtr getitem_next_jagged ( const Index64 slicestarts,
const Index64 slicestops,
const SliceMissing64 slicecontent,
const Slice tail 
) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ getitem_next_jagged() [3/3]

const ContentPtr getitem_next_jagged ( const Index64 slicestarts,
const Index64 slicestops,
const SliceJagged64 slicecontent,
const Slice tail 
) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ getitem_nothing()

const ContentPtr getitem_nothing ( ) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ getitem_range()

const ContentPtr getitem_range ( int64_t  start,
int64_t  stop 
) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ getitem_range_nowrap()

const ContentPtr getitem_range_nowrap ( int64_t  start,
int64_t  stop 
) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ haskey()

bool haskey ( const std::string &  key) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ is_subrange_equal()

bool is_subrange_equal ( const Index64 start,
const Index64 stop 
) const
overridevirtual

Returns 'true' if subranges are equal.

Implements Content.

◆ is_unique()

bool is_unique ( ) const
overridevirtual

Returns 'true' if all components of the array are unique.

Implements Content.

◆ isscalar()

bool isscalar ( ) const
overridevirtual

Returns true if the data represented by this node is scalar, not a true array.

Scalars are not valid inputs to many operations, but they are instances of Content so that they can be outputs of some operations.

Formally, scalars and arrays should probably be distinct C++ types to eliminate this ambiguity, but that would introduce excessive type-testing and casting in all the algorithms that chain operations (output of one is input to another). It is more convenient to test for scalars at runtime with this method.

The only scalars are:

  • NumpyArray with shape.empty() (zero-dimensional array), which represents scalar numbers and booleans. (Immediately converted to a number object in Python.)
  • None, which represents missing values. (Immediately converted to None in Python.)
  • Record, which represents one item from a RecordArray.

Always returns true.

Reimplemented from Content.

◆ kernels()

kernel::lib kernels ( ) const
overridevirtual

Returns the kernel library enum for all nested ptr_lib within the array's tree structure. If different libraries are associated with nodes of the same tree, this returns kernel::lib::size to indicate that it is "mixed".

Implements Content.

◆ key()

const std::string key ( int64_t  fieldindex) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ keys()

const std::vector<std::string> keys ( ) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ length()

int64_t length ( ) const
overridevirtual

Always returns -1.

Implements Content.

◆ localindex()

const ContentPtr localindex ( int64_t  axis,
int64_t  depth 
) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ mergeable()

bool mergeable ( const ContentPtr other,
bool  mergebool 
) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ mergemany()

const ContentPtr mergemany ( const ContentPtrVec others) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ minmax_depth()

const std::pair<int64_t, int64_t> minmax_depth ( ) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ nbytes_part()

void nbytes_part ( std::map< size_t, int64_t > &  largest) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ num()

const ContentPtr num ( int64_t  axis,
int64_t  depth 
) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ numbers_to_type()

const ContentPtr numbers_to_type ( const std::string &  name) const
overridevirtual

Change the leaf types to 'totype'.

Implements Content.

◆ numfields()

int64_t numfields ( ) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ offsets_and_flattened()

const std::pair<Index64, ContentPtr> offsets_and_flattened ( int64_t  axis,
int64_t  depth 
) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ purelist_depth()

int64_t purelist_depth ( ) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ reduce_next()

const ContentPtr reduce_next ( const Reducer reducer,
int64_t  negaxis,
const Index64 starts,
const Index64 shifts,
const Index64 parents,
int64_t  outlength,
bool  mask,
bool  keepdims 
) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ referentially_equal()

bool referentially_equal ( const ContentPtr other) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ rpad()

const ContentPtr rpad ( int64_t  target,
int64_t  axis,
int64_t  depth 
) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ rpad_and_clip()

const ContentPtr rpad_and_clip ( int64_t  target,
int64_t  axis,
int64_t  depth 
) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ setidentities() [1/2]

void setidentities ( )
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ setidentities() [2/2]

void setidentities ( const IdentitiesPtr identities)
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ shallow_copy()

const ContentPtr shallow_copy ( ) const
overridevirtual

Copies this node without copying any nodes hierarchically nested within it or any array/index/identity buffers.

See also deep_copy.

Implements Content.

◆ shallow_simplify()

const ContentPtr shallow_simplify ( ) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ sort_next()

const ContentPtr sort_next ( int64_t  negaxis,
const Index64 starts,
const Index64 parents,
int64_t  outlength,
bool  ascending,
bool  stable 
) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ tojson_part()

void tojson_part ( ToJson builder,
bool  include_beginendlist 
) const
overridevirtual

Internal function to produce a JSON representation one node at a time.

Implements Content.

◆ tostring_part()

const std::string tostring_part ( const std::string &  indent,
const std::string &  pre,
const std::string &  post 
) const
overridevirtual

Internal function to build an output string for tostring.

Parameters
indentIndentation depth as a string of spaces.
prePrefix string, usually an opening XML tag.
postPostfix string, usually a closing XML tag and carriage return.

Implements Content.

◆ type()

const TypePtr type ( const util::TypeStrs typestrs) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.

◆ unique()

const ContentPtr unique ( ) const
overridevirtual

Returns an array where all components are unique.

Implements Content.

◆ validityerror()

const std::string validityerror ( const std::string &  path) const
overridevirtual
Exceptions
std::runtime_erroris always thrown

Implements Content.


The documentation for this class was generated from the following file: