From: abn Date: Wed, 16 Apr 2014 08:34:00 +0000 (+0200) Subject: Doc: indicating functions returning a borrowed ref in MEDLoader X-Git-Tag: V7_4_0rc1~30^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aef6d0439ab87e4315a981f4650607220c5fbfdd;p=modules%2Fmed.git Doc: indicating functions returning a borrowed ref in MEDLoader --- diff --git a/src/MEDLoader/MEDFileData.cxx b/src/MEDLoader/MEDFileData.cxx index 82687b1bb..ffac18050 100644 --- a/src/MEDLoader/MEDFileData.cxx +++ b/src/MEDLoader/MEDFileData.cxx @@ -66,16 +66,19 @@ std::vector MEDFileData::getDirectChildren() const } +/** Return a borrowed reference (caller is not responsible for object destruction) */ MEDFileFields *MEDFileData::getFields() const { return const_cast(static_cast(_fields)); } +/** Return a borrowed reference (caller is not responsible for object destruction) */ MEDFileMeshes *MEDFileData::getMeshes() const { return const_cast(static_cast(_meshes)); } +/** Return a borrowed reference (caller is not responsible for object destruction) */ MEDFileParameters *MEDFileData::getParams() const { return const_cast(static_cast(_params)); diff --git a/src/MEDLoader/MEDFileMesh.cxx b/src/MEDLoader/MEDFileMesh.cxx index 6360c2a9e..b68a6fa74 100644 --- a/src/MEDLoader/MEDFileMesh.cxx +++ b/src/MEDLoader/MEDFileMesh.cxx @@ -5673,6 +5673,7 @@ MEDFileMeshesIterator *MEDFileMeshes::iterator() return new MEDFileMeshesIterator(this); } +/** Return a borrowed reference (caller is not responsible) */ MEDFileMesh *MEDFileMeshes::getMeshAtPos(int i) const { if(i<0 || i>=(int)_meshes.size()) @@ -5683,6 +5684,7 @@ MEDFileMesh *MEDFileMeshes::getMeshAtPos(int i) const return _meshes[i]->getOneTimeStep(); } +/** Return a borrowed reference (caller is not responsible) */ MEDFileMesh *MEDFileMeshes::getMeshWithName(const std::string& mname) const { std::vector ms=getMeshesNames();