#include <TDirectory-example.h>
Public Member Functions | |
TContext (TDirectory *previous, TDirectory *newCurrent) | |
TContext (TDirectory *newCurrent) | |
~TContext () | |
Private Member Functions | |
TContext (TContext &) | |
TContext & | operator= (TContext &) |
void | CdNull () |
Private Attributes | |
TDirectory * | fPrevious |
Definition at line 81 of file TDirectory-example.h.
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 }
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 }
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 }
void TDirectory::TContext::CdNull | ( | ) | [private] |
TDirectory* TDirectory::TContext::fPrevious [private] |
Definition at line 83 of file TDirectory-example.h.
Referenced by ~TContext().