Changeset 795 for library/bdm

Show
Ignore:
Timestamp:
01/29/10 01:13:17 (14 years ago)
Author:
mido
Message:

validate() finally included into UI::build mechanism and removed from some from_setting methods,
from that point StateDS test does not pass, I do not understand why

Location:
library/bdm
Files:
5 modified

Legend:

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

    r792 r795  
    504504        epdf() {}; 
    505505        epdf ( const epdf &e ) : pdf ( e ) {}; 
    506          
    507         virtual void    validate (int dim0){ 
    508                 dim = dim0; 
    509         } 
    510          
     506                 
    511507        //!@} 
    512508 
  • library/bdm/base/datasources.cpp

    r738 r795  
    162162        UI::get ( xt, set, "x0", UI::optional ); 
    163163 
    164         // prepare urv 
    165         validate(); 
    166164} 
    167165 
    168166void StateDS::validate() { 
     167        DS::validate(); 
     168 
    169169        Yrv = concat ( OM->_rv() , IM->_rv() ); // export also true state 
    170170        ytsize = Yrv._dsize(); 
  • library/bdm/base/datasources.h

    r766 r795  
    150150                set_drv ( iepdf->_rv(), RV() ); 
    151151                utsize = 0; 
    152                 validate(); 
    153         } 
     152        } 
     153 
    154154        void validate() { 
     155                DS::validate(); 
     156 
    155157                dt = iepdf->sample(); 
    156158        } 
     
    237239                utsize = ut.length(); 
    238240                dtsize = ytsize + utsize; 
    239                 validate(); 
    240         } 
     241        } 
     242 
    241243        void validate() { 
     244                DS::validate(); 
     245 
    242246                //taken from sample() - shift of history is not done here 
    243247                ut2rgr.filldown ( ut, rgr ); 
  • library/bdm/base/user_info.h

    r793 r795  
    349349                        throw; 
    350350                } 
     351 
     352                // validate the new instance 
     353                instance->validate(); 
    351354        } 
    352355 
     
    366369 
    367370                assert_type ( link.result, Setting::TypeList ); 
     371 
    368372 
    369373                int len = link.result.getLength(); 
  • library/bdm/stat/exp_family.h

    r773 r795  
    14421442          n = w.length(); 
    14431443          if (n>0) 
    1444                 epdf::validate ( samples ( 0 ).length() ); 
     1444                pdf::dim = samples ( 0 ).length(); 
    14451445        } 
    14461446        //! Potentially dangerous, use with care.