Changeset 529 for library/bdm/base

Show
Ignore:
Timestamp:
08/14/09 09:03:02 (15 years ago)
Author:
vbarta
Message:

defined *_ptr wrappers of shared pointers

Location:
library/bdm/base
Files:
4 modified

Legend:

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

    r527 r529  
    226226}; 
    227227UIREGISTER (RV); 
     228SHAREDPTR (RV); 
    228229 
    229230//! Concat two random variables 
     
    386387 
    387388}; 
    388  
     389SHAREDPTR(epdf); 
    389390 
    390391//! Conditional probability density, e.g. modeling some dependencies. 
     
    487488                //!@} 
    488489}; 
     490SHAREDPTR(mpdf); 
    489491 
    490492template <class EPDF> 
     
    740742}; 
    741743UIREGISTER (mepdf); 
     744SHAREDPTR (mepdf); 
    742745 
    743746//! \brief Combines RVs from a list of mpdfs to a single one. 
     
    990993}; 
    991994 
     995typedef Array<shared_ptr<epdf> > epdf_array; 
     996 
     997typedef Array<shared_ptr<mpdf> > mpdf_array; 
     998 
    992999template<class EPDF> 
    9931000vec mpdf_internal<EPDF>::samplecond (const vec &cond) 
  • library/bdm/base/datasources.h

    r527 r529  
    107107 
    108108UIREGISTER ( ITppFileDS ); 
     109SHAREDPTR ( ITppFileDS ); 
    109110 
    110111/*! 
     
    263264 
    264265UIREGISTER ( ArxDS ); 
     266SHAREDPTR ( ArxDS ); 
    265267 
    266268class stateDS : public DS { 
     
    346348 
    347349UIREGISTER ( stateDS ); 
     350SHAREDPTR ( stateDS ); 
    348351 
    349352}; //namespace 
  • library/bdm/base/loggers.h

    r477 r529  
    9292 
    9393UIREGISTER ( memlog ); 
     94SHAREDPTR ( memlog ); 
    9495 
    9596/*! 
     
    139140 
    140141UIREGISTER ( dirfilelog ); 
     142SHAREDPTR ( dirfilelog ); 
    141143 
    142144}; 
  • library/bdm/base/user_info.h

    r527 r529  
    550550        ParticularUI<T> ( const string &class_name ) : UI ( class_name, &typeid ( T ) ) {}; 
    551551 
    552         //! A method returning a brand new instance of class T, this method is the reason why there have to be a parameterless construcotor in class T 
     552        //! A method returning a brand new instance of class T, this method is the reason why there have to be a parameterless constructor in class T 
    553553        root* new_instance() const { 
    554554                return new T(); 
     
    565565  \brief Macro for registration of class into map of user-infos, registered class is scriptable using UI static methods 
    566566 
    567   Argument \a class_name has to be a descendant of root class and also, it has to have parameterless constructor prepared. 
     567  Argument \a class_name has to be a descendant of root class and also to have a default constructor. 
    568568  This macro should be used in header file, immediately after a class declaration. 
    569569