Corgi Engine v9.3
MoreMountains.Tools.MMCircularList< T > Class Template Reference

A improved list that lets you parse it and automatically have it loop to the start or end when you reach the end or start To use it : set the CurrentIndex to whatever you want, then use IncrementCurrentIndex / DecrementCurrentIndex to move it, get the current element via Current More...

Inheritance diagram for MoreMountains.Tools.MMCircularList< T >:

Public Member Functions

virtual void IncrementCurrentIndex ()
 Increments the current index (towards the "right" of the list) More...
 
virtual void DecrementCurrentIndex ()
 Decrements the current index (towards the "left" of the list) More...
 

Protected Member Functions

virtual int GetCurrentIndex ()
 Computes the current index More...
 

Properties

int CurrentIndex [getset]
 Lets you set the current index, or compute it if you get it More...
 
virtual T Current [get]
 Returns the current element More...
 
virtual int PreviousIndex [get]
 Returns the previous index in the circular list More...
 
virtual int NextIndex [get]
 Returns the next index in the circular list More...
 

Detailed Description

A improved list that lets you parse it and automatically have it loop to the start or end when you reach the end or start To use it : set the CurrentIndex to whatever you want, then use IncrementCurrentIndex / DecrementCurrentIndex to move it, get the current element via Current

Template Parameters
T

Member Function Documentation

◆ DecrementCurrentIndex()

virtual void MoreMountains.Tools.MMCircularList< T >.DecrementCurrentIndex ( )
virtual

Decrements the current index (towards the "left" of the list)

◆ GetCurrentIndex()

virtual int MoreMountains.Tools.MMCircularList< T >.GetCurrentIndex ( )
protectedvirtual

Computes the current index

Returns

◆ IncrementCurrentIndex()

virtual void MoreMountains.Tools.MMCircularList< T >.IncrementCurrentIndex ( )
virtual

Increments the current index (towards the "right" of the list)

Property Documentation

◆ Current

virtual T MoreMountains.Tools.MMCircularList< T >.Current
get

Returns the current element

◆ CurrentIndex

int MoreMountains.Tools.MMCircularList< T >.CurrentIndex
getset

Lets you set the current index, or compute it if you get it

◆ NextIndex

virtual int MoreMountains.Tools.MMCircularList< T >.NextIndex
get

Returns the next index in the circular list

◆ PreviousIndex

virtual int MoreMountains.Tools.MMCircularList< T >.PreviousIndex
get

Returns the previous index in the circular list


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