Ignore:
Timestamp:
07/30/10 16:49:24 (14 years ago)
Author:
Malte Marquarding
Message:

Make python wrapper noncopyable

Location:
branches/newfiller/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/newfiller/src/FillerBase.h

    r1786 r1787  
    8787  private:
    8888
     89    FillerBase() {;}
     90
    8991    casa::CountedPtr< Scantable > table_;
    9092    casa::String referenceRx_;
  • branches/newfiller/src/FillerWrapper.h

    r1786 r1787  
    3131public:
    3232
    33   FillerWrapper() : filler_(0), attached_(false), stable_(0) {;}
    34 
    35   FillerWrapper(ScantableWrapper tbl) : filler_(0), attached_(false)
     33  explicit FillerWrapper(ScantableWrapper tbl) : filler_(0), attached_(false)
    3634  { stable_ = tbl.getCP(); }
    3735
     
    7775private:
    7876
     77  FillerWrapper() {;}
     78  FillerWrapper(const FillerWrapper& other) {;}
     79
    7980  casa::CountedPtr<FillerBase> filler_;
    8081  bool attached_;
  • branches/newfiller/src/python_Filler.cpp

    r1786 r1787  
    3030//#---------------------------------------------------------------------------
    3131#include <boost/python.hpp>
     32#include <boost/noncopyable.hpp>
    3233
    3334#include "ScantableWrapper.h"
     
    4041
    4142    void python_Filler() {
    42       class_<FillerWrapper>("filler")
    43         .def( init < ScantableWrapper > () )
     43      class_<FillerWrapper, boost::noncopyable>("filler",
     44                                                init < ScantableWrapper >() )
    4445        .def("open", &FillerWrapper::open)
    4546        .def("fill", &FillerWrapper::fill)
Note: See TracChangeset for help on using the changeset viewer.