file_revision::inner Class Reference


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 &)
inneroperator= (const inner &)

Private Attributes

long reference_count
nstring filename
bool need_to_unlink

Detailed Description

Definition at line 61 of file file_revision.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

inner& file_revision::inner::operator= ( const inner  )  [private]

The assignment operator. Do not use.


Field Documentation

The reference_count instance variable is used to remember how many references exist to this.

Definition at line 103 of file file_revision.h.

The filename instance variable is used to remember the absolute path of the file.

Definition at line 109 of file file_revision.h.

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.


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

Generated on Wed Mar 12 23:37:39 2008 for Aegis by  doxygen 1.5.5