![]() |
Able
Askowl Base Library Enabler
|
A stack of counters for garbage-free iterations More...
Public Member Functions | |
| int | Start (int startingValue=0) |
| Add a new counter and set it to the starting value More... | |
| new int | Next () |
| Increment he top counter More... | |
| bool | Reached (int bounds) |
| See if the top counter has reached the target value More... | |
| override void | Dispose () |
| Send back to recycling More... | |
Public Member Functions inherited from Askowl.Fifo< int > | |
| Fifo () | |
| Raw creation for subclasses that do their own caching More... | |
| virtual T | Push (T entry) |
| Push a new entry onto the top of the stack More... | |
| virtual T | Pop () |
| Pop an entry from the top of the stack More... | |
| Fifo< T > | Swap () |
| Swap the top and second entries on the stack More... | |
| void | Clear () |
| //#TBD#// More... | |
| T [] | ToArray () |
| //#TBD#// More... | |
| override string | ToString () |
| //#TBD#// More... | |
Static Public Attributes | |
| static new CounterFifo | Instance => Cache<CounterFifo>.Instance |
| Retrieve a new (cached) instance More... | |
Static Public Attributes inherited from Askowl.Fifo< int > | |
| static Fifo< T > | Instance |
| Fetch Fifo Stack from recycling More... | |
Additional Inherited Members | |
Public Attributes inherited from Askowl.Fifo< int > | |
| T | this[int i] |
| Array-like indexing into the stack More... | |
| bool | Empty |
| //#TBD#// More... | |
Properties inherited from Askowl.Fifo< int > | |
| int | Count [get, set] |
| Number of items on the stack More... | |
| T | Top [get, set] |
| Get/set the value at the top of the stack. More... | |
| T | Next [get, set] |
| Get/set the value at second to top of the stack. More... | |
| T | Bottom [get, set] |
| Get/set the value at the bottom of the stack. More... | |
A stack of counters for garbage-free iterations
Definition at line 8 of file CounterStack.cs.
|
virtual |
Reimplemented from Askowl.Fifo< int >.
| new int Askowl.CounterFifo.Next | ( | ) |
| bool Askowl.CounterFifo.Reached | ( | int | bounds | ) |
See if the top counter has reached the target value
Definition at line 19 of file CounterStack.cs.
| int Askowl.CounterFifo.Start | ( | int | startingValue = 0 | ) |
|
static |
Retrieve a new (cached) instance
Definition at line 10 of file CounterStack.cs.