Back to index

wims  3.65+svn20090927
Package Functions | Private Attributes
org.javia.arity.DoubleStack Class Reference

List of all members.

Package Functions

void clear ()
void push (double b)
void pop (int cnt)
double[] toArray ()
void clear ()
void push (double b)
void pop (int cnt)
double[] toArray ()

Private Attributes

double[] data = new double[8]
int size = 0

Detailed Description

Definition at line 19 of file DoubleStack.java.


Member Function Documentation

void org.javia.arity.DoubleStack.clear ( ) [inline, package]

Definition at line 23 of file DoubleStack.java.

                 {
        size = 0;
    }

Here is the caller graph for this function:

void org.javia.arity.DoubleStack.clear ( ) [inline, package]

Definition at line 23 of file DoubleStack.java.

                 {
        size = 0;
    }
void org.javia.arity.DoubleStack.pop ( int  cnt) [inline, package]

Definition at line 36 of file DoubleStack.java.

                      {
        size -= cnt;
    }
void org.javia.arity.DoubleStack.pop ( int  cnt) [inline, package]

Definition at line 36 of file DoubleStack.java.

                      {
        size -= cnt;
    }

Here is the caller graph for this function:

void org.javia.arity.DoubleStack.push ( double  b) [inline, package]

Definition at line 27 of file DoubleStack.java.

                        {
        if (size >= data.length) {
            double[] newData = new double[data.length << 1];
            System.arraycopy(data, 0, newData, 0, data.length);
            data = newData;
        }
        data[size++] = b;
    }

Here is the caller graph for this function:

void org.javia.arity.DoubleStack.push ( double  b) [inline, package]

Definition at line 27 of file DoubleStack.java.

                        {
        if (size >= data.length) {
            double[] newData = new double[data.length << 1];
            System.arraycopy(data, 0, newData, 0, data.length);
            data = newData;
        }
        data[size++] = b;
    }
double [] org.javia.arity.DoubleStack.toArray ( ) [inline, package]

Definition at line 40 of file DoubleStack.java.

                       {
        double[] trimmed = new double[size];
        System.arraycopy(data, 0, trimmed, 0, size);
        return trimmed;
    }

Here is the caller graph for this function:

double [] org.javia.arity.DoubleStack.toArray ( ) [inline, package]

Definition at line 40 of file DoubleStack.java.

                       {
        double[] trimmed = new double[size];
        System.arraycopy(data, 0, trimmed, 0, size);
        return trimmed;
    }

Member Data Documentation

double [] org.javia.arity.DoubleStack.data = new double[8] [private]

Definition at line 20 of file DoubleStack.java.

Definition at line 21 of file DoubleStack.java.


The documentation for this class was generated from the following files: