|
The Gravey 2.0 Framework and AIM RIA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--GrvObject
|
+--MVCObserver
|
+--MVCModel
|
+--MVCListModel
|
+--MVCDequeModel
This class encapsulates a data model for Stacks
and Queues. The "stack" is built within a dequeue
such that up/down do not change the queue itself.
Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
Defined in grvMVC.js
| Constructor Summary | |
MVCDequeModel
()
|
|
| Method Summary | |
void
|
_cutback()
pseudo-Stack API: throw away items above top of pseudo-stack |
Object
|
_down()
pseudo-Stack API: non-destructive pop |
void
|
_reset( )
clear the queue and reset the pseudo-stack but dont publish |
Object
|
_up()
pseudo-Stack API: non-destructive push/get |
Object
|
addFirst(o)
DEQUE API: add given object to back of the line |
Object
|
addLast(o)
DEQUE API: add given object to front of the line |
Object
|
delFirst( )
DEQUE API: remove object from back of the line |
Object
|
delLast( )
DEQUE API: remove object from front of the line |
Object
|
dequeue( )
QUEUE API: remove object from front of the line |
Object
|
downIndex()
pseudo-Stack API: return index of next down iff we can go down |
Object
|
enqueue(o)
QUEUE API: add given object to back of the line |
void
|
konstructor( <String> optName )
|
Object
|
pop( )
STACK API: remove given object from front of the line aka top of the stack |
Object
|
push(o)
STACK API: push given object to front of the line aka top of the stack |
Object
|
top(offset)
pseudo-Stack API: return the top of the pseudo-stack |
Object
|
upIndex()
pseudo-Stack API: return index of next up iff we can go up |
| Methods inherited from class MVCListModel |
clone, dump, hash, _pop, _push, _del, getCount, getItem, getItemStr, addItem, delItem, reset, iterate, addBefore, getMemento, setMemento
|
| Methods inherited from class MVCModel |
dumpSubscribers, toString, dirty, clean, neverChanged, publish, GET, _SET, SET, updateStamp, BeginTransaction, EndTransaction, reloaded, addObserver, delObserver, notifyObservers
|
| Methods inherited from class MVCObserver |
update, subscribe
|
| Methods inherited from class GrvObject |
souper
|
| Constructor Detail |
MVCDequeModel()
| Method Detail |
void _cutback()
Object _down()
void _reset( )
Object _up()
Object addFirst(o)
Object addLast(o)
Object delFirst( )
Object delLast( )
Object dequeue( )
Object downIndex()
Object enqueue(o)
void konstructor( <String> optName )
optName - optional name of this instance
Object pop( )
Object push(o)
Object top(offset)
Object upIndex()
|
The Gravey 2.0 Framework and AIM RIA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||