ROOT
Version master
v6.34
v6.32
Reference Guide
▼
ROOT
ROOT Reference Documentation
Tutorials
►
Functional Parts
►
Namespaces
►
All Classes
▼
Files
▼
File List
►
bindings
▼
core
▼
base
►
doc
▼
inc
►
ROOT
►
Bswapcpy.h
►
Buttons.h
►
Bytes.h
►
Byteswap.h
►
GLConstants.h
Gtypes.h
Htypes.h
►
KeySymbols.h
►
Match.h
►
MessageTypes.h
RConfig.h
Riostream.h
Rpair.h
►
RQ_OBJECT.h
►
RStipples.h
►
Rtypes.h
►
RtypesImp.h
Strlen.h
►
TApplication.h
TAtt3D.h
TAttAxis.h
TAttBBox.h
TAttBBox2D.h
►
TAttFill.h
►
TAttLine.h
►
TAttMarker.h
TAttPad.h
►
TAttText.h
TBase64.h
►
TBenchmark.h
►
TBuffer.h
►
TBuffer3D.h
►
TBuffer3DTypes.h
►
TColor.h
►
TColorGradient.h
►
TDatime.h
►
TDirectory.h
►
TEnv.h
►
TException.h
TExec.h
TFileCollection.h
►
TFileInfo.h
TFolder.h
TInetAddress.h
TMacro.h
►
TMathBase.h
►
TMD5.h
TMemberInspector.h
TMessageHandler.h
TNamed.h
►
TNotifyLink.h
►
TObject.h
TObjString.h
TParameter.h
►
TPluginManager.h
►
TPoint.h
►
TPRegexp.h
►
TProcessID.h
TProcessUUID.h
►
TQClass.h
►
TQCommand.h
►
TQConnection.h
►
TQObject.h
►
TRedirectOutputGuard.h
TRef.h
TRefCnt.h
TRegexp.h
TRemoteObject.h
►
TROOT.h
►
TRootIOCtor.h
TStopwatch.h
►
TStorage.h
►
TString.h
►
TStringLong.h
►
TStyle.h
►
TSysEvtHandler.h
►
TSystem.h
TSystemDirectory.h
TSystemFile.h
TTask.h
►
TThreadSlots.h
►
TTime.h
TTimer.h
►
TTimeStamp.h
►
TUri.h
TUrl.h
►
TUUID.h
►
TVersionCheck.h
►
TVirtualAuth.h
TVirtualFFT.h
►
TVirtualGL.h
TVirtualMapFile.h
►
TVirtualMonitoring.h
►
TVirtualMutex.h
►
TVirtualPad.h
TVirtualPadEditor.h
TVirtualPadPainter.h
►
TVirtualPerfStats.h
►
TVirtualPS.h
►
TVirtualQConnection.h
►
TVirtualRWMutex.h
►
TVirtualTableInterface.h
TVirtualViewer3D.h
►
TVirtualX.h
►
Varargs.h
►
src
►
v7
►
clingutils
►
cont
►
dictgen
►
foundation
►
gui
►
imt
►
macosx
►
meta
►
metacling
►
multiproc
►
rint
►
testsupport
►
thread
►
unix
►
winnt
►
zip
►
documentation
►
geom
►
graf2d
►
graf3d
►
gui
►
hist
►
io
►
main
►
master
►
math
►
montecarlo
►
net
►
proof
►
roofit
►
sql
►
tmva
►
tree
►
tutorials
►
File Members
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
TRefCnt.h
Go to the documentation of this file.
1
// @(#)root/base:$Id$
2
// Author: Fons Rademakers 04/08/95
3
4
/*************************************************************************
5
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
*************************************************************************/
11
12
#ifndef ROOT_TRefCnt
13
#define ROOT_TRefCnt
14
15
16
//////////////////////////////////////////////////////////////////////////
17
// //
18
// TRefCnt //
19
// //
20
// Base class for reference counted objects. //
21
// //
22
//////////////////////////////////////////////////////////////////////////
23
24
#include "
RtypesCore.h
"
25
26
27
class
TRefCnt
{
28
29
protected
:
30
UInt_t
fRefs
;
// (1 less than) number of references
31
32
public
:
33
enum
EReferenceFlag
{
kStaticInit
};
34
35
TRefCnt
(
Int_t
initRef
= 0) :
fRefs
((
UInt_t
)
initRef
-1) { }
36
TRefCnt
(
EReferenceFlag
);
37
virtual
~TRefCnt
() { }
38
UInt_t
References
()
const
{
return
fRefs
+1; }
39
void
SetRefCount
(
UInt_t
r
) {
fRefs
=
r
-1; }
40
void
AddReference
() {
fRefs
++; }
41
UInt_t
RemoveReference
() {
return
fRefs
--; }
42
};
43
44
#endif
RtypesCore.h
r
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Definition
TGWin32VirtualXProxy.cxx:168
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
TRefCnt
Definitions for TRefCnt, base class for reference counted objects.
Definition
TRefCnt.h:27
TRefCnt::TRefCnt
TRefCnt(Int_t initRef=0)
Definition
TRefCnt.h:35
TRefCnt::AddReference
void AddReference()
Definition
TRefCnt.h:40
TRefCnt::fRefs
UInt_t fRefs
Definition
TRefCnt.h:30
TRefCnt::~TRefCnt
virtual ~TRefCnt()
Definition
TRefCnt.h:37
TRefCnt::SetRefCount
void SetRefCount(UInt_t r)
Definition
TRefCnt.h:39
TRefCnt::EReferenceFlag
EReferenceFlag
Definition
TRefCnt.h:33
TRefCnt::kStaticInit
@ kStaticInit
Definition
TRefCnt.h:33
TRefCnt::RemoveReference
UInt_t RemoveReference()
Definition
TRefCnt.h:41
TRefCnt::References
UInt_t References() const
Definition
TRefCnt.h:38
int
unsigned int
core
base
inc
TRefCnt.h
ROOT master - Reference Guide Generated on Tue Mar 25 2025 04:28:07 (GVA Time) using Doxygen 1.10.0