wavelength
1.0.0
Loading...
Searching...
No Matches
attachment.h
Go to the documentation of this file.
1
#pragma once
2
16
class
Attachment
{
17
public
:
23
Attachment
() : mRefs(0) {
24
}
25
32
virtual
~Attachment
();
33
40
void
AddRef
();
41
48
void
Release
();
49
58
static
void
ReleaseIfSet
(
Attachment
*pAttachment) {
59
if
(pAttachment !=
nullptr
) {
60
pAttachment->
Release
();
61
}
62
}
63
64
private
:
65
int
mRefs;
66
};
Attachment::Release
void Release()
Give back one reference and delete the object once the last one is gone.
Attachment::~Attachment
virtual ~Attachment()
Release the object.
Attachment::AddRef
void AddRef()
Take one reference.
Attachment::ReleaseIfSet
static void ReleaseIfSet(Attachment *pAttachment)
Give back one reference to an object that may be null.
Definition
attachment.h:58
Attachment::Attachment
Attachment()
Construct an object with no reference.
Definition
attachment.h:23
src
app
attachment.h
Generated by
1.15.0