Class to handle memory related to Xerces. More...
#include <Branch.h>
Public Member Functions | |
BranchOwner (xercesc::DOMDocument *const doc) | |
xercesc::DOMDocument * | GetDocument () const |
~BranchOwner () | |
Private Member Functions | |
BranchOwner (const BranchOwner &) | |
BranchOwner & | operator= (const BranchOwner &) |
Private Attributes | |
xercesc::DOMDocument * | fDocument = nullptr |
Class to handle memory related to Xerces.
To guarantee the owner remains valid until the last copy of a branch dissapears we use a shared pointer to a BranchOwner which in turn holds a pointer to the actual owner. This class is responsible for calling the release method on the owner so Xerces can deallocate de memory. Do boost pointers take a deletion policy?
|
inline |
|
inline |
|
private |
|
inline |
|
private |
|
private |
Definition at line 51 of file Branch.h.
Referenced by GetDocument(), and ~BranchOwner().