|
LuciadCPillar 2026.1.02
|
Describes the path to a DataProperty in a DataType. More...
#include <luciad/datamodels/DataPropertyPath.h>
Classes | |
| class | Builder |
| Builder that allows DataPropertyPath instances to be created. More... | |
Public Member Functions | |
| Builder | asBuilder () const |
| Returns a builder with the current data property path. | |
| size_t | getHash () const |
| Returns the hash code. | |
| DataType | getOriginType () const |
| Returns the type of data object that this path accesses. | |
| std::optional< DataProperty > | getTargetProperty () const |
| Returns the property that this path points to (the property at the end of the path). | |
| DataCollectionKind | getValueCollectionKind () const |
| Returns the collection kind of the value that this path points to. | |
| DataType | getValueType () const |
| Returns the value type of the property that this path points to. | |
| bool | operator!= (const DataPropertyPath &other) const |
| bool | operator== (const DataPropertyPath &other) const |
Static Public Member Functions | |
| static Builder | newBuilder () |
| Creates a new builder. | |
Describes the path to a DataProperty in a DataType.
It can also describe paths to nested properties. The path is related to a specific DataType (its getOriginType) and is used to address values in data objects of that type.
A path may also address values in list-typed properties (see DataCollectionKind):
Builder::index step, it addresses a single list element.getValueCollectionKind reports which shape the target property has.
Restrictions:
Builder::index can be called at most once on a builder).Builder::index. It cannot descend into the list's element type.Builder::index is terminal: no further property or index step may be added after it. Multi-level access into composite list elements is done by retrieving the element as a separate object and building a new path on that. | Builder luciad::DataPropertyPath::asBuilder | ( | ) | const |
Returns a builder with the current data property path.
| size_t luciad::DataPropertyPath::getHash | ( | ) | const |
Returns the hash code.
| DataType luciad::DataPropertyPath::getOriginType | ( | ) | const |
Returns the type of data object that this path accesses.
| std::optional< DataProperty > luciad::DataPropertyPath::getTargetProperty | ( | ) | const |
Returns the property that this path points to (the property at the end of the path).
For a path with a terminal index step, this is the list property that the index applies to. For an empty path (origin type only, no property steps), this has no value.
| DataCollectionKind luciad::DataPropertyPath::getValueCollectionKind | ( | ) | const |
Returns the collection kind of the value that this path points to.
The result reflects the kind of value:
Defaults to Scalar for empty paths (originType only).
| DataType luciad::DataPropertyPath::getValueType | ( | ) | const |
Returns the value type of the property that this path points to.
For a list-typed leaf (list or indexed element), this is the element type.
|
static |
Creates a new builder.
| bool luciad::DataPropertyPath::operator!= | ( | const DataPropertyPath & | other | ) | const |
| bool luciad::DataPropertyPath::operator== | ( | const DataPropertyPath & | other | ) | const |