if(_field)
_field->incrRef();
}
+ MEDField::MEDField(const MEDField& field):_field(field.getField())
+ {
+ if(_field)
+ _field->incrRef();
+ }
MEDField::~MEDField()
{
if(_field)
_field->decrRef();
}
+
+
+ MEDField& MEDField::operator=(const MEDField& field)
+ {
+ if (_field)
+ _field->decrRef();
+
+ _field=field.getField();
+ if(_field)
+ _field->incrRef();
+ return *this;
+ }
}
public:
MEDField():_field(0) { }
MEDField(ParaMEDMEM::MEDCouplingFieldDouble* field);
+ MEDField(const MEDField& field);
+ MEDField& operator=(const MEDField& field);
virtual ~MEDField();
ParaMEDMEM::MEDCouplingFieldDouble *getField() const { return _field; }
const ParaMEDMEM::MEDCouplingMesh *getMesh() const { return _field->getMesh(); }