TDirectory::TContext Class Reference

#include <TDirectory-example.h>

Collaboration diagram for TDirectory::TContext:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TContext (TDirectory *previous, TDirectory *newCurrent)
 TContext (TDirectory *newCurrent)
 ~TContext ()

Private Member Functions

 TContext (TContext &)
TContextoperator= (TContext &)
void CdNull ()

Private Attributes

TDirectoryfPrevious

Detailed Description

Definition at line 81 of file TDirectory-example.h.


Constructor & Destructor Documentation

TDirectory::TContext::TContext ( TContext  )  [private]
TDirectory::TContext::TContext ( TDirectory previous,
TDirectory newCurrent 
) [inline]

Definition at line 88 of file TDirectory-example.h.

References TDirectory::cd().

00089          : fPrevious(previous)
00090       {
00091          // Store the current directory so we can restore it
00092          // later and cd to the new directory.
00093          if ( newCurrent ) newCurrent->cd();
00094       }

Here is the call graph for this function:

TDirectory::TContext::TContext ( TDirectory newCurrent  )  [inline]

Definition at line 95 of file TDirectory-example.h.

References TDirectory::cd().

00095                                        : fPrevious(gDirectory)
00096       {
00097          // Store the current directory so we can restore it
00098          // later and cd to the new directory.
00099          if ( newCurrent ) newCurrent->cd();
00100       }

Here is the call graph for this function:

TDirectory::TContext::~TContext (  )  [inline]

Definition at line 101 of file TDirectory-example.h.

References TDirectory::cd(), CdNull(), and fPrevious.

00102       {
00103          // Destructor.   Reset the current directory to its
00104          // previous state.
00105          if ( fPrevious ) fPrevious->cd();
00106          else CdNull();
00107       }

Here is the call graph for this function:


Member Function Documentation

void TDirectory::TContext::CdNull (  )  [private]

Referenced by ~TContext().

Here is the caller graph for this function:

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

Member Data Documentation

Definition at line 83 of file TDirectory-example.h.

Referenced by ~TContext().


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

Generated on 12 Feb 2016 for ROOT Analyzer by  doxygen 1.6.1