Changeset 493 for library/tests

Show
Ignore:
Timestamp:
08/11/09 08:32:02 (16 years ago)
Author:
vbarta
Message:

fixed UIREGISTER

Location:
library/tests
Files:
11 modified

Legend:

Unmodified
Added
Removed
  • library/tests/datalink_test.cpp

    r477 r493  
    1 #define BDMLIB // not an ideal way to prevent double registration of UI factories... 
    21#include "../bdm/stat/exp_family.h" 
    32#include "UnitTest++.h" 
  • library/tests/egiw_harness.h

    r477 r493  
    2929        void from_setting ( const Setting &set ); 
    3030}; 
     31UIREGISTER(egiw_harness); 
    3132 
    3233} 
  • library/tests/egiw_test.cpp

    r477 r493  
    1 #define BDMLIB // not an ideal way to prevent double registration of UI factories... 
    21#include "base/bdmbase.h" 
    32#include "base/user_info.h" 
     
    1211 
    1312using namespace bdm; 
    14  
    15 template<> 
    16 const ParticularUI<egiw> &ParticularUI<egiw>::factory ( 
    17     ParticularUI<egiw> ( "egiw" ) ); 
    18  
    19 template<> 
    20 const ParticularUI<egiw_harness> &ParticularUI<egiw_harness>::factory ( 
    21     ParticularUI<egiw_harness> ( "egiw_harness" ) ); 
    2213 
    2314TEST ( test_egiw ) { 
  • library/tests/epdf_harness.cpp

    r489 r493  
    1010namespace bdm { 
    1111 
    12 template<> 
    13 const ParticularUI<epdf_harness> &ParticularUI<epdf_harness>::factory ( 
    14     ParticularUI<epdf_harness> ( "epdf_harness" ) ); 
    15  
    1612void epdf_harness::test_config ( const char *config_file_name ) { 
    1713        RV::clear_all(); 
  • library/tests/epdf_harness.h

    r482 r493  
    1313#ifndef EPDF_HARNESS_H 
    1414#define EPDF_HARNESS_H 
    15  
    16 #define BDMLIB // not an ideal way to prevent double registration of UI factories... 
    1715 
    1816#include "bdmroot.h" 
     
    7674        void check_cond_covariance( mprod &mep ); 
    7775}; 
     76UIREGISTER(epdf_harness); 
    7877 
    7978} 
  • library/tests/epdf_test.cpp

    r477 r493  
    1 #define BDMLIB // not an ideal way to prevent double registration of UI factories... 
    21#include "base/user_info.h" 
    32#include "stat/exp_family.h" 
     
    65 
    76using namespace bdm; 
    8  
    9 template<> 
    10 const ParticularUI<egamma> &ParticularUI<egamma>::factory ( 
    11     ParticularUI<egamma> ( "egamma" ) ); 
    12  
    13 template<> 
    14 const ParticularUI<enorm<ldmat> > &ParticularUI<enorm<ldmat> >::factory ( 
    15     ParticularUI<enorm<ldmat> > ( "enorm<ldmat>" ) ); 
    16  
    17 template<> 
    18 const ParticularUI<enorm<fsqmat> > &ParticularUI<enorm<fsqmat> >::factory ( 
    19     ParticularUI<enorm<fsqmat> > ( "enorm<fsqmat>" ) ); 
    20  
    21 template<> 
    22 const ParticularUI<enorm<chmat> > &ParticularUI<enorm<chmat> >::factory ( 
    23     ParticularUI<enorm<chmat> > ( "enorm<chmat>" ) ); 
    247 
    258TEST ( test_egamma ) { 
  • library/tests/loggers_test.cpp

    r477 r493  
    1 #define BDMLIB // not an ideal way to prevent double registration of UI factories... 
    21#include "base/loggers.h" 
    32#include "test_util.h" 
  • library/tests/mpdf_harness.cpp

    r484 r493  
    88 
    99namespace bdm { 
    10  
    11 template<> 
    12 const ParticularUI<mpdf_harness> &ParticularUI<mpdf_harness>::factory ( 
    13     ParticularUI<mpdf_harness> ( "mpdf_harness" ) ); 
    1410 
    1511void mpdf_harness::test_config ( const char *config_file_name ) { 
  • library/tests/mpdf_harness.h

    r484 r493  
    1313#ifndef MPDF_HARNESS_H 
    1414#define MPDF_HARNESS_H 
    15  
    16 #define BDMLIB // not an ideal way to prevent double registration of UI factories... 
    1715 
    1816#include "bdmroot.h" 
     
    5452        void check_covariance(); 
    5553}; 
     54UIREGISTER(mpdf_harness); 
    5655 
    5756} 
  • library/tests/mpdf_test.cpp

    r492 r493  
    1 #define BDMLIB // not an ideal way to prevent double registration of UI factories... 
    21#include "base/bdmbase.h" 
    32#include "base/user_info.h" 
     
    98 
    109using namespace bdm; 
    11  
    12 template<> 
    13 const ParticularUI<mgamma> &ParticularUI<mgamma>::factory ( 
    14     ParticularUI<mgamma> ( "mgamma" ) ); 
    15  
    16 template<> 
    17 const ParticularUI<mlnorm<ldmat> > &ParticularUI<mlnorm<ldmat> >::factory ( 
    18     ParticularUI<mlnorm<ldmat> > ( "mlnorm<ldmat>" ) ); 
    19  
    20 template<> 
    21 const ParticularUI<mlnorm<chmat> > &ParticularUI<mlnorm<chmat> >::factory ( 
    22     ParticularUI<mlnorm<chmat> > ( "mlnorm<chmat>" ) ); 
    2310 
    2411TEST ( test_mepdf ) { 
  • library/tests/test_util.cpp

    r486 r493  
    1 #define BDMLIB // not an ideal way to prevent double registration of UI factories... 
    21#include "test_util.h" 
    32#include "stat/exp_family.h"