 |
Xalan-C++ API Reference
1.12.0
|
Go to the documentation of this file.
18 #if !defined(XOBJECTFACTORYDEFAULT_HEADER_GUARD_1357924680)
19 #define XOBJECTFACTORYDEFAULT_HEADER_GUARD_1357924680
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);
227 #endif // XOBJECTFACTORYDEFAULT_HEADER_GUARD_1357924680
XalanVector< XString * > XStringCacheType
ArenaAllocatorType::size_type size_type
virtual ~XObjectFactoryDefault()
virtual const XObjectPtr createStringReference(const XalanDOMString &theValue)
Create a string XObject from a string.
virtual const XObjectPtr createStringAdapter(const XObjectPtr &theValue, XPathExecutionContext &theExecutionContext)
Create a string XObject that will adapt another XObject to behave like a string.
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
XNodeSetAllocator::size_type size_type
XalanVector< XNumber * > XNumberCacheType
This class handles the creation of XObjects and manages their lifetime.
#define XALAN_DEFAULT_MEMMGR
virtual const XObjectPtr createString(const XToken &theValue)
Create a string XObject from an XToken.
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
virtual const XObjectPtr createString(const XalanDOMString &theValue)
Create a string XObject from a string.
XalanVector< XObject * > XObjectCollectionType
virtual const XObjectPtr createBoolean(bool theValue)
Create a boolean XObject from a boolean value.
#define XALAN_XPATH_EXPORT
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.
Class to hold XObjectPtr return types.
virtual const XObjectPtr createUnknown(const XalanDOMString &theValue)
Create an "unknown" XObject from a string.
virtual const XObjectPtr createNumber(const XToken &theValue)
Create a numeric XObject from an XToken.
virtual const XObjectPtr createString(const XalanDOMChar *theValue, XalanSize_t theLength)
Create a string XObject from an array of characters.
virtual const XObjectPtr createString(const XalanDOMChar *theValue)
Create a string XObject from a null-terminated array of characters.
virtual void reset()
Reset the instance.
Class to hold XPath return types.
virtual const XObjectPtr createString(GetCachedString &theValue)
Create a string XObject from a cached XalanDOMString,.
virtual const XObjectPtr createNumber(double theValue)
Create a numeric XObject from a number.
virtual const XObjectPtr createNodeSet(XalanNode *theValue)
Create a node set XObject from a node.
virtual void holdReference(XObjectPtr theValue)
Hold a reference to an XObject instance until the factory is reset.
virtual bool doReturnObject(XObject *theXObject, bool fInReset=false)
Return an XObject to the factory.
MemoryManager & getMemoryManager()
static XObjectFactoryDefault * create(MemoryManager &theManager, size_type theXStringBlockSize=eDefaultXStringBlockSize, size_type theXNumberBlockSize=eDefaultXNumberBlockSize, size_type theXNodeSetBlockSize=eDefaultXNodeSetBlockSize, size_type theXNodeSetNodeProxyBlockSize=eDefaultXNodeSetNodeProxyBlockSize)
virtual const XObjectPtr createNodeSet(BorrowReturnMutableNodeRefList &theValue)
Create a node set XObject from a node list.
This class handles the creation of XObjects and manages their lifetime.
XalanVector< XNodeSet * > XNodeSetCacheType