3 #ifndef AWKWARD_ARRAYTYPE_H_ 4 #define AWKWARD_ARRAYTYPE_H_ 28 const std::string& typestr,
41 tostring_part(
const std::string& indent,
42 const std::string& pre,
43 const std::string& post)
const override;
46 shallow_copy()
const override;
49 equal(
const TypePtr& other,
bool check_parameters)
const override;
52 numfields()
const override;
58 key(int64_t fieldindex)
const override;
61 haskey(
const std::string& key)
const override;
63 const std::vector<std::string>
64 keys()
const override;
67 empty()
const override;
77 #endif // AWKWARD_ARRAYTYPE_H_ Describes the high level type of a user-facing array, i.e. ak.Array in Python, as opposed to Content...
Definition: ArrayType.h:18
#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...
Definition: BitMaskedArray.h:15
Abstract superclass of all high level types (flat hierarchy).
Definition: Type.h:23
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.
std::map< std::string, std::string > Parameters
Definition: util.h:165
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...
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< Content > ContentPtr
Definition: ArrayBuilder.h:16