TValuePath
Immutable path that identifies a
TValue
Inheritance
Level | Ancestor | Description |
---|---|---|
1 | TObject | Ultimate ancestor in a class hierarchy |
2 | TBaseObject | A base class for objects that can be used instead of TObject . |
3 | TReferenceCountedObject | Object that keeps track of the number of times it is referenced from other objects |
4 | TValuePath |
Source
Value.Path.pas (31)
Description
A TValue
is often created in a context of other values. A TValuePath
tracks all parent values leading up to last value. A common use for such a path is in a user interface
where values are created and explored dynamically. Tracking parent values in a path can be used for:
- Keeping the parent values alive as long as the child values need them to
- Locating and exploring parent values
- Creating contextual captions for child values
A TValuePath
is an immutable object. A child path can be created using Extend
.
Fields
Scope | Visibility | Type | Name | Description |
---|---|---|---|---|
Instance | protected | TList<TValue> | Values |
Methods
Scope | Visibility | Result | Name | Description |
---|---|---|---|---|
Instance | protected | TInteger32 | GetLength() | |
Instance | protected | TValue | GetNodes(Index: TInteger32) | |
Instance | protected | TValue | GetReversedNodes(Index: TInteger32) | |
Instance | protected | TValue | GetLast() | |
Instance | protected | TObject | ExtractObject(Object_: TObject) | |
Instance | public | Create(Elements: array of TValue) | ||
Instance | public | Destroy() | ||
Instance | public | TBoolean | HandleEvent(Event: TEvent) | |
Instance | public | TValuePath | Extend(Elements: array of TValue) | |
Instance | public | TValuePath | GetAncestor(Count: TInteger32) | |
Instance | public | TObject | Find(Condition: TCondition<TObject>) | |
Instance | public | TBoolean | Contains(Object_: TObject) | |
Instance | public | TObject | Query(Query: TQuery; FreeQuery: TBoolean) | |
Instance | public | TObject | ExtractLastObject() |