#include <QoreStringNode.h>
Public Member Functions | |
DLLLOCAL | ~QoreStringNodeValueHelper () |
destroys the object and dereferences the QoreStringNode if it is a temporary pointer | |
DLLLOCAL const QoreStringNode * | operator-> () |
returns the object being managed | |
DLLLOCAL const QoreStringNode * | operator* () |
returns the object being managed | |
DLLLOCAL QoreStringNode * | getReferencedValue () |
returns a referenced value - the caller will own the reference |
the QoreStringNode value returned by this function is managed safely in an exception-safe way with this class
QoreStringNodeValueHelper str(n); printf("str='%s'\n", str->getBuffer()); return str.getReferencedValue();
DLLLOCAL QoreStringNode* QoreStringNodeValueHelper::getReferencedValue | ( | ) | [inline] |
returns a referenced value - the caller will own the reference
The string is referenced if necessary (if it was a temporary value)
References AbstractQoreNode::ref().
DLLLOCAL const QoreStringNode* QoreStringNodeValueHelper::operator* | ( | ) | [inline] |
returns the object being managed
DLLLOCAL const QoreStringNode* QoreStringNodeValueHelper::operator-> | ( | ) | [inline] |
returns the object being managed