Salome HOME
27e610c1637bceeb23d0bd844f7c353732f1dba0
[tools/medcoupling.git] / doc / developer / doxygen / doxfiles / reference / cpp / cpp.dox
1 /*!
2   \page cpp Note for C++ developers
3   
4 Using the C++ API provided by MED requires you to be familiar with some specificities which are not
5 visible to the Python user.
6
7 - \ref MEDCoupling::MCAuto "MCAuto"
8 - \subpage MEDCouplingTimeLabelPage
9
10 \b Note: from version 8, all the standard (sequential and parallel) MEDCoupling API lies in a single
11  \ref MEDCoupling "MEDCoupling namespace".
12 The true parallel functionalities of the \ref library "MED library" are detailed here: \ref parallel
13
14 The memory management of the various structures is eased by the class 
15 \ref MEDCoupling::MCAuto "MCAuto". It acts as an auto pointer and takes care of deleting the
16 memory automatically when going out of scope. See an example usage in \ref cpp_mcfielddouble_WriteVTK .
17 Beware however that not all functions return a pointer that should be deleted when going out of scope.
18 Some methods only return an observer to the data, see for example \ref MEDCoupling::MEDCouplingPointSet::getCoords() "getCoords()". The API documentation of each method indicates whether the caller is responsible of the returned
19 data or not. 
20
21 For advanced usage, one has to be aware of the stamping mechanism used internally to know
22 whether an instance has been modified or not. This is described in the second page above:
23  \ref MEDCouplingTimeLabelPage
24   
25   */