16 #if !defined(XPATHFACTORY_HEADER_GUARD_1357924680)
17 #define XPATHFACTORY_HEADER_GUARD_1357924680
31 XALAN_CPP_NAMESPACE_BEGIN
58 return doReturnObject(theXPath);
81 #if defined(XALAN_NO_STD_NAMESPACE)
82 struct DeleteXPathFunctor :
public unary_function<const XPath*, void>
91 bool fInReset =
false) :
92 m_factoryInstance(theFactoryInstance),
100 if (m_fInReset ==
true)
102 m_factoryInstance.doReturnObject(theXPath,
107 m_factoryInstance.returnObject(theXPath);
115 const bool m_fInReset;
124 const XPath* theXPath,
125 bool fInReset =
false) = 0;
145 const XPath* theXPath) :
146 m_factory(&theFactory),
159 m_factory = theRHS.m_factory;
160 m_object = theRHS.m_object;
164 theRHS.m_factory = 0;
181 assert(m_object != 0);
205 assert(m_factory != 0);
223 const XPath*
const theTemp = m_object;
241 const XPath* m_object;
246 XALAN_CPP_NAMESPACE_END
250 #endif // XPATHFACTORY_HEADER_GUARD_1357924680
~XPathGuard()
Definition: XPathFactory.hpp:168
Manages the lifetime of an XPath instance.
Definition: XPathFactory.hpp:133
const XPath * release()
Transfers ownership of XPath to caller.
Definition: XPathFactory.hpp:221
XPathGuard(XPathGuard &theRHS)
Definition: XPathFactory.hpp:153
bool returnObject(const XPath *theXPath)
Return an XPath to the factory.
Definition: XPathFactory.hpp:56
result_type operator()(argument_type theXPath) const
Definition: XPathFactory.hpp:98
Definition: XPathFactory.hpp:39
DeleteXPathFunctor(XPathFactory &theFactoryInstance, bool fInReset=false)
Definition: XPathFactory.hpp:89
XPathGuard(XPathFactory &theFactory, const XPath *theXPath)
Construct an XPathGuard instance from a factory object and an XPath.
Definition: XPathFactory.hpp:143
#define XALAN_XPATH_EXPORT
Definition: XPathDefinitions.hpp:33
A functor for use with stl algorithms.
Definition: XPathFactory.hpp:84
const XPath * operator->() const
Retrieve the object pointer (must not be null)
Definition: XPathFactory.hpp:179
void reset()
Return the referenced object to the factory and set pointers to null.
Definition: XPathFactory.hpp:201