Specialization of RNTupleProcessorOptionalPtr<T> for void-type pointers.
Definition at line 162 of file RNTupleProcessor.hxx.
|
| void | BindRawPtr (void *valuePtr) |
| | Bind the value to valuePtr.
|
| |
| void | BindRawPtr (void *valuePtr) |
| | Bind the value to valuePtr.
|
| |
| std::shared_ptr< void > | GetPtr () const |
| | Get a shared pointer to the field value managed by the processor's entry.
|
| |
| std::shared_ptr< void > | GetPtr () const |
| | Get the pointer to the field value managed by the processor's entry.
|
| |
| void * | GetRawPtr () const |
| | Get a non-owning pointer to the field value managed by the processor's entry.
|
| |
| void * | GetRawPtr () const |
| | Get a non-owning pointer to the field value managed by the processor's entry.
|
| |
| bool | HasValue () const |
| | Check if the pointer currently holds a valid value.
|
| |
| bool | HasValue () const |
| | Check if the pointer currently holds a valid value.
|
| |
| const void & | operator* () const |
| | Get a reference to the field value managed by the processor's entry.
|
| |
| const void * | operator-> () const |
| | Access the field value managed by the processor's entry.
|
| |
#include <ROOT/RNTupleProcessor.hxx>
◆ RNTupleProcessorOptionalPtr() [1/2]
◆ RNTupleProcessorOptionalPtr() [2/2]
◆ BindRawPtr() [1/2]
Bind the value to valuePtr.
- Parameters
-
| [in] | valuePtr | Pointer to bind the value to. |
- Warning
- Use this function with care! Values may not always be valid for every entry during processing, for example when a field is not present in one of the chained processors or when during a join operation, no matching entry in the auxiliary processor can be found. Reading
valuePtr as-is therefore comes with the risk of reading invalid data. After binding a pointer to an RNTupleProcessorOptionalPtr, we strongly recommend only accessing its data through this interface, to ensure that only valid data can be read.
Definition at line 125 of file RNTupleProcessor.hxx.
◆ BindRawPtr() [2/2]
Bind the value to valuePtr.
- Parameters
-
| [in] | valuePtr | Pointer to bind the value to. |
- Warning
- Use this function with care! Values may not always be valid for every entry during processing, for example when a field is not present in one of the chained processors or when during a join operation, no matching entry in the auxiliary processor can be found. Reading
valuePtr as-is therefore comes with the risk of reading invalid data. After binding a pointer to an RNTupleProcessorOptionalPtr, we strongly recommend only accessing its data through this interface, to ensure that only valid data can be read.
Definition at line 210 of file RNTupleProcessor.hxx.
◆ GetPtr() [1/2]
Get a shared pointer to the field value managed by the processor's entry.
- Returns
- A
std::shared_ptr<T> if the field is valid in the current entry, or a nullptr otherwise.
Definition at line 99 of file RNTupleProcessor.hxx.
◆ GetPtr() [2/2]
Get the pointer to the field value managed by the processor's entry.
- Returns
- A
std::shared_ptr<void> if the field is valid in the current entry, or a nullptr otherwise.
Definition at line 184 of file RNTupleProcessor.hxx.
◆ GetRawPtr() [1/2]
Get a non-owning pointer to the field value managed by the processor's entry.
- Returns
- A
T* if the field is valid in the current entry, or a nullptr otherwise.
Definition at line 113 of file RNTupleProcessor.hxx.
◆ GetRawPtr() [2/2]
Get a non-owning pointer to the field value managed by the processor's entry.
- Returns
- A
void* if the field is valid in the current entry, or a nullptr otherwise.
Definition at line 198 of file RNTupleProcessor.hxx.
◆ HasValue() [1/2]
◆ HasValue() [2/2]
◆ operator*()
Get a reference to the field value managed by the processor's entry.
Throws an exception if the field is invalid in the processor's current entry.
Definition at line 131 of file RNTupleProcessor.hxx.
◆ operator->()
Access the field value managed by the processor's entry.
Throws an exception if the field is invalid in the processor's current entry.
Definition at line 144 of file RNTupleProcessor.hxx.
◆ RNTupleProcessor [1/2]
◆ RNTupleProcessor [2/2]
◆ fFieldIndex [1/2]
◆ fFieldIndex [2/2]
◆ fProcessorEntry [1/2]
◆ fProcessorEntry [2/2]
tree/ntuple/inc/ROOT/RNTupleProcessor.hxx