ForgeDocs
Documentation for the forge framework
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
Forge.Collections.SwappableItem< T > Class Template Reference

Contains two items which can be swapped between a Previous and a Current state. More...

Public Member Functions

 SwappableItem (T a, T b)
 Initializes a new instance of the SwappableItem{T} class. More...
 
void Swap ()
 Swap the Current and Previous items. More...
 

Properties

Current [get]
 The current item. More...
 
Previous [get]
 The previous item. More...
 

Detailed Description

Contains two items which can be swapped between a Previous and a Current state.

Template Parameters
TThe type of item stored

Constructor & Destructor Documentation

Forge.Collections.SwappableItem< T >.SwappableItem ( a,
b 
)

Initializes a new instance of the SwappableItem{T} class.

Parameters
aThe first item.
bThe second item.

Member Function Documentation

void Forge.Collections.SwappableItem< T >.Swap ( )

Swap the Current and Previous items.

Property Documentation

T Forge.Collections.SwappableItem< T >.Current
get

The current item.

T Forge.Collections.SwappableItem< T >.Previous
get

The previous item.


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