Public Member Functions | |
~inner () | |
inner (const nstring &filename, bool need_to_unlink) | |
nstring | get_path () const |
void | one_fewer () |
void | one_more () |
Private Member Functions | |
inner () | |
inner (const inner &) | |
inner & | operator= (const inner &) |
Private Attributes | |
long | reference_count |
nstring | filename |
bool | need_to_unlink |
Definition at line 61 of file file_revision.h.
file_revision::inner::~inner | ( | ) |
The destructor. Thou shalt not derive from this class.
This method is private because you are supposed to call one_fewer() so that the instance will delete itself once the last reference is gone.
file_revision::inner::inner | ( | const nstring & | filename, | |
bool | need_to_unlink | |||
) |
The constructor.
file_revision::inner::inner | ( | ) | [private] |
The default constructor. Do not use.
file_revision::inner::inner | ( | const inner & | ) | [private] |
The copy constructor. Do not use.
nstring file_revision::inner::get_path | ( | ) | const [inline] |
The get_path method is used to extract the path of the file containing the file revision.
Definition at line 83 of file file_revision.h.
void file_revision::inner::one_fewer | ( | ) |
The one_fewer method is used to notify this instance that there is one fewer reference to it. Once all references are gone, this instance will delete itself.
void file_revision::inner::one_more | ( | ) | [inline] |
The one_more method is used to notify this instance that there is one more reference to it.
Definition at line 96 of file file_revision.h.
The assignment operator. Do not use.
long file_revision::inner::reference_count [private] |
The reference_count instance variable is used to remember how many references exist to this.
Definition at line 103 of file file_revision.h.
nstring file_revision::inner::filename [private] |
The filename instance variable is used to remember the absolute path of the file.
Definition at line 109 of file file_revision.h.
bool file_revision::inner::need_to_unlink [private] |
The need_to_unlink instance variable is used to remember wether or not we need to unlink the file in the destructor.
Definition at line 115 of file file_revision.h.