Logo ROOT   6.18/05
Reference Guide
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
TDirectory::TContext Class Reference

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 &)
 Pointer to the next TContext in the implied list of context pointing to fPrevious. More...
 
void CdNull ()
 Set the current directory to null. More...
 
TContextoperator= (TContext &)
 

Private Attributes

std::atomic< bool > fActiveDestructor
 Pointer to the previous current directory. More...
 
std::atomic< TDirectory * > fDirectory
 
std::atomic< bool > fDirectoryWait
 Set to true during the destructor execution. More...
 
TContextfNext
 Pointer to the next TContext in the implied list of context pointing to fPrevious. More...
 
TContextfPrevious
 Set to true if a TDirectory might still access this object. More...
 

Friends

class TDirectory
 

#include <TDirectory.h>

Constructor & Destructor Documentation

◆ TContext() [1/4]

TDirectory::TContext::TContext ( TContext )
private

Pointer to the next TContext in the implied list of context pointing to fPrevious.

◆ TContext() [2/4]

TDirectory::TContext::TContext ( TDirectory previous,
TDirectory newCurrent 
)
inline

Definition at line 54 of file TDirectory.h.

◆ TContext() [3/4]

TDirectory::TContext::TContext ( )
inline

Definition at line 63 of file TDirectory.h.

◆ TContext() [4/4]

TDirectory::TContext::TContext ( TDirectory newCurrent)
inline

Definition at line 71 of file TDirectory.h.

◆ ~TContext()

TDirectory::TContext::~TContext ( )

Destructor.

Reset the current directory to its previous state.

Definition at line 134 of file TDirectory.cxx.

Member Function Documentation

◆ CdNull()

void TDirectory::TContext::CdNull ( )
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 1334 of file TDirectory.cxx.

◆ operator=()

TContext & TDirectory::TContext::operator= ( TContext )
private

Friends And Related Function Documentation

◆ TDirectory

friend class TDirectory
friend

Definition at line 52 of file TDirectory.h.

Member Data Documentation

◆ fActiveDestructor

std::atomic<bool> TDirectory::TContext::fActiveDestructor
private

Pointer to the previous current directory.

Definition at line 44 of file TDirectory.h.

◆ fDirectory

std::atomic<TDirectory*> TDirectory::TContext::fDirectory
private

Definition at line 43 of file TDirectory.h.

◆ fDirectoryWait

std::atomic<bool> TDirectory::TContext::fDirectoryWait
private

Set to true during the destructor execution.

Definition at line 45 of file TDirectory.h.

◆ fNext

TContext* TDirectory::TContext::fNext
private

Pointer to the next TContext in the implied list of context pointing to fPrevious.

Definition at line 48 of file TDirectory.h.

◆ fPrevious

TContext* TDirectory::TContext::fPrevious
private

Set to true if a TDirectory might still access this object.

Definition at line 47 of file TDirectory.h.


The documentation for this class was generated from the following files: