Changeset 21 for trunk

Show
Ignore:
Timestamp:
09/07/06 20:05:18 (2 years ago)
Author:
Freeagle
Message:

Vector.d - minor modifications to inner class and interface names
AArray.d - state associative array

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Universal/UniCon/State/Vector.d

    r20 r21  
    2727    read() 
    2828    { 
    29         return new VectorHandler(_data); 
     29        return new Handler(_data); 
    3030    } 
    3131     
     
    3434    { 
    3535        T[] temp = _data; 
    36         T[] arrayCopy = new T[temp.length]; 
    37         arrayCopy[] = temp[]; 
    38         return new VectorHandler(arrayCopy); 
     36        T[] copy = new T[temp.length]; 
     37        copy[] = temp[]; 
     38        return new Handler(copy); 
    3939    } 
    4040     
    4141    void 
    42     store(IEditor array) 
    43     { 
    44         _data = (cast(VectorHandler)array)._data; 
    45         (cast(VectorHandler)array)._data = null; 
     42    store(inout IEditor array) 
     43    { 
     44        _data = (cast(Handler)array)._data; 
     45        array = null; 
    4646    } 
    4747     
     
    4949    private: 
    5050     
    51     static class VectorHandler : IReader, IEditor 
     51    static class Handler : IReader, IEditor 
    5252    { 
    5353        /* fields */ 
     
    7070        edit() 
    7171        { 
    72             T[] arrayCopy = new T[_data.length]; 
    73             arrayCopy[] = _data[]; 
    74             return new Vector.VectorHandler(arrayCopy); 
     72            T[] copy = new T[_data.length]; 
     73            copy[] = _data[]; 
     74            return new Handler(copy); 
    7575        } 
    7676