Public Member Functions

nanojit::SeqBuilder< T > Class Template Reference

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 >:

List of all members.

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

Detailed Description

template<class T>
class nanojit::SeqBuilder< T >

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.


Constructor & Destructor Documentation

template<class T >
nanojit::SeqBuilder< T >::SeqBuilder ( Allocator allocator  )  [inline]

Member Function Documentation

template<class T >
void nanojit::SeqBuilder< T >::add ( item  )  [inline]

add item to end of list

template<class T >
void nanojit::SeqBuilder< T >::clear (  )  [inline]

de-reference all items

template<class T >
Seq<T>* nanojit::SeqBuilder< T >::get (  )  const [inline]

return first item in sequence

template<class T >
void nanojit::SeqBuilder< T >::insert ( item  )  [inline]

add item to beginning of list

template<class T >
bool nanojit::SeqBuilder< T >::isEmpty (  )  const [inline]

self explanitory


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