Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


Public Member Functions

XNumber Class Reference

#include <XNumber.hpp>

Inherits XNumberBase.

Collaboration diagram for XNumber:
Collaboration graph
[legend]

List of all members.

Public Member Functions


Detailed Description

Definition at line 41 of file XNumber.hpp.


Constructor & Destructor Documentation

XNumber::XNumber ( double  val,
MemoryManager &  theMemoryManager 
)

Create an XNumber from a number.

Parameters:
val numeric value to use
XNumber::XNumber ( const XNumber source,
MemoryManager &  theMemoryManager 
)
virtual XNumber::~XNumber (  )  [virtual]

Member Function Documentation

virtual double XNumber::num ( XPathExecutionContext executionContext  )  const [virtual]

Cast result object to a number.

Parameters:
executionContext The current XPathExecutionContext
Returns:
numeric value

Implements XNumberBase.

virtual double XNumber::num (  )  const [virtual]

Cast result object to a number.

This function does not have access to the current XPathExecutionContext, so the result may contain data from whitespace text nodes that might have been stripped otherwise.

Returns:
numeric value

Reimplemented from XObject.

void XNumber::set ( double  theValue  ) 

Change the value of an XNumber.

Parameters:
theValue The new value.
virtual const XalanDOMString& XNumber::str (  )  const [virtual]

Cast result object to a string.

This function does not have access to the current XPathExecutionContext, so the result may contain data from whitespace text nodes that might have been stripped otherwise.

Parameters:
executionContext The current XPathExecutionContext
Returns:
string value

Implements XNumberBase.

virtual void XNumber::str ( XPathExecutionContext executionContext,
XalanDOMString theBuffer 
) const [virtual]

Append the string value directly a string.

Parameters:
executionContext The current XPathExecutionContext
theBuffer The buffer for the data

Implements XNumberBase.

virtual void XNumber::str ( FormatterListener formatterListener,
MemberFunctionPtr  function 
) const [virtual]

Send the string value to a FormatterListener instance.

This function does not have access to the current XPathExecutionContext, so the result may contain data from whitespace text nodes that might have been stripped otherwise.

Parameters:
formatterListener The FormatterListener instance
function A pointer to the member function of FormatterListener to call

Implements XNumberBase.

virtual void XNumber::str ( XPathExecutionContext executionContext,
FormatterListener formatterListener,
MemberFunctionPtr  function 
) const [virtual]

Send the string value to a FormatterListener instance.

Parameters:
executionContext The current XPathExecutionContext
formatterListener The FormatterListener instance
function A pointer to the member function of FormatterListener to call

Implements XNumberBase.

virtual void XNumber::str ( XalanDOMString theBuffer  )  const [virtual]

Append the string value directly a string.

This function does not have access to the current XPathExecutionContext, so the result may contain data from whitespace text nodes that might have been stripped otherwise.

Parameters:
theBuffer The buffer for the data

Implements XNumberBase.

virtual const XalanDOMString& XNumber::str ( XPathExecutionContext executionContext  )  const [virtual]

Cast result object to a string.

Parameters:
executionContext The current XPathExecutionContext
Returns:
string value

Implements XNumberBase.

virtual double XNumber::stringLength ( XPathExecutionContext executionContext  )  const [virtual]

Get the length of the string value of the instance.

Returns:
The length of the string value

Implements XNumberBase.


The documentation for this class was generated from the following file:

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.

Apache Logo