AbstractCallReferenceNode Class Reference

base class for call references, reference-counted, dynamically allocated only More...

#include <CallReferenceNode.h>

Inheritance diagram for AbstractCallReferenceNode:
AbstractQoreNode QoreReferenceCounter ResolvedCallReferenceNode

List of all members.

Public Member Functions

virtual DLLLOCAL int getAsString (QoreString &str, int foff, class ExceptionSink *xsink) const
 concatenate the verbose string representation of the value to an existing QoreString
virtual DLLLOCAL QoreStringgetAsString (bool &del, int foff, class ExceptionSink *xsink) const
 returns a QoreString giving the verbose string representation of the value
virtual DLLLOCAL const char * getTypeName () const
 returns the type name as a c string

Protected Member Functions

virtual DLLLOCAL AbstractQoreNodeevalImpl (ExceptionSink *xsink) const
 this function should never be called for function references; this function should never be called directly
virtual DLLLOCAL AbstractQoreNodeevalImpl (bool &needs_deref, ExceptionSink *xsink) const
 this function should never be called for function references; this function should never be called directly
virtual DLLLOCAL int64 bigIntEvalImpl (ExceptionSink *xsink) const
 this function should never be called for function references; this function should never be called directly
virtual DLLLOCAL int integerEvalImpl (ExceptionSink *xsink) const
 this function should never be called for function references; this function should never be called directly
virtual DLLLOCAL bool boolEvalImpl (ExceptionSink *xsink) const
 this function should never be called for function references; this function should never be called directly
virtual DLLLOCAL double floatEvalImpl (ExceptionSink *xsink) const
 this function should never be called for function references; this function should never be called directly
DLLLOCAL AbstractCallReferenceNode (bool n_needs_eval, bool n_there_can_be_only_one, qore_type_t n_type=NT_FUNCREF)
 protected constructor for subclasses that are not reference-counted

Detailed Description

base class for call references, reference-counted, dynamically allocated only

cannot be a ParseNode or SimpleQoreNode because we require deref(xsink)


Member Function Documentation

virtual DLLLOCAL int64 AbstractCallReferenceNode::bigIntEvalImpl ( ExceptionSink xsink  )  const [protected, virtual]

this function should never be called for function references; this function should never be called directly

in debug mode this function calls assert(false)

Reimplemented from AbstractQoreNode.

virtual DLLLOCAL bool AbstractCallReferenceNode::boolEvalImpl ( ExceptionSink xsink  )  const [protected, virtual]

this function should never be called for function references; this function should never be called directly

in debug mode this function calls assert(false)

Reimplemented from AbstractQoreNode.

virtual DLLLOCAL AbstractQoreNode* AbstractCallReferenceNode::evalImpl ( bool &  needs_deref,
ExceptionSink xsink 
) const [protected, virtual]

this function should never be called for function references; this function should never be called directly

in debug mode this function calls assert(false)

Implements AbstractQoreNode.

virtual DLLLOCAL AbstractQoreNode* AbstractCallReferenceNode::evalImpl ( ExceptionSink xsink  )  const [protected, virtual]

this function should never be called for function references; this function should never be called directly

in debug mode this function calls assert(false)

Implements AbstractQoreNode.

virtual DLLLOCAL double AbstractCallReferenceNode::floatEvalImpl ( ExceptionSink xsink  )  const [protected, virtual]

this function should never be called for function references; this function should never be called directly

in debug mode this function calls assert(false)

Reimplemented from AbstractQoreNode.

virtual DLLLOCAL QoreString* AbstractCallReferenceNode::getAsString ( bool &  del,
int  foff,
class ExceptionSink xsink 
) const [virtual]

returns a QoreString giving the verbose string representation of the value

used for n and N printf formatting

Parameters:
del if this is true when the function returns, then the returned QoreString pointer should be deleted, if false, then it must not be
foff for multi-line formatting offset, -1 = no line breaks
xsink not used by this implementation of the function NOTE: Use the QoreNodeAsStringHelper class (defined in QoreStringNode.h) instead of using this function directly
See also:
QoreNodeAsStringHelper

Implements AbstractQoreNode.

virtual DLLLOCAL int AbstractCallReferenceNode::getAsString ( QoreString str,
int  foff,
class ExceptionSink xsink 
) const [virtual]

concatenate the verbose string representation of the value to an existing QoreString

used for n and N printf formatting

Parameters:
str the string representation of the type will be concatenated to this QoreString reference
foff for multi-line formatting offset, -1 = no line breaks
xsink not used by this implementation of the function
Returns:
-1 for exception raised, 0 = OK

Implements AbstractQoreNode.

virtual DLLLOCAL int AbstractCallReferenceNode::integerEvalImpl ( ExceptionSink xsink  )  const [protected, virtual]

this function should never be called for function references; this function should never be called directly

in debug mode this function calls assert(false)

Reimplemented from AbstractQoreNode.


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

Generated on 14 Jun 2010 for Qore Programming Language by  doxygen 1.6.1