Small helper to keep current directory context.
Automatically reverts to "old" directory
Definition at line 41 of file TDirectory.h.
Public Member Functions | |
TContext () | |
TContext (TDirectory *newCurrent) | |
TContext (TDirectory *previous, TDirectory *newCurrent) | |
~TContext () | |
Destructor. More... | |
Private Member Functions | |
TContext (TContext &)=delete | |
Pointer to the next TContext in the implied list of context pointing to fPrevious. More... | |
void | CdNull () |
Set the current directory to null. More... | |
TContext & | operator= (TContext &)=delete |
Private Attributes | |
std::atomic< bool > | fActiveDestructor {false} |
Pointer to the previous current directory. More... | |
std::atomic< TDirectory * > | fDirectory {nullptr} |
std::atomic< bool > | fDirectoryWait {false} |
Set to true during the destructor execution. More... | |
TContext * | fNext {nullptr} |
Pointer to the next TContext in the implied list of context pointing to fPrevious. More... | |
TContext * | fPrevious {nullptr} |
Set to true if a TDirectory might still access this object. More... | |
Friends | |
class | TDirectory |
#include <TDirectory.h>
|
privatedelete |
Pointer to the next TContext in the implied list of context pointing to fPrevious.
|
inline |
Definition at line 55 of file TDirectory.h.
|
inline |
Definition at line 66 of file TDirectory.h.
|
inline |
Definition at line 73 of file TDirectory.h.
TDirectory::TContext::~TContext | ( | ) |
Destructor.
Reset the current directory to its previous state.
Definition at line 134 of file TDirectory.cxx.
|
private |
Set the current directory to null.
This is called from the TContext destructor. Since the destructor is inline, we do not want to have it directly use a global variable.
Definition at line 124 of file TDirectory.cxx.
|
friend |
Definition at line 53 of file TDirectory.h.
|
private |
Pointer to the previous current directory.
Definition at line 44 of file TDirectory.h.
|
private |
Definition at line 43 of file TDirectory.h.
|
private |
Set to true during the destructor execution.
Definition at line 45 of file TDirectory.h.
|
private |
Pointer to the next TContext in the implied list of context pointing to fPrevious.
Definition at line 47 of file TDirectory.h.
|
private |
Set to true if a TDirectory might still access this object.
Definition at line 46 of file TDirectory.h.