Ignore:
Timestamp:
05/15/12 19:00:13 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...

Minor speedup of the code. Share memory between arrays as much as possible.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/hpc33/src/STIdxIter.h

    r2519 r2524  
    3939  Bool pastEnd() ;
    4040  virtual void next() = 0 ;
    41   virtual Vector<uInt> getRows() = 0 ;
     41  virtual Vector<uInt> getRows( StorageInitPolicy policy=COPY ) = 0 ;
    4242protected:
    4343  IndexIterator *iter_m ;
     
    5555                            vector< vector<uInt> > idlist=vector< vector<uInt> >() ) ;
    5656  void next() ;
    57   Vector<uInt> getRows() ;
     57  Vector<uInt> getRows( StorageInitPolicy policy=COPY ) ;
    5858private:
    5959  Block<uInt> storage_m ;
     
    6767                         vector< vector<uInt> > idlist=vector< vector<uInt> >() ) ;
    6868  void next() ;
    69   Vector<uInt> getRows() ;
     69  Vector<uInt> getRows( StorageInitPolicy policy=COPY ) ;
    7070private:
    7171  Int isChanged( Vector<uInt> &idx ) ;
     
    9292  void next() { iter_m->next() ; } ;
    9393  vector<uInt> getRowsSTL() { return tovector( iter_m->getRows() ) ; } ;
    94   Vector<uInt> getRows() { return iter_m->getRows() ; } ;
     94  Vector<uInt> getRows( StorageInitPolicy policy=COPY ) { return iter_m->getRows( policy ) ; } ;
    9595protected:
    9696  ArrayIndexIterator *iter_m ;
Note: See TracChangeset for help on using the changeset viewer.