18 #if !defined(XOBJECTFACTORYDEFAULT_HEADER_GUARD_1357924680) 19 #define XOBJECTFACTORYDEFAULT_HEADER_GUARD_1357924680 51 XALAN_CPP_NAMESPACE_BEGIN
65 eDefaultXStringBlockSize = 10,
66 eDefaultXNumberBlockSize = 10,
67 eDefaultXNodeSetBlockSize = 10,
68 eDefaultXNodeSetNodeProxyBlockSize = 5,
69 eXNumberCacheMax = 40,
70 eXNodeSetCacheMax = 40,
71 eXStringCacheMax = 40,
72 eXResultTreeFragCacheMax = 40
87 size_type theXStringBlockSize = eDefaultXStringBlockSize,
88 size_type theXNumberBlockSize = eDefaultXNumberBlockSize,
89 size_type theXNodeSetBlockSize = eDefaultXNodeSetBlockSize,
90 size_type theXNodeSetNodeProxyBlockSize = eDefaultXNodeSetNodeProxyBlockSize);
94 MemoryManager& theManager,
95 size_type theXStringBlockSize = eDefaultXStringBlockSize,
96 size_type theXNumberBlockSize = eDefaultXNumberBlockSize,
97 size_type theXNodeSetBlockSize = eDefaultXNodeSetBlockSize,
98 size_type theXNodeSetNodeProxyBlockSize = eDefaultXNodeSetNodeProxyBlockSize);
107 return m_xobjects.getMemoryManager();
137 const XalanDOMChar* theValue,
138 XalanSize_t theLength);
170 bool fInReset =
false);
206 XObjectCollectionType m_xobjects;
208 XNumberCacheType m_xnumberCache;
210 XNodeSetCacheType m_xnodesetCache;
212 XStringCacheType m_xstringCache;
223 XALAN_CPP_NAMESPACE_END
227 #endif // XOBJECTFACTORYDEFAULT_HEADER_GUARD_1357924680
MemoryManager & getMemoryManager()
XalanVector< XNumber * > XNumberCacheType
virtual const XObjectPtr createNodeSet(BorrowReturnMutableNodeRefList &theValue)=0
Create a node set XObject from a node list.
ArenaAllocatorType::size_type size_type
Class to hold XObjectPtr return types.
#define XALAN_DEFAULT_MEMMGR
virtual void reset()=0
Reset the instance.
virtual const XObjectPtr createStringReference(const XalanDOMString &theValue)=0
Create a string XObject from a string.
virtual void holdReference(XObjectPtr theValue)=0
Hold a reference to an XObject instance until the factory is reset.
XalanVector< XObject * > XObjectCollectionType
XalanVector< XString * > XStringCacheType
XalanVector< XNodeSet * > XNodeSetCacheType
This class handles the creation of XObjects and manages their lifetime.
Class to hold XPath return types.
XNodeSetAllocator::size_type size_type
virtual const XObjectPtr createString(const XalanDOMString &theValue)=0
Create a string XObject from a string.
virtual bool doReturnObject(XObject *theXObject, bool fInReset=false)=0
Return an XObject to the factory.
virtual const XObjectPtr createUnknown(const XalanDOMString &theValue)=0
Create an "unknown" XObject from a string.
bool operator==(const ElemAttributeSet &theLHS, const ElemAttributeSet &theRHS)
virtual const XObjectPtr createStringAdapter(const XObjectPtr &theValue, XPathExecutionContext &theExecutionContext)=0
Create a string XObject that will adapt another XObject to behave like a string.
virtual const XObjectPtr createNumber(double theValue)=0
Create a numeric XObject from a number.
virtual const XObjectPtr createBoolean(bool theValue)=0
Create a boolean XObject from a boolean value.
#define XALAN_XPATH_EXPORT
This class handles the creation of XObjects and manages their lifetime.