Definition at line 77 of file RNTupleProcessor.hxx.
Public Member Functions | |
| void | BindRawPtr (T *valuePtr) |
Bind the value to valuePtr. | |
| std::shared_ptr< T > | GetPtr () const |
| Get a shared pointer to the field value managed by the processor's entry. | |
| T * | 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. | |
| const T & | operator* () const |
| Get a reference to the field value managed by the processor's entry. | |
| const T * | operator-> () const |
| Access the field value managed by the processor's entry. | |
Private Member Functions | |
| RNTupleProcessorOptionalPtr (Internal::RNTupleProcessorEntry *processorEntry, Internal::RNTupleProcessorEntry::FieldIndex_t fieldIdx) | |
Private Attributes | |
| Internal::RNTupleProcessorEntry::FieldIndex_t | fFieldIndex |
| Internal::RNTupleProcessorEntry * | fProcessorEntry |
Friends | |
| class | RNTupleProcessor |
#include <ROOT/RNTupleProcessor.hxx>
|
inlineprivate |
Definition at line 84 of file RNTupleProcessor.hxx.
|
inline |
Bind the value to valuePtr.
| [in] | valuePtr | Pointer to bind the value to. |
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 123 of file RNTupleProcessor.hxx.
|
inline |
Get a shared pointer to the field value managed by the processor's entry.
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.
|
inline |
Get a non-owning pointer to the field value managed by the processor's entry.
T* if the field is valid in the current entry, or a nullptr otherwise. Definition at line 111 of file RNTupleProcessor.hxx.
|
inline |
Check if the pointer currently holds a valid value.
Definition at line 93 of file RNTupleProcessor.hxx.
|
inline |
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 129 of file RNTupleProcessor.hxx.
|
inline |
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 142 of file RNTupleProcessor.hxx.
|
friend |
Definition at line 78 of file RNTupleProcessor.hxx.
|
private |
Definition at line 82 of file RNTupleProcessor.hxx.
|
private |
Definition at line 81 of file RNTupleProcessor.hxx.