18 #if !defined(XPATHFACTORY_HEADER_GUARD_1357924680) 19 #define XPATHFACTORY_HEADER_GUARD_1357924680 33 XALAN_CPP_NAMESPACE_BEGIN
60 return doReturnObject(theXPath);
83 #if defined(XALAN_NO_STD_NAMESPACE) 93 bool fInReset =
false) :
94 m_factoryInstance(theFactoryInstance),
102 if (m_fInReset ==
true)
104 return m_factoryInstance.doReturnObject(theXPath,
109 return m_factoryInstance.returnObject(theXPath);
117 const bool m_fInReset;
126 const XPath* theXPath,
127 bool fInReset =
false) = 0;
147 const XPath* theXPath) :
148 m_factory(&theFactory),
161 m_factory = theRHS.m_factory;
162 m_object = theRHS.m_object;
166 theRHS.m_factory = 0;
183 assert(m_object != 0);
207 assert(m_factory != 0);
209 m_factory->returnObject(m_object);
225 const XPath*
const theTemp = m_object;
243 const XPath* m_object;
248 XALAN_CPP_NAMESPACE_END
252 #endif // XPATHFACTORY_HEADER_GUARD_1357924680 const XPath * operator->() const
Retrieve the object pointer (must not be null)
Manages the lifetime of an XPath instance.
const XPath * release()
Transfers ownership of XPath to caller.
XPathGuard(XPathGuard &theRHS)
bool returnObject(const XPath *theXPath)
Return an XPath to the factory.
bool operator==(const ElemAttributeSet &theLHS, const ElemAttributeSet &theRHS)
DeleteXPathFunctor(XPathFactory &theFactoryInstance, bool fInReset=false)
XPathGuard(XPathFactory &theFactory, const XPath *theXPath)
Construct an XPathGuard instance from a factory object and an XPath.
#define XALAN_XPATH_EXPORT
A functor for use with stl algorithms.
result_type operator()(argument_type theXPath) const
void reset()
Return the referenced object to the factory and set pointers to null.