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 339 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 344 of file TDirectory.h.
|
inline |
Definition at line 355 of file TDirectory.h.
|
inlineexplicit |
Definition at line 347 of file TDirectory.h.
|
inline |
Definition at line 351 of file TDirectory.h.
|
inline |
Definition at line 361 of file TDirectory.h.
|
inline |
Definition at line 369 of file TDirectory.h.
|
inline |
Definition at line 381 of file TDirectory.h.
|
inline |
Definition at line 373 of file TDirectory.h.
|
inline |
Definition at line 357 of file TDirectory.h.
|
inline |
Definition at line 365 of file TDirectory.h.
TDirectory::SharedGDirectory_t& ROOT::Internal::TDirectoryAtomicAdapter::fValue |
Definition at line 342 of file TDirectory.h.