SeqBuilder is used to create a linked list of Seq<T> by inserting nodes either at the beginning, with insert(), or at the end, with add(). More...
#include <Containers.h>
Collaboration diagram for nanojit::SeqBuilder< T >:Public Member Functions | |
| SeqBuilder (Allocator &allocator) | |
| void | insert (T item) |
| add item to beginning of list | |
| void | add (T item) |
| add item to end of list | |
| Seq< T > * | get () const |
| return first item in sequence | |
| bool | isEmpty () const |
| self explanitory | |
| void | clear () |
| de-reference all items | |
SeqBuilder is used to create a linked list of Seq<T> by inserting nodes either at the beginning, with insert(), or at the end, with add().
Once built, the actual list can be retained while this SeqBuilder can be discarded.
| nanojit::SeqBuilder< T >::SeqBuilder | ( | Allocator & | allocator | ) | [inline] |
| void nanojit::SeqBuilder< T >::add | ( | T | item | ) | [inline] |
add item to end of list
| void nanojit::SeqBuilder< T >::clear | ( | ) | [inline] |
de-reference all items
| Seq<T>* nanojit::SeqBuilder< T >::get | ( | ) | const [inline] |
return first item in sequence
| void nanojit::SeqBuilder< T >::insert | ( | T | item | ) | [inline] |
add item to beginning of list
| bool nanojit::SeqBuilder< T >::isEmpty | ( | ) | const [inline] |
self explanitory
1.7.1