

Public Member Functions | |
| MEDCoupling::MEDCouplingFieldDouble * | getMCField () const |
| MEDDoubleField () | |
| MEDDoubleField (const MEDDoubleField &field) | |
| MEDDoubleField (MEDCoupling::MEDCouplingFieldDouble *field) | |
| MEDDoubleField & | operator= (const MEDDoubleField &field) |
| void | setMCField (MEDCoupling::MEDCouplingFieldDouble *field) |
| virtual | ~MEDDoubleField () |
Public Member Functions inherited from ICoCo::Field | |
| const char * | getCharName () const |
| const std::string & | getName () const |
| void | setName (const std::string &name) |
Additional Inherited Members | |
Protected Member Functions inherited from ICoCo::Field | |
| Field () | |
| virtual | ~Field () |
Field data stored internally as a MEDCoupling object.
This class is a wrapper around a MEDCoupling::MEDCouplingFieldDouble object, which holds the field data. In version 2 of ICoCo, MEDCoupling::MEDCouplingFieldDouble objects are not anymore exposed directly into the API of ICoCo::Problem. The rationale is to make the interface ICoCo::Problem free of external dependencies (MEDCoupling particularly).
| ICoCo::MEDDoubleField::MEDDoubleField | ( | ) |
Builds an empty field (internal MEDCoupling object not set).
| ICoCo::MEDDoubleField::MEDDoubleField | ( | MEDCoupling::MEDCouplingFieldDouble * | field | ) |
Builds a field and assign its internal MEDCouplingField object.
The name of 'this' is also automatically set the name of the MEDCouplingField object. If 'field' is null the name is set to the empty string.
| field | MEDCoupling field instance to use for field data. The field reference counter is incremented. |
| ICoCo::MEDDoubleField::MEDDoubleField | ( | const MEDDoubleField & | field | ) |
Copy construcotr.
|
virtual |
Destructor.
| MEDDoubleField& ICoCo::MEDDoubleField::operator= | ( | const MEDDoubleField & | field | ) |
Assignement operator.
| field | another MEDDoubleField instance. The previous internal MEDCoupling field reference (if any) has its counter decremented. |
| MEDCoupling::MEDCouplingFieldDouble* ICoCo::MEDDoubleField::getMCField | ( | ) | const |
Get the internal MEDCoupling field object.
Referenced by MEDCoupling::DisjointDEC::attachLocalField(), MEDCoupling::OverlapDEC::attachSourceLocalField(), and MEDCoupling::OverlapDEC::attachTargetLocalField().
| void ICoCo::MEDDoubleField::setMCField | ( | MEDCoupling::MEDCouplingFieldDouble * | field | ) |
Set the internal MEDCoupling field object.
Any previously set field is discarded (its reference counter is decreased) and the reference counter of the field being set is increased.
The name of 'this' is also automatically set the name of the MEDCouplingField object. If 'field' is nullptr the name is reset to the empty string.
| field | MEDCouplingFieldDouble object to be used. |