Internal class used in the implementation of gDirectory
The objects of type TDirectoryAtomicAdapter
should only be used inside the thread that created them.
The intent is for those objects to be used indirectly through the macro gDirectory
and solely as temporary objects. For example:
Note that:
currently behaves "unexpectedly" as changing dir
will also change gDirectory
:
leads to
To prevent this we would need a new mechanism such that the type used by auto
in that case is TDirectory*
rather than the Internal
type TDirectoryAtomicAdapter
.
Definition at line 340 of file TDirectory.h.
Public Member Functions | |
TDirectoryAtomicAdapter () | |
operator bool () const | |
template<typename T > | |
operator T* () const | |
operator TDirectory * () const | |
bool | operator!= (const TDirectory *other) const |
bool | operator!= (TDirectory *other) const |
TDirectory * | operator-> () const |
TDirectory * | operator= (TDirectory *newvalue) |
bool | operator== (const TDirectory *other) const |
bool | operator== (TDirectory *other) const |
Public Attributes | |
TDirectory::SharedGDirectory_t & | fValue |
#include <TDirectory.h>
|
inline |
Definition at line 345 of file TDirectory.h.
|
inline |
Definition at line 356 of file TDirectory.h.
|
inlineexplicit |
Definition at line 348 of file TDirectory.h.
|
inline |
Definition at line 352 of file TDirectory.h.
|
inline |
Definition at line 362 of file TDirectory.h.
|
inline |
Definition at line 370 of file TDirectory.h.
|
inline |
Definition at line 382 of file TDirectory.h.
|
inline |
Definition at line 374 of file TDirectory.h.
|
inline |
Definition at line 358 of file TDirectory.h.
|
inline |
Definition at line 366 of file TDirectory.h.
TDirectory::SharedGDirectory_t& ROOT::Internal::TDirectoryAtomicAdapter::fValue |
Definition at line 343 of file TDirectory.h.