18#if !defined(XOBJECTFACTORYDEFAULT_HEADER_GUARD_1357924680)
19#define XOBJECTFACTORYDEFAULT_HEADER_GUARD_1357924680
94 MemoryManager& theManager,
107 return m_xobjects.getMemoryManager();
137 const XalanDOMChar* theValue,
138 XalanSize_t theLength);
170 bool fInReset =
false);
#define XALAN_CPP_NAMESPACE
#define XALAN_XPATH_EXPORT
#define XALAN_DEFAULT_MEMMGR
ArenaAllocatorType::size_type size_type
XNodeSetAllocator::size_type size_type
MemoryManager & getMemoryManager()
virtual const XObjectPtr createBoolean(bool theValue)
Create a boolean XObject from a boolean value.
XalanVector< XString * > XStringCacheType
@ eDefaultXNodeSetNodeProxyBlockSize
@ eDefaultXNodeSetBlockSize
@ eDefaultXNumberBlockSize
@ eXResultTreeFragCacheMax
@ eDefaultXStringBlockSize
virtual const XObjectPtr createString(const XalanDOMChar *theValue, XalanSize_t theLength)
Create a string XObject from an array of characters.
virtual const XObjectPtr createNodeSet(BorrowReturnMutableNodeRefList &theValue)
Create a node set XObject from a node list.
virtual ~XObjectFactoryDefault()
virtual const XObjectPtr createString(GetCachedString &theValue)
Create a string XObject from a cached XalanDOMString,.
XalanVector< XObject * > XObjectCollectionType
virtual void reset()
Reset the instance.
virtual const XObjectPtr createNumber(const XToken &theValue)
Create a numeric XObject from an XToken.
virtual const XObjectPtr createStringAdapter(const XObjectPtr &theValue, XPathExecutionContext &theExecutionContext)
Create a string XObject that will adapt another XObject to behave like a string.
XalanVector< XNodeSet * > XNodeSetCacheType
virtual const XObjectPtr createStringReference(const XalanDOMString &theValue)
Create a string XObject from a string.
virtual const XObjectPtr createNodeSet(XalanNode *theValue)
Create a node set XObject from a node.
XalanVector< XNumber * > XNumberCacheType
virtual void holdReference(XObjectPtr theValue)
Hold a reference to an XObject instance until the factory is reset.
virtual const XObjectPtr createUnknown(const XalanDOMString &theValue)
Create an "unknown" XObject from a string.
virtual const XObjectPtr createString(const XToken &theValue)
Create a string XObject from an XToken.
virtual const XObjectPtr createNumber(double theValue)
Create a numeric XObject from a number.
virtual const XObjectPtr createString(const XalanDOMChar *theValue)
Create a string XObject from a null-terminated array of characters.
virtual const XObjectPtr createString(const XalanDOMString &theValue)
Create a string XObject from a string.
XObjectFactoryDefault(MemoryManager &theManager XALAN_DEFAULT_MEMMGR, size_type theXStringBlockSize=eDefaultXStringBlockSize, size_type theXNumberBlockSize=eDefaultXNumberBlockSize, size_type theXNodeSetBlockSize=eDefaultXNodeSetBlockSize, size_type theXNodeSetNodeProxyBlockSize=eDefaultXNodeSetNodeProxyBlockSize)
Construct a factory for creating XObjects.
virtual bool doReturnObject(XObject *theXObject, bool fInReset=false)
Return an XObject to the factory.
static XObjectFactoryDefault * create(MemoryManager &theManager, size_type theXStringBlockSize=eDefaultXStringBlockSize, size_type theXNumberBlockSize=eDefaultXNumberBlockSize, size_type theXNodeSetBlockSize=eDefaultXNodeSetBlockSize, size_type theXNodeSetNodeProxyBlockSize=eDefaultXNodeSetNodeProxyBlockSize)
XPathExecutionContext::GetCachedString GetCachedString
XObjectFactory(MemoryManager &theManager)
XPathExecutionContext::BorrowReturnMutableNodeRefList BorrowReturnMutableNodeRefList
Class to hold XObjectPtr return types.
Class to hold XPath return types.