This class handles the creation of XObjects and manages their lifetime. More...
#include <XObjectFactoryDefault.hpp>
Inherits XObjectFactory.
This class handles the creation of XObjects and manages their lifetime.
Definition at line 58 of file XObjectFactoryDefault.hpp.
Definition at line 75 of file XObjectFactoryDefault.hpp.
Definition at line 162 of file XObjectFactoryDefault.hpp.
Definition at line 161 of file XObjectFactoryDefault.hpp.
Definition at line 160 of file XObjectFactoryDefault.hpp.
Definition at line 163 of file XObjectFactoryDefault.hpp.
anonymous enum |
eDefaultXStringBlockSize | |
eDefaultXNumberBlockSize | |
eDefaultXNodeSetBlockSize | |
eDefaultXNodeSetNodeProxyBlockSize | |
eXNumberCacheMax | |
eXNodeSetCacheMax | |
eXStringCacheMax | |
eXResultTreeFragCacheMax |
Definition at line 63 of file XObjectFactoryDefault.hpp.
XObjectFactoryDefault::XObjectFactoryDefault | ( | MemoryManager & | theManager = XalanMemMgrs::getDefaultXercesMemMgr() , |
|
size_type | theXStringBlockSize = eDefaultXStringBlockSize , |
|||
size_type | theXNumberBlockSize = eDefaultXNumberBlockSize , |
|||
size_type | theXNodeSetBlockSize = eDefaultXNodeSetBlockSize , |
|||
size_type | theXNodeSetNodeProxyBlockSize = eDefaultXNodeSetNodeProxyBlockSize | |||
) | [explicit] |
Construct a factory for creating XObjects.
theXStringBlockSize | allocation block size | |
theXNumberBlockSize | allocation block size | |
theXNodeSetBlockSize | allocation block size |
virtual XObjectFactoryDefault::~XObjectFactoryDefault | ( | ) | [virtual] |
static XObjectFactoryDefault* XObjectFactoryDefault::create | ( | MemoryManager & | theManager, | |
size_type | theXStringBlockSize = eDefaultXStringBlockSize , |
|||
size_type | theXNumberBlockSize = eDefaultXNumberBlockSize , |
|||
size_type | theXNodeSetBlockSize = eDefaultXNodeSetBlockSize , |
|||
size_type | theXNodeSetNodeProxyBlockSize = eDefaultXNodeSetNodeProxyBlockSize | |||
) | [static] |
virtual const XObjectPtr XObjectFactoryDefault::createBoolean | ( | bool | theValue | ) | [virtual] |
Create a boolean XObject from a boolean value.
theValue | value used to create object |
Implements XObjectFactory.
virtual const XObjectPtr XObjectFactoryDefault::createNodeSet | ( | BorrowReturnMutableNodeRefList & | theValue | ) | [virtual] |
Create a node set XObject from a node list.
theValue | value used to create object. theValue will be owned by the new XObject. |
Implements XObjectFactory.
virtual const XObjectPtr XObjectFactoryDefault::createNodeSet | ( | XalanNode * | theValue | ) | [virtual] |
Create a node set XObject from a node.
theNOde | value used to create object. |
Implements XObjectFactory.
virtual const XObjectPtr XObjectFactoryDefault::createNumber | ( | const XToken & | theValue | ) | [virtual] |
Create a numeric XObject from an XToken.
The XToken instance must be inexistence for the lifetime of the object.
theValue | value used to create object |
Implements XObjectFactory.
virtual const XObjectPtr XObjectFactoryDefault::createNumber | ( | double | theValue | ) | [virtual] |
Create a numeric XObject from a number.
theValue | value used to create object |
Implements XObjectFactory.
virtual const XObjectPtr XObjectFactoryDefault::createString | ( | const XalanDOMString & | theValue | ) | [virtual] |
Create a string XObject from a string.
theValue | value used to create object |
Implements XObjectFactory.
virtual const XObjectPtr XObjectFactoryDefault::createString | ( | const XalanDOMChar * | theValue | ) | [virtual] |
Create a string XObject from a null-terminated array of characters.
theValue | a pointer to the array |
Implements XObjectFactory.
virtual const XObjectPtr XObjectFactoryDefault::createString | ( | const XalanDOMChar * | theValue, | |
XalanSize_t | theLength | |||
) | [virtual] |
Create a string XObject from an array of characters.
theValue | a pointer to the array theLength the length of the array |
Implements XObjectFactory.
virtual const XObjectPtr XObjectFactoryDefault::createString | ( | const XToken & | theValue | ) | [virtual] |
Create a string XObject from an XToken.
The XToken instance must be inexistence for the lifetime of the object.
theValue | value used to create object |
Implements XObjectFactory.
virtual const XObjectPtr XObjectFactoryDefault::createString | ( | GetCachedString & | theValue | ) | [virtual] |
Create a string XObject from a cached XalanDOMString,.
theValue | value used to create object |
Implements XObjectFactory.
virtual const XObjectPtr XObjectFactoryDefault::createStringAdapter | ( | const XObjectPtr & | theValue, | |
XPathExecutionContext & | theExecutionContext | |||
) | [virtual] |
Create a string XObject that will adapt another XObject to behave like a string.
The XObject holds a reference to the other XObject.
theValue | value used to create object theExecutionContext The current execution context |
Implements XObjectFactory.
virtual const XObjectPtr XObjectFactoryDefault::createStringReference | ( | const XalanDOMString & | theValue | ) | [virtual] |
Create a string XObject from a string.
The XObject will hold a reference to the supplied string, so the string must be in scope for the lifetime of the instance
theValue | value used to create object |
Implements XObjectFactory.
virtual const XObjectPtr XObjectFactoryDefault::createUnknown | ( | const XalanDOMString & | theValue | ) | [virtual] |
Create an "unknown" XObject from a string.
theValue | value used to create object |
Implements XObjectFactory.
virtual bool XObjectFactoryDefault::doReturnObject | ( | XObject * | theXObject, | |
bool | fInReset = false | |||
) | [protected, virtual] |
Return an XObject to the factory.
Implements XObjectFactory.
MemoryManager& XObjectFactoryDefault::getMemoryManager | ( | ) | [inline] |
Reimplemented from XObjectFactory.
Definition at line 105 of file XObjectFactoryDefault.hpp.
virtual void XObjectFactoryDefault::holdReference | ( | XObjectPtr | theValue | ) | [virtual] |
Hold a reference to an XObject instance until the factory is reset.
This is needed in a very few cases when the object lifetime needs to extend after the execution of an XPath expression.
theValue | The XObjectPtr instance. |
Implements XObjectFactory.
virtual void XObjectFactoryDefault::reset | ( | ) | [virtual] |
Reset the instance.
This invalidates all existing instances created with this XObjectFactory.
Implements XObjectFactory.
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|