Unicorn XML Toolkit
Version 1.00.00

Namespace EcmaScript
Class CCompletion

class CCompletion {
public:
    enum {
        normal,
        abruptBreak,
        abruptContinue,
        abruptReturn
        };
public:
    CCompletion();
    CCompletion(int nForm);
    CCompletion(int nForm, const XValue &pValue);
    ~CCompletion();
public:
    const CCompletion &operator=(const CCompletion &source);
    int GetForm() const;
    XValue GetValue() const;
    };

Thie ECMAScript completion.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
CValue
Constructor/Destructor Summary
CCompletion ();
����������Constructs the normal completion.
CCompletion (int nForm);
����������Constructs the completion not associated with any value.
CCompletion (int nForm, const XValue &pValue);
����������Constructs the completion associated with a value.
~CCompletion ();
����������Destroys the completion.

Function Summary
int GetForm ();
����������Returns a form of this completion.
XValue GetValue ();
����������Returns a value associated with this completion.

Constructor/Destructor Detail

CCompletion

CCompletion();

Constructs the normal completion.

CCompletion

CCompletion(int nForm);

Constructs the completion not associated with any value.

The form of the constructed completion must be specified by nForm parameter; the allowed values are CCompletion::normal , CCompletion::abruptBreak , and CCompletion::abruptContinue .

Parameters:
nForm - the form of this completion

CCompletion

CCompletion(int nForm, const XValue &pValue);

Constructs the completion associated with a value.

The form of the constructed completion must be specified by nForm parameter; the allowed values are CCompletion::normal , CCompletion::abruptBreak , CCompletion::abruptContinue , and CCompletion::abruptReturn .

Parameters:
nForm - the form of this completion
pValue - the value associated with this completion

~CCompletion

~CCompletion();

Destroys the completion.

Function Detail

GetForm

int GetForm();

Returns a form of this completion.

Returns:
the form of this completion

GetValue

XValue GetValue();

Returns a value associated with this completion.

Returns:
the value associated with this completion; NULL if there is no value associated

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

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