Qore Programming Language 1.14.2
Loading...
Searching...
No Matches
SimpleRefHolder< T > Class Template Reference

manages a reference count of a pointer to a class that takes a simple "deref()" call with no arguments More...

#include <ReferenceHolder.h>

Collaboration diagram for SimpleRefHolder< T >:
[legend]

Public Member Methods

DLLLOCAL SimpleRefHolder (SimpleRefHolder &&old)
 move constructor More...
 
DLLLOCAL T * swap (T *val)
 swaps the current value for a new one More...
 

Detailed Description

template<typename T = class SimpleQoreNode>
class SimpleRefHolder< T >

manages a reference count of a pointer to a class that takes a simple "deref()" call with no arguments

// QoreString::concatUnicode() can raise a Qore-language exception if the code is invalid
str->concatUnicode(code, xsink);
return *xsink ? str.release() : 0;
DLLEXPORT const QoreEncoding * QCS_UTF8
UTF-8 multi-byte encoding (only UTF-8 and UTF-16 are multi-byte encodings)
Definition: QoreEncoding.h:247
Qore's string value type, reference counted, dynamically-allocated only.
Definition: QoreStringNode.h:50
manages a reference count of a pointer to a class that takes a simple "deref()" call with no argument...
Definition: ReferenceHolder.h:127

Constructor & Destructor Documentation

◆ SimpleRefHolder()

template<typename T = class SimpleQoreNode>
DLLLOCAL SimpleRefHolder< T >::SimpleRefHolder ( SimpleRefHolder< T > &&  old)
inline

move constructor

Since
Qore 0.9

Member Function Documentation

◆ swap()

template<typename T = class SimpleQoreNode>
DLLLOCAL T * SimpleRefHolder< T >::swap ( T *  val)
inline

swaps the current value for a new one

Since
Qore 1.14

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