Class TShapeList
Unit
Declaration
type TShapeList = class(specialize TCastleFastList<TShape>)
Description
This item has no description. Showing description inherited from TCastleFastList.
Simple fast list. Exposes most common operations, like addition and reading.
Can be specialized with any type (simple types like integers, or records, class instances...) that does not need automatic memory management. So don't use with e.g. AnsiStrings or COM interfaces or records with them (we would not initialize/release such memory properly).
Does not have any "ownership" (like in TObjectList that can "own" children) or notification mechanism (that would call a method / callback every time something is added / removed). This avoids operations that would force things like "clear" to perform one-by-one iteration over items (like notification of removals or dropping reference counts).
Manages memory to optimize speed, not conserve memory: operations only allocate memory, until you do ReleaseMemory (or free this instance, of course). Aside from this, we only grow, even when you call Clear.
Hierarchy
- TObject
- TCastleFastList
- TShapeList
Overview
Methods
![]() |
constructor Create; overload; |
![]() |
constructor Create(const Tree: TShapeTree; const OnlyActive: boolean; const OnlyVisible: boolean = false; const OnlyCollidable: boolean = false); overload; deprecated 'use Tree.TraverseList(...)'; |
Description
Methods
![]() |
constructor Create; overload; |
This item has no description. |
![]() |
constructor Create(const Tree: TShapeTree; const OnlyActive: boolean; const OnlyVisible: boolean = false; const OnlyCollidable: boolean = false); overload; deprecated 'use Tree.TraverseList(...)'; |
Warning: this symbol is deprecated: use Tree.TraverseList(...) Constructor that initializes list contents by traversing given tree. |
Generated by PasDoc 0.16.0-snapshot.