Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TSelectorScalar.h
Go to the documentation of this file.
1// @(#)root/tree:$Id$
2// Author: Maarten Ballintijn 13/02/2005
3
4/*************************************************************************
5 * Copyright (C) 1995-2005, 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_TSelectorScalar
13#define ROOT_TSelectorScalar
14
15
16//////////////////////////////////////////////////////////////////////////
17// //
18// TSelectorScalar //
19// //
20// Named scalar type, based on Long64_t, streamable, storable and //
21// mergeable. //
22// //
23//////////////////////////////////////////////////////////////////////////
24
25
26#include "TParameter.h"
27
28#include "Rtypes.h"
29
30
31class TCollection;
32
33class TSelectorScalar : public TParameter<Long64_t> {
34
35public:
36 TSelectorScalar(const char *name = "", Long64_t val = 0)
37 : TParameter<Long64_t>(name, val) { }
38 ~TSelectorScalar() override { }
39
40 void Inc(Long_t n = 1);
41 Int_t Merge(TCollection *list) override;
42
43 ClassDefOverride(TSelectorScalar,1) // Mergeable scalar
44};
45
46
47#endif
int Int_t
Signed integer 4 bytes (int)
Definition RtypesCore.h:59
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
Definition RtypesCore.h:68
long long Long64_t
Portable signed long integer 8 bytes.
Definition RtypesCore.h:83
#define ClassDefOverride(name, id)
Definition Rtypes.h:348
char name[80]
Definition TGX11.cxx:110
Collection abstract base class.
Definition TCollection.h:65
Named parameter, streamable and storable.
Definition TParameter.h:35
Named scalar type, based on Long64_t, streamable, storable and mergeable.
~TSelectorScalar() override
TSelectorScalar(const char *name="", Long64_t val=0)
Int_t Merge(TCollection *list) override
Merge scalars with scalars in the list.
void Inc(Long_t n=1)
Increment scalar value by n.
const Int_t n
Definition legend1.C:16