Xalan-C++ API Documentation

The Xalan-C++ XSL Transformer Version 1.0

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

XObjectGuard Class Reference

Manages the lifetime of an XObject instance. More...

#include <XObjectFactory.hpp>

Collaboration diagram for XObjectGuard:

List of all members.

Public Methods


Detailed Description

Manages the lifetime of an XObject instance.


Constructor & Destructor Documentation

XObjectGuard::XObjectGuard ( XObjectFactory & theFactory,
const XObject * theXObject)

Construct an XObjectGuard instance from a factory object and an XObject.

Parameters:
theFactory   object that manages lifetime of XObjects
theXObject   pointer to XObject managed

explicit XObjectGuard::XObjectGuard ()

XObjectGuard::XObjectGuard ( XObjectGuard & theRHS)

XObjectGuard::~XObjectGuard ()


Member Function Documentation

const XObject * XObjectGuard::get () const

Retrieve the object pointer (may be null).

Returns:
pointer to XObject

const XObject * XObjectGuard::operator-> () const

Retrieve the object pointer (must not be null).

Returns:
pointer to XObject

XObjectGuard & XObjectGuard::operator= ( XObjectGuard & theRHS)

const XObject * XObjectGuard::release ()

Transfers ownership of XObject to caller.

Returns:
pointer to XObject

void XObjectGuard::reset ( XObjectFactory & theFactory,
const XObject * theXObject)

Return the referenced object to the factory, if there is one, and set the pointers to the new object and factory.

void XObjectGuard::reset ()

Return the referenced object to the factory and set the pointers to null.


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

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSL Transformer Version 1.0
Copyright © 2000 The Apache Software Foundation. All Rights Reserved.