\section{KJS::Label\-Stack Class Reference}
\label{classKJS_1_1LabelStack}\index{KJS::LabelStack@{KJS::LabelStack}}
The \char`\"{}label set\char`\"{} in Ecma-262 spec.  


{\tt \#include $<$internal.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Label\-Stack} (const  {\bf Label\-Stack} \&other)\label{classKJS_1_1LabelStack_a2}

\item 
{\bf Label\-Stack} \& {\bf operator=} (const  {\bf Label\-Stack} \&other)\label{classKJS_1_1LabelStack_a3}

\item 
bool {\bf push} (const  {\bf UString} \&id)
\begin{CompactList}\small\item\em If id is not empty and is not in the stack already, puts it on top of the stack and returns true, otherwise returns false. \item\end{CompactList}\item 
bool {\bf contains} (const  {\bf UString} \&id) const 
\begin{CompactList}\small\item\em Is the id in the stack? \item\end{CompactList}\item 
void {\bf pop} ()
\begin{CompactList}\small\item\em Removes from the stack the last pushed id (what else?). \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
The \char`\"{}label set\char`\"{} in Ecma-262 spec. 



Definition at line 287 of file internal.h.

\subsection{Member Function Documentation}
\index{KJS::LabelStack@{KJS::Label\-Stack}!push@{push}}
\index{push@{push}!KJS::LabelStack@{KJS::Label\-Stack}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool Label\-Stack::push (const {\bf UString} \& {\em id})}\label{classKJS_1_1LabelStack_a4}


If id is not empty and is not in the stack already, puts it on top of the stack and returns true, otherwise returns false. 



Definition at line 372 of file internal.cpp.

References contains(), and KJS::UString::is\-Empty().\index{KJS::LabelStack@{KJS::Label\-Stack}!contains@{contains}}
\index{contains@{contains}!KJS::LabelStack@{KJS::Label\-Stack}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool Label\-Stack::contains (const {\bf UString} \& {\em id}) const}\label{classKJS_1_1LabelStack_a5}


Is the id in the stack? 



Definition at line 384 of file internal.cpp.

References KJS::UString::is\-Empty().

Referenced by push().\index{KJS::LabelStack@{KJS::Label\-Stack}!pop@{pop}}
\index{pop@{pop}!KJS::LabelStack@{KJS::Label\-Stack}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Label\-Stack::pop ()}\label{classKJS_1_1LabelStack_a6}


Removes from the stack the last pushed id (what else?). 



Definition at line 396 of file internal.cpp.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
internal.h\item 
internal.cpp\end{CompactItemize}
