-// Copyright (C) 2007-2012 CEA/DEN, EDF R&D
+// Copyright (C) 2007-2014 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
namespace ICoCo
{
- class TrioField;
-
class MEDField : public ICoCo::Field
{
public:
- MEDField():_mesh(0),_field(0) { }
- MEDField(ParaMEDMEM::MEDCouplingUMesh* mesh, ParaMEDMEM::MEDCouplingFieldDouble* field);
- MEDField(TrioField&);
+ MEDField():_field(0) { }
+ MEDField(ParaMEDMEM::MEDCouplingFieldDouble* field);
+ MEDField(const MEDField& field);
+ MEDField& operator=(const MEDField& field);
virtual ~MEDField();
- ParaMEDMEM::MEDCouplingFieldDouble* getField() const { return _field; }
- ParaMEDMEM::MEDCouplingUMesh* getMesh()const { return _mesh; }
+ ParaMEDMEM::MEDCouplingFieldDouble *getField() const { return _field; }
+ const ParaMEDMEM::MEDCouplingMesh *getMesh() const { return _field->getMesh(); }
private:
- ParaMEDMEM::MEDCouplingUMesh* _mesh;
- ParaMEDMEM::MEDCouplingFieldDouble* _field;
+ ParaMEDMEM::MEDCouplingFieldDouble *_field;
};
}