My Project
|
Weak reference wrapper for TemplateStructIntf that provides access to the wrapped struct without holding a reference. More...
Public Member Functions | |
TemplateStructWeakRef (TemplateStructIntf *ref) | |
virtual TemplateVariant | get (const char *name) const |
virtual int | addRef () |
virtual int | release () |
Public Member Functions inherited from TemplateStructIntf | |
virtual | ~TemplateStructIntf () |
Private Attributes | |
TemplateStructIntf * | m_ref |
int | m_refCount |
Weak reference wrapper for TemplateStructIntf that provides access to the wrapped struct without holding a reference.
Definition at line 2353 of file template.cpp.
|
inline |
Definition at line 2356 of file template.cpp.
|
inlinevirtual |
Increase object's reference count
Implements TemplateStructIntf.
Definition at line 2358 of file template.cpp.
References m_refCount.
|
inlinevirtual |
Gets the value for a field name.
[in] | name | The name of the field. |
Implements TemplateStructIntf.
Definition at line 2357 of file template.cpp.
References TemplateStructIntf::get(), and m_ref.
|
inlinevirtual |
Decreases object's referenc count, destroy object if 0
Implements TemplateStructIntf.
Definition at line 2359 of file template.cpp.
References m_refCount.
|
private |
Definition at line 2361 of file template.cpp.
Referenced by get().
|
private |
Definition at line 2362 of file template.cpp.