FDO API Reference Feature Data Objects

template<class OBJ, class EXC>
virtual FDO_API_COMMON OBJ* FdoStack< OBJ, EXC >::Peek int  level  )  const [inline, protected, virtual]
 

Gets an item at a given position in the stack. This function is protected so that FdoStack implementors can decide whether to expose it or restrict access to the top element only.

Parameters:
level Input Get the element at this level. If 0 then the top element is returned. If 1 then the element just below the top element is returned, and so on.
Returns:
Returns the requested item. Returns NULL if the stack is empty or level is out of range (less than 0 or greater or equal to the number of elements in the stack

Definition at line 145 of file Stack.h.


Comments or suggestions? Send us feedback.