3 #ifndef AWKWARD_BITMASKEDARRAY_H_ 4 #define AWKWARD_BITMASKEDARRAY_H_ 16 template <
typename T,
bool ISOPTION>
51 tojson_part(
ToJson& builder,
bool verbose)
const override;
54 shallow_copy()
const override;
57 with_form_key(
const FormKey& form_key)
const override;
60 purelist_parameter(
const std::string&
key)
const override;
63 purelist_isregular()
const override;
66 purelist_depth()
const override;
69 dimension_optiontype()
const override;
71 const std::pair<int64_t, int64_t>
72 minmax_depth()
const override;
74 const std::pair<bool, int64_t>
75 branch_depth()
const override;
78 numfields()
const override;
81 fieldindex(
const std::string& key)
const override;
84 key(int64_t fieldindex)
const override;
87 haskey(
const std::string& key)
const override;
89 const std::vector<std::string>
90 keys()
const override;
93 istuple()
const override;
97 bool check_identities,
98 bool check_parameters,
100 bool compatibility_check)
const override;
103 getitem_range()
const override;
106 getitem_field(
const std::string& key)
const override;
109 getitem_fields(
const std::vector<std::string>& keys)
const override;
112 simplify_optiontype()
const;
203 project(
const Index8& mask)
const;
217 simplify_optiontype()
const;
220 const std::shared_ptr<ByteMaskedArray>
221 toByteMaskedArray()
const;
225 const std::shared_ptr<IndexedArrayOf<int64_t, true>>
226 toIndexedOptionArray64()
const;
230 classname()
const override;
233 setidentities()
override;
242 form(
bool materialize)
const override;
245 kernels()
const override;
248 caches(std::vector<ArrayCachePtr>& out)
const override;
251 tostring_part(
const std::string& indent,
252 const std::string& pre,
253 const std::string& post)
const override;
256 tojson_part(
ToJson& builder,
bool include_beginendlist)
const override;
259 nbytes_part(std::map<size_t, int64_t>& largest)
const override;
265 length()
const override;
268 shallow_copy()
const override;
271 deep_copy(
bool copyarrays,
273 bool copyidentities)
const override;
276 check_for_iteration()
const override;
279 getitem_nothing()
const override;
282 getitem_at(int64_t at)
const override;
285 getitem_at_nowrap(int64_t at)
const override;
288 getitem_range(int64_t start, int64_t stop)
const override;
291 getitem_range_nowrap(int64_t start, int64_t stop)
const override;
294 getitem_field(
const std::string&
key)
const override;
297 getitem_field(
const std::string& key,
298 const Slice& only_fields)
const override;
301 getitem_fields(
const std::vector<std::string>&
keys)
const override;
304 getitem_fields(
const std::vector<std::string>& keys,
305 const Slice& only_fields)
const override;
310 const Index64& advanced)
const override;
313 carry(
const Index64& carry,
bool allow_lazy)
const override;
316 purelist_depth()
const override;
318 const std::pair<int64_t, int64_t>
319 minmax_depth()
const override;
321 const std::pair<bool, int64_t>
322 branch_depth()
const override;
325 numfields()
const override;
328 fieldindex(
const std::string& key)
const override;
331 key(int64_t fieldindex)
const override;
334 haskey(
const std::string& key)
const override;
336 const std::vector<std::string>
337 keys()
const override;
340 istuple()
const override;
344 validityerror(
const std::string& path)
const override;
350 shallow_simplify()
const override;
353 num(int64_t axis, int64_t depth)
const override;
355 const std::pair<Index64, ContentPtr>
356 offsets_and_flattened(int64_t axis, int64_t depth)
const override;
359 mergeable(
const ContentPtr& other,
bool mergebool)
const override;
362 referentially_equal(
const ContentPtr& other)
const override;
365 reverse_merge(
const ContentPtr& other)
const override;
371 asslice()
const override;
377 rpad(int64_t target, int64_t axis, int64_t depth)
const override;
380 rpad_and_clip(int64_t target,
382 int64_t depth)
const override;
385 reduce_next(
const Reducer& reducer,
392 bool keepdims)
const override;
395 sort_next(int64_t negaxis,
400 bool stable)
const override;
403 argsort_next(int64_t negaxis,
409 bool stable)
const override;
412 localindex(int64_t axis, int64_t depth)
const override;
420 int64_t depth)
const override;
423 getitem_next(
const SliceAt& at,
425 const Index64& advanced)
const override;
430 const Index64& advanced)
const override;
435 const Index64& advanced)
const override;
440 const Index64& advanced)
const override;
443 getitem_next_jagged(
const Index64& slicestarts,
446 const Slice& tail)
const override;
449 getitem_next_jagged(
const Index64& slicestarts,
452 const Slice& tail)
const override;
455 getitem_next_jagged(
const Index64& slicestarts,
458 const Slice& tail)
const override;
464 numbers_to_type(
const std::string&
name)
const override;
468 is_unique()
const override;
476 is_subrange_equal(
const Index64& start,
const Index64& stop)
const override;
484 const bool valid_when_;
486 const int64_t length_;
488 const bool lsb_order_;
493 #endif // AWKWARD_BITMASKEDARRAY_H_ Represents a Python slice object (usual syntax: array[start:stop:step]).
Definition: Slice.h:93
#define LIBAWKWARD_EXPORT_SYMBOL
Definition: common.h:45
const std::string key(const RecordLookupPtr &recordlookup, int64_t fieldindex, int64_t numfields)
Returns the key associated with a field index, given a RecordLookup and a number of fields...
Abstract superclass of all array node types (flat hierarchy). Any Content can be nested within any ot...
Definition: Content.h:276
Definition: BitMaskedArray.h:15
A contiguous, one-dimensional array of integers used to represent data structures, rather than numerical data in the arrays themselves.
Definition: Index.h:16
std::string name(Mapping a, V value)
Definition: datetime_util.h:39
Represents a SliceArrayOf, SliceMissingOf, or SliceJaggedOf with missing values: None (no equivalent ...
Definition: Slice.h:431
Abstract class for all reducer algorithms.
Definition: Reducer.h:20
ERROR combinations(kernel::lib ptr_lib, T *toindex, int64_t n, bool replacement, int64_t singlelen)
const std::vector< std::string > keys(const RecordLookupPtr &recordlookup, int64_t numfields)
Returns a given RecordLookup as keys or generate anonymous ones form a number of fields.
Filters, rearranges, and/or duplicates items in its content through an index, which has the same effe...
Definition: BitMaskedArray.h:17
Form
Integer type of an Index, used by ListForm, IndexedForm, etc.
Definition: Index.h:34
std::shared_ptr< std::string > FormKey
Definition: Content.h:19
ERROR unique(kernel::lib ptr_lib, T *toptr, int64_t length, int64_t *tolength)
Represents an array of integers in a slice (possibly converted from an array of booleans).
Definition: Slice.h:225
std::map< std::string, std::string > Parameters
Definition: util.h:165
ERROR copy_to(kernel::lib to_lib, kernel::lib from_lib, void *to_ptr, void *from_ptr, int64_t bytelength)
Internal Function an array buffer from library FROM to library TO, usually between main memory and a ...
std::shared_ptr< Form > FormPtr
Definition: Content.h:18
int64_t fieldindex(const RecordLookupPtr &recordlookup, const std::string &key, int64_t numfields)
Returns the field index associated with a key, given a RecordLookup and a number of fields...
Represents an array of nested lists, where the content may be SliceArrayOf, SliceMissingOf, or SliceJaggedOf (no equivalent in NumPy).
Definition: Slice.h:511
std::vector< std::shared_ptr< Content > > ContentPtrVec
Definition: Content.h:16
Mapping::value_type::value_type value(Mapping a, const std::string &name)
Definition: datetime_util.h:49
A sequence of SliceItem objects representing a tuple passed to Python's __getitem__.
Definition: Slice.h:585
bool haskey(const RecordLookupPtr &recordlookup, const std::string &key, int64_t numfields)
Returns true if a RecordLookup has a given key; false otherwise.
std::shared_ptr< Type > TypePtr
Definition: Content.h:23
std::shared_ptr< RecordLookup > RecordLookupPtr
Definition: util.h:130
Represents an integer in a tuple of slices passed to __getitem__ in Python.
Definition: Slice.h:58
std::map< std::string, std::string > TypeStrs
Definition: util.h:215
Represents potentially missing data by overlaying a bit mask over its content.
Definition: BitMaskedArray.h:127
std::shared_ptr< Identities > IdentitiesPtr
Definition: Identities.h:16
std::shared_ptr< Content > ContentPtr
Definition: ArrayBuilder.h:16
Represents potentially missing data by overlaying a byte mask over its content.
Definition: ByteMaskedArray.h:117
std::shared_ptr< SliceItem > SliceItemPtr
Definition: Slice.h:15
lib
Definition: kernel-dispatch.h:20