Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/bits/collection.hfa

    r636d3715 r5e82d56  
    1313        // return true iff *this is an element of a collection
    1414        bool listed( Colable & co ) with( co ) {                        // pre: this != 0
    15                 return next != 0p;
     15                return next != 0;
    1616        }
    1717
     
    2323                return cp->next;
    2424        }
    25 
    26         forall( dtype T ) {
    27                 T *& Next( T * n ) {
    28                         return (T *)Next( (Colable *)n );
    29                 }
    30 
    31                 bool listed( T * n ) {
    32                         return Next( (Colable *)n ) != 0p;
    33                 }
    34         } // distribution
    3525} // distribution
    36 
    3726
    3827struct Collection {
     
    5241                return root == 0p;
    5342        }
    54 
    5543        void * head( Collection & collection ) with( collection ) {
    5644                return root;
     
    6755                curr = 0p;
    6856        } // post: elts = null
    69 
    70         forall( dtype T ) {
    71                 T * Curr( ColIter & ci ) with( ci ) {
    72                         return (T *)curr;
    73                 }
    74         } // distribution
    7557} // distribution
Note: See TracChangeset for help on using the changeset viewer.