ROOT
Version master
v6.36
v6.34
v6.32
v6.30
v6.28
v6.26
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
Reference Guide
►
ROOT
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
RFieldToken.hxx
Go to the documentation of this file.
1
/// \file ROOT/RFieldToken.hxx
2
/// \ingroup NTuple
3
/// \author Jonas Hahnfeld <jonas.hahnfeld@cern.ch>
4
/// \date 2025-03-19
5
6
/*************************************************************************
7
* Copyright (C) 1995-2025, Rene Brun and Fons Rademakers. *
8
* All rights reserved. *
9
* *
10
* For the licensing terms see $ROOTSYS/LICENSE. *
11
* For the list of contributors see $ROOTSYS/README/CREDITS. *
12
*************************************************************************/
13
14
#ifndef ROOT_RFieldToken
15
#define ROOT_RFieldToken
16
17
#include <cstddef>
// for std::size_t
18
#include <cstdint>
// for std::uint64_t
19
20
namespace
ROOT
{
21
22
class
REntry;
23
class
RNTupleModel;
24
25
namespace
Experimental {
26
namespace
Detail {
27
class
RRawPtrWriteEntry;
28
}
// namespace Detail
29
}
// namespace Experimental
30
31
// clang-format off
32
/**
33
\class ROOT::RFieldToken
34
\ingroup NTuple
35
\brief A field token identifies a (sub)field in an entry
36
37
It can be used for fast indexing in REntry's methods, e.g. REntry::BindValue(). The field token can also be created by the model.
38
*/
39
// clang-format on
40
class
RFieldToken
{
41
friend
class
REntry
;
42
friend
class
RNTupleModel
;
43
friend
class
Experimental::Detail::RRawPtrWriteEntry
;
44
45
std::size_t
fIndex
= 0;
///< The index of the field (top-level or registered subfield)
46
std::uint64_t
fSchemaId
= std::uint64_t(-1);
///< Safety check to prevent tokens from other models being used
47
RFieldToken
(std::size_t
index
, std::uint64_t
schemaId
) :
fIndex
(
index
),
fSchemaId
(
schemaId
) {}
48
49
public
:
50
RFieldToken
() =
default
;
// The default constructed token cannot be used by any entry
51
};
52
53
}
// namespace ROOT
54
55
#endif
index
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
Definition
TGWin32VirtualXProxy.cxx:168
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
ROOT::Experimental::Detail::RRawPtrWriteEntry
A container of const raw pointers, corresponding to a row in the data set.
Definition
RRawPtrWriteEntry.hxx:47
ROOT::REntry
The REntry is a collection of values in an ntuple corresponding to a complete row in the data set.
Definition
REntry.hxx:54
ROOT::RFieldToken
A field token identifies a (sub)field in an entry.
Definition
RFieldToken.hxx:40
ROOT::RFieldToken::RFieldToken
RFieldToken()=default
ROOT::RFieldToken::fIndex
std::size_t fIndex
The index of the field (top-level or registered subfield)
Definition
RFieldToken.hxx:45
ROOT::RFieldToken::fSchemaId
std::uint64_t fSchemaId
Safety check to prevent tokens from other models being used.
Definition
RFieldToken.hxx:46
ROOT::RFieldToken::RFieldToken
RFieldToken(std::size_t index, std::uint64_t schemaId)
Definition
RFieldToken.hxx:47
ROOT::RNTupleModel
The RNTupleModel encapulates the schema of an RNTuple.
Definition
RNTupleModel.hxx:139
ROOT
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Definition
EExecutionPolicy.hxx:4
tree
ntuple
inc
ROOT
RFieldToken.hxx
ROOT master - Reference Guide Generated on Thu Apr 24 2025 15:50:40 (GVA Time) using Doxygen 1.10.0