Isle
|
[AI] Reference-counted list of Level-of-Detail (LOD) objects associated with a single ROI (Realtime Object Instance), shared by all instances of the same ROI. More...
#include <viewlodlist.h>
Public Member Functions | |
int | AddRef () |
[AI] Increments the reference count. More... | |
int | Release () |
[AI] Decrements the reference count. More... | |
![]() | |
LODList (size_t capacity) | |
[AI] Constructs a type-safe LODList with given capacity. More... | |
const ViewLOD * | operator[] (int) const |
[AI] Typed access to the LODObject at position i. More... | |
const ViewLOD * | PushBack (const ViewLOD *) |
[AI] Typed append. More... | |
const ViewLOD * | PopBack () |
[AI] Typed remove. More... | |
![]() | |
virtual | ~LODListBase () |
[AI] Destructor. More... | |
const LODObject * | operator[] (int) const |
[AI] Returns a pointer to the LODObject at the given index. More... | |
size_t | Size () const |
[AI] Returns the current number of LODObject pointers contained. More... | |
size_t | Capacity () const |
[AI] Returns the maximum number of LODObject pointers the list can hold. More... | |
Protected Member Functions | |
ViewLODList (size_t capacity, ViewLODListManager *owner) | |
[AI] Constructs a ViewLODList with a given capacity and owner manager. More... | |
~ViewLODList () override | |
[AI] Destructor for ViewLODList; asserts that no references remain before destroying. More... | |
![]() | |
LODListBase (size_t capacity) | |
[AI] Constructs a new LODListBase with specified storage capacity. More... | |
const LODObject * | PushBack (const LODObject *) |
[AI] Adds a new LODObject pointer at the end of the list. More... | |
const LODObject * | PopBack () |
[AI] Removes and returns the last LODObject pointer from the list. More... | |
[AI] Reference-counted list of Level-of-Detail (LOD) objects associated with a single ROI (Realtime Object Instance), shared by all instances of the same ROI.
[AI] Inherits from LODList<ViewLOD>. Each ViewLODList is managed exclusively by a ViewLODListManager, and contains the LODs for a particular ROI (object type). Lifetime is tied to reference counting to ensure proper sharing and cleanup between multiple ROI instances sharing geometry.
Definition at line 30 of file viewlodlist.h.
|
protected |
[AI] Constructs a ViewLODList with a given capacity and owner manager.
capacity | [AI] Initial allocation for the number of LODs to hold. |
owner | [AI] Pointer to the ViewLODListManager responsible for this list. |
|
overrideprotected |
[AI] Destructor for ViewLODList; asserts that no references remain before destroying.
|
inline |
[AI] Increments the reference count.
Used to manage shared ownership across different ROI instances.
|
inline |
[AI] Decrements the reference count.
When the reference count reaches zero, deletes this ViewLODList via the owning manager.