Changeset 383 for bdm/stat/libBM.h

Show
Ignore:
Timestamp:
06/17/09 23:54:11 (15 years ago)
Author:
smidl
Message:

mex for merging and fixes in UI

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bdm/stat/libBM.h

    r378 r383  
    566566 
    567567*/ 
    568 class mepdf : public mpdf 
    569 { 
    570 public: 
    571   //!Default constructor 
    572   mepdf(epdf* em) : mpdf() {ep = em ;}; 
    573   mepdf(const epdf* em) : mpdf() {ep = const_cast<epdf*>(em);}; 
    574   void condition(const vec &cond) {} 
     568class mepdf : public mpdf { 
     569        bool owning_ep; // flag trigers deleting ep by destructor 
     570public: 
     571        //!Default constructor 
     572        mepdf ( epdf* em, bool owning_ep0=false ) :mpdf ( ) {ep= em ;owning_ep=owning_ep0;}; 
     573        mepdf (const epdf* em ) :mpdf ( ) {ep=const_cast<epdf*>( em );}; 
     574        void condition ( const vec &cond ) {} 
     575        ~mepdf(){if (owning_ep) delete ep;} 
    575576}; 
    576577 
     
    578579//!this abstract class is common to epdf and mpdf 
    579580//!\todo Think of better design - global functions rv=get_rv(Array<mpdf*> mpdfs); ?? 
    580 class compositepdf 
    581 { 
     581class compositepdf { 
    582582protected: 
    583583  //!Number of mpdfs in the composite