Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
Deletes a (non-owning) RCPNode but not it's underlying object in case of a throw. More...
#include <Teuchos_RCPNode.hpp>
Public Member Functions | |
RCPNodeThrowDeleter (RCPNode *node) | |
~RCPNodeThrowDeleter () | |
Called with node_!=0 when an exception is thrown. More... | |
RCPNode * | get () const |
void | release () |
Releaes the RCPNode pointer before the destructor is called. More... | |
Private Member Functions | |
RCPNodeThrowDeleter () | |
RCPNodeThrowDeleter (const RCPNodeThrowDeleter &) | |
RCPNodeThrowDeleter & | operator= (const RCPNodeThrowDeleter &) |
Private Attributes | |
RCPNode * | node_ |
Deletes a (non-owning) RCPNode but not it's underlying object in case of a throw.
This class is used in contexts where RCPNodeTracer::addNewRCPNode(...) might thrown an exception for a duplicate node being added. The assumption is that there must already be an owning (or non-owning) RCP object that will delete the underlying object and therefore this class should not call delete_obj()!
Definition at line 1084 of file Teuchos_RCPNode.hpp.
|
inline |
Definition at line 1087 of file Teuchos_RCPNode.hpp.
|
inline |
Called with node_!=0 when an exception is thrown.
When an exception is not thrown, the client should have called release() before this function is called.
Definition at line 1095 of file Teuchos_RCPNode.hpp.
|
private |
|
private |
|
inline |
Definition at line 1104 of file Teuchos_RCPNode.hpp.
|
inline |
Releaes the RCPNode pointer before the destructor is called.
Definition at line 1109 of file Teuchos_RCPNode.hpp.
|
private |
|
private |
Definition at line 1114 of file Teuchos_RCPNode.hpp.