legate::StringLogicalArray#
-
class StringLogicalArray : public legate::LogicalArray#
A multi-dimensional array representing a collection of strings.
This class is essentially a
ListLogicalArray
specialized for lists-of-strings data. The member functionsoffsets()
andchars()
are directly analogous toListLogicalArray::descriptor()
andListLogicalArray::vardata()
.The strings are stored in a compact form, accessible through
chars()
, whileoffsets()
gives the start and end indices for each sub-string.See also
Public Functions
-
LogicalArray offsets() const#
Returns the sub-array for offsets giving the bounds of each string.
- Returns:
LogicalArray
of offsets into this array.
-
LogicalArray chars() const#
Returns the sub-array for characters of the strings.
- Returns:
LogicalArray
representing the characters of the strings.
-
LogicalArray offsets() const#