Changeset 12 for libBM.cpp

Show
Ignore:
Timestamp:
01/25/08 10:53:47 (17 years ago)
Author:
smidl
Message:

opravy v libDC (stale nefunkcni)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • libBM.cpp

    r8 r12  
    99void RV::init( ivec in_ids, Array<std::string> in_names, ivec in_sizes, ivec in_times, ivec in_obs ) { 
    1010        // 
     11        int i; 
    1112        len = in_ids.length(); 
    1213        //PRUDENT_MODE 
     
    2526        times = in_times; 
    2627        obs = in_obs; 
     28        size = 0; 
     29        for(i=0;i<len;i++){size+=sizes(i);} 
    2730}; 
    2831 
     
    3235 
    3336RV::RV () {}; 
    34  
    35 inline int RV::length () {return len;}; 
    3637 
    3738RV::RV ( ivec in_ids ) { 
     
    4849} 
    4950 
    50 RV RV::rvsubselect(ivec ind){ 
     51RV RV::subselect(ivec ind){ 
    5152        return RV(ids(ind), names(to_Arr(ind)), sizes(ind), times(ind), obs(ind)); 
    5253}