Unicorn XML Toolkit
Version 1.00.00

Namespace EcmaScript
Class CScopeChain

class CScopeChain {
public:
    CScopeChain();
    ~CScopeChain();
public:
    void Add(const XObject &pObject);
    void Remove();
    int GetSize();
    XObject GetAt(int nIndex);
    };

The ECMAScript scope chain.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
CObject
Constructor/Destructor Summary
CScopeChain ();
����������Constructs the scope chain.
~CScopeChain ();
����������Destroys the scope chain.

Function Summary
void Add (const XObject &pObject);
����������Adds the object to the front of this scope chain.
void Remove ();
����������Removes the object in front of this scope chain.
int GetSize ();
����������Returns a number of objects in this scope chain.
XObject GetAt (int nIndex);
����������Returns an object at the given index in this scope chain.

Constructor/Destructor Detail

CScopeChain

CScopeChain();

Constructs the scope chain.

~CScopeChain

~CScopeChain();

Destroys the scope chain.

Function Detail

Add

void Add(const XObject &pObject);

Adds the object to the front of this scope chain.

Parameters:
pObject - the object to add

Remove

void Remove();

Removes the object in front of this scope chain.

GetSize

int GetSize();

Returns a number of objects in this scope chain.

Returns:
the number of objects in this scope chain

GetAt

XObject GetAt(int nIndex);

Returns an object at the given index in this scope chain.

Parameters:
nIndex - the index (zero-based)
Returns:
the object at the given index in this scope chain

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

Copyright 1999-2001 Unicorn Enterprises SA.
All Rights Reserved.