RioEngine
0.1
My first attempt to create a 3D WYSIWYG Game Engine
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
ik_IRefCounted.h
Go to the documentation of this file.
1
// Copyright (C) 2002-2014 Nikolaus Gebhardt
2
// This file is part of the "irrKlang" library.
3
// For conditions of distribution and use, see copyright notice in irrKlang.h
4
5
#ifndef __I_IRRKLANG_IREFERENCE_COUNTED_H_INCLUDED__
6
#define __I_IRRKLANG_IREFERENCE_COUNTED_H_INCLUDED__
7
8
#include "
ik_irrKlangTypes.h
"
9
10
namespace
irrklang
11
{
13
41
class
IRefCounted
42
{
43
public
:
44
46
IRefCounted
()
47
: ReferenceCounter(1)
48
{
49
}
50
52
virtual
~IRefCounted
()
53
{
54
}
55
80
void
grab
() { ++ReferenceCounter; }
81
98
bool
drop
()
99
{
100
--ReferenceCounter;
101
102
if
(!ReferenceCounter)
103
{
104
delete
this
;
105
return
true
;
106
}
107
108
return
false
;
109
}
110
111
private
:
112
113
ik_s32
ReferenceCounter;
114
};
115
116
}
// end namespace irr
117
118
#endif
119
irrklang::IRefCounted::grab
void grab()
Definition:
ik_IRefCounted.h:80
irrklang::IRefCounted
Base class of most objects of the irrKlang.
Definition:
ik_IRefCounted.h:41
ik_irrKlangTypes.h
irrklang::ik_s32
signed int ik_s32
32 bit signed variable.
Definition:
ik_irrKlangTypes.h:42
irrklang
Everything in the irrKlang Sound Engine can be found in this namespace.
Definition:
ik_ESoundEngineOptions.h:8
irrklang::IRefCounted::drop
bool drop()
Definition:
ik_IRefCounted.h:98
irrklang::IRefCounted::IRefCounted
IRefCounted()
Constructor.
Definition:
ik_IRefCounted.h:46
irrklang::IRefCounted::~IRefCounted
virtual ~IRefCounted()
Destructor.
Definition:
ik_IRefCounted.h:52
rioengine
libs
include
irrklang
ik_IRefCounted.h
Generated on Mon Jan 12 2015 22:23:59 for RioEngine by
1.8.9.1