kjs Library API Documentation

KJS::LabelStack Class Reference

The "label set" in Ecma-262 spec. More...

#include <internal.h>

List of all members.

Public Methods

bool push (const UString &id)
 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.

bool contains (const UString &id) const
 Is the id in the stack?

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


Detailed Description

The "label set" in Ecma-262 spec.

Definition at line 287 of file internal.h.


Member Function Documentation

bool LabelStack::push const UString   id
 

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 346 of file internal.cpp.

References contains(), and KJS::UString::isEmpty().

bool LabelStack::contains const UString   id const
 

Is the id in the stack?

Definition at line 358 of file internal.cpp.

References KJS::UString::isEmpty().

Referenced by push().

void LabelStack::pop  
 

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

Definition at line 370 of file internal.cpp.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.0.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Oct 8 12:21:16 2003 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2001