List of all members | Public Member Functions | Private Member Functions | Private Attributes
utl::BranchOwner Class Reference

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 &)
 
BranchOwneroperator= (const BranchOwner &)
 

Private Attributes

xercesc::DOMDocument * fDocument = nullptr
 

Detailed Description

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?

Definition at line 40 of file Branch.h.

Constructor & Destructor Documentation

utl::BranchOwner::BranchOwner ( xercesc::DOMDocument *const  doc)
inline

Definition at line 42 of file Branch.h.

utl::BranchOwner::~BranchOwner ( )
inline

Definition at line 43 of file Branch.h.

References fDocument.

utl::BranchOwner::BranchOwner ( const BranchOwner )
private

Member Function Documentation

xercesc::DOMDocument* utl::BranchOwner::GetDocument ( ) const
inline

Definition at line 45 of file Branch.h.

References fDocument.

BranchOwner& utl::BranchOwner::operator= ( const BranchOwner )
private

Member Data Documentation

xercesc::DOMDocument* utl::BranchOwner::fDocument = nullptr
private

Definition at line 51 of file Branch.h.

Referenced by GetDocument(), and ~BranchOwner().


The documentation for this class was generated from the following file:

, generated on Tue Sep 26 2023.