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 338 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 343 of file TDirectory.h.
|
inline |
Definition at line 354 of file TDirectory.h.
|
inlineexplicit |
Definition at line 346 of file TDirectory.h.
|
inline |
Definition at line 350 of file TDirectory.h.
|
inline |
Definition at line 360 of file TDirectory.h.
|
inline |
Definition at line 368 of file TDirectory.h.
|
inline |
Definition at line 380 of file TDirectory.h.
|
inline |
Definition at line 372 of file TDirectory.h.
|
inline |
Definition at line 356 of file TDirectory.h.
|
inline |
Definition at line 364 of file TDirectory.h.
TDirectory::SharedGDirectory_t& ROOT::Internal::TDirectoryAtomicAdapter::fValue |
Definition at line 341 of file TDirectory.h.