Changeset 90

Show
Ignore:
Timestamp:
05/18/08 03:19:04 (8 months ago)
Author:
csauls
Message:

Progressed on cashew.utils.Sfv

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cashew/utils/Sfv.d

    r89 r90  
    3333 +/ 
    3434public final class Sfv { 
     35 
     36    /+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
     37     +   
     38     +/ 
     39    public static struct Entry { 
     40 
     41        /+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
     42         +   
     43         +/ 
     44        FilePath 
     45            path ; 
     46 
     47        /+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
     48         +   
     49         +/ 
     50        uint 
     51            checksum = 0u ; 
     52 
     53    } // struct Entry 
    3554 
    3655    /+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
     
    283302     +   
    284303     +/ 
     304    public int opApply (int delegate (size_t, Entry) dg) { 
     305        int 
     306            result ; 
     307         
     308        foreach (index, entry; m_entries) { 
     309            result = dg(index, entry); 
     310             
     311            if (result != 0) { 
     312                break; 
     313            } 
     314        } 
     315        return result; 
     316    } 
     317 
     318    /+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
     319     +   
     320     +/ 
    285321    private FilePath 
    286322        m_path ; 
     
    362398 
    363399} // final class Sfv 
    364  
    365  
    366 /+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
    367  +   
    368  +/ 
    369 private struct Entry { 
    370  
    371     /+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
    372      +   
    373      +/ 
    374     FilePath 
    375         path ; 
    376  
    377     /+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
    378      +   
    379      +/ 
    380     uint 
    381         checksum = 0u ; 
    382  
    383 } // struct Entry 
    384400 
    385401