Isle
Loading...
Searching...
No Matches
LODListBase Class Reference

[AI] Abstract base class for an ordered list of LODObject pointers, where each entry represents an increasing level of geometric detail. More...

#include <lodlist.h>

Inheritance diagram for LODListBase:

Public Member Functions

virtual ~LODListBase ()
 [AI] Destructor. More...
 
const LODObjectoperator[] (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

 LODListBase (size_t capacity)
 [AI] Constructs a new LODListBase with specified storage capacity. More...
 
const LODObjectPushBack (const LODObject *)
 [AI] Adds a new LODObject pointer at the end of the list. More...
 
const LODObjectPopBack ()
 [AI] Removes and returns the last LODObject pointer from the list. More...
 

Detailed Description

[AI] Abstract base class for an ordered list of LODObject pointers, where each entry represents an increasing level of geometric detail.

Provides functionality to store and access the LOD chain, manage its capacity, and order.

[AI] LODListBase is not copyable and is intended as a base for typed LOD collections.

Definition at line 31 of file lodlist.h.

Constructor & Destructor Documentation

◆ LODListBase()

LODListBase::LODListBase ( size_t  capacity)
inlineprotected

[AI] Constructs a new LODListBase with specified storage capacity.

Parameters
capacity[AI] The maximum number of LODObject pointers the list can hold.

Definition at line 142 of file lodlist.h.

◆ ~LODListBase()

LODListBase::~LODListBase ( )
inlinevirtual

[AI] Destructor.

Deallocates internal storage. Asserts that the list is empty.

Definition at line 156 of file lodlist.h.

Member Function Documentation

◆ Capacity()

size_t LODListBase::Capacity ( ) const
inline

[AI] Returns the maximum number of LODObject pointers the list can hold.

Returns
[AI]

Definition at line 171 of file lodlist.h.

◆ operator[]()

const LODObject * LODListBase::operator[] ( int  i) const
inline

[AI] Returns a pointer to the LODObject at the given index.

Parameters
i[AI] Index in the list (asserts if out of bounds).
Returns
[AI] Pointer to the LODObject.

Definition at line 177 of file lodlist.h.

◆ PopBack()

const LODObject * LODListBase::PopBack ( )
inlineprotected

[AI] Removes and returns the last LODObject pointer from the list.

Returns
[AI] Pointer to the removed LODObject or undefined if the list is empty (asserts).

Definition at line 194 of file lodlist.h.

◆ PushBack()

const LODObject * LODListBase::PushBack ( const LODObject pLOD)
inlineprotected

[AI] Adds a new LODObject pointer at the end of the list.

Parameters
pLOD[AI] The pointer to the LODObject to append.
Returns
[AI] Pointer to the added LODObject.

Definition at line 185 of file lodlist.h.

◆ Size()

size_t LODListBase::Size ( ) const
inline

[AI] Returns the current number of LODObject pointers contained.

Returns
[AI]

Definition at line 165 of file lodlist.h.


The documentation for this class was generated from the following file: