Show
Ignore:
Timestamp:
04/09/10 09:31:37 (14 years ago)
Author:
mido
Message:

cleanup of MemDS and its descendants
bdmtoolbox/CMakeLists.txt slightly changed to avoid unnecessary MEX condition
"indeces" replaced by "indices"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/base/bdmbase.h

    r895 r896  
    594594        //!@} 
    595595        void from_setting ( const Setting &set ) { 
     596                root::from_setting( set ); 
    596597                shared_ptr<RV> r = UI::build<RV> ( set, "rv", UI::optional ); 
    597598                if ( r ) { 
     
    740741class datalink_part : public datalink { 
    741742protected: 
    742         //! indeces of values in vector downsize 
     743        //! indices of values in vector downsize 
    743744        ivec v2v_down; 
    744745public: 
     
    760761        //! rv of the history 
    761762        RV Hrv; 
    762         //! h2v : indeces in down 
     763        //! h2v : indices in down 
    763764        ivec h2v_down; 
    764         //! h2v : indeces in history 
     765        //! h2v : indices in history 
    765766        ivec h2v_hist; 
    766         //! v2h: indeces of up too be pushed to h 
     767        //! v2h: indices of up too be pushed to h 
    767768        ivec v2h_up; 
    768769public: 
     
    932933        virtual void getdata ( vec &dt ) const = 0; 
    933934 
    934         //! Returns data records at indeces. Default is inefficent. 
    935         virtual void getdata ( vec &dt, const ivec &indeces ) { 
     935        //! Returns data records at indices. Default is inefficent. 
     936        virtual void getdata ( vec &dt, const ivec &indices ) { 
    936937                vec tmp(dtsize); 
    937938                getdata(tmp); 
    938                 dt = tmp(indeces); 
     939                dt = tmp(indices); 
    939940        }; 
    940941 
     
    942943        virtual void write ( const vec &ut ) NOT_IMPLEMENTED_VOID; 
    943944 
    944         //! Accepts action variables at specific indeces 
    945         virtual void write ( const vec &ut, const ivec &indeces ) NOT_IMPLEMENTED_VOID; 
     945        //! Accepts action variables at specific indices 
     946        virtual void write ( const vec &ut, const ivec &indices ) NOT_IMPLEMENTED_VOID; 
    946947 
    947948        //! Moves from \f$ t \f$ to \f$ t+1 \f$, i.e. perfroms the actions and reads response of the system. 
     
    960961                return Urv; 
    961962        } 
     963 
    962964        //! set random variables 
    963965        virtual void set_drv ( const  RV &drv, const RV &urv) {