Salome HOME
projects
/
modules
/
med.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Addition of new reference coords including degenerated cells.
[modules/med.git]
/
src
/
MEDCoupling
/
MEDCouplingAutoRefCountObjectPtr.hxx
diff --git
a/src/MEDCoupling/MEDCouplingAutoRefCountObjectPtr.hxx
b/src/MEDCoupling/MEDCouplingAutoRefCountObjectPtr.hxx
index fc0c0f4e9a5de28061d285c7dea7c935cbdb0895..dc6383933de8b58d48e22dd6338c1806cd366cb8 100644
(file)
--- a/
src/MEDCoupling/MEDCouplingAutoRefCountObjectPtr.hxx
+++ b/
src/MEDCoupling/MEDCouplingAutoRefCountObjectPtr.hxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-201
2
CEA/DEN, EDF R&D
+// Copyright (C) 2007-201
3
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
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@
-41,6
+41,7
@@
namespace ParaMEDMEM
const T& operator*() const { return *_ptr; }
operator T *() { return _ptr; }
operator const T *() const { return _ptr; }
const T& operator*() const { return *_ptr; }
operator T *() { return _ptr; }
operator const T *() const { return _ptr; }
+ T *retn() { if(_ptr) _ptr->incrRef(); return _ptr; }
private:
void referPtr(T *ptr) { _ptr=ptr; if(_ptr) _ptr->incrRef(); }
void destroyPtr() { if(_ptr) _ptr->decrRef(); }
private:
void referPtr(T *ptr) { _ptr=ptr; if(_ptr) _ptr->incrRef(); }
void destroyPtr() { if(_ptr) _ptr->decrRef(); }