Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::MRUFileList Class Reference

#include <MRUFileList.h>

Collaboration diagram for PLearn::MRUFileList:

Collaboration graph
[legend]
List of all members.

Public Types

typedef list< pair< string,
ofstream * > > 
list_typ

Public Member Functions

 MRUFileList (int _max_opened_files=1000, ios_base::openmode _mode=ios_base::out|ios_base::app)
 ~MRUFileList ()
ofstream * getFile (string fname)
string errorMsg ()
void clearError ()
float misses ()

Protected Attributes

int max_opened_files
string error
list_typ mru_list
int tot_miss
int tot_access
ios_base::openmode mode

Member Typedef Documentation

typedef list<pair<string,ofstream*> > PLearn::MRUFileList::list_typ
 

Definition at line 63 of file MRUFileList.h.


Constructor & Destructor Documentation

PLearn::MRUFileList::MRUFileList int  _max_opened_files = 1000,
ios_base::openmode  _mode = ios_base::out|ios_base::app
 

Definition at line 42 of file MRUFileList.cc.

References mode.

PLearn::MRUFileList::~MRUFileList  ) 
 

Definition at line 90 of file MRUFileList.cc.

References mru_list.


Member Function Documentation

void PLearn::MRUFileList::clearError  )  [inline]
 

Definition at line 71 of file MRUFileList.h.

References error.

string PLearn::MRUFileList::errorMsg  )  [inline]
 

Definition at line 70 of file MRUFileList.h.

References error.

ofstream * PLearn::MRUFileList::getFile string  fname  ) 
 

Definition at line 46 of file MRUFileList.cc.

References error, fname, max_opened_files, mode, mru_list, tot_access, and tot_miss.

float PLearn::MRUFileList::misses  )  [inline]
 

Definition at line 74 of file MRUFileList.h.

References tot_access, and tot_miss.


Member Data Documentation

string PLearn::MRUFileList::error [protected]
 

Definition at line 78 of file MRUFileList.h.

Referenced by clearError(), errorMsg(), and getFile().

int PLearn::MRUFileList::max_opened_files [protected]
 

Definition at line 77 of file MRUFileList.h.

Referenced by getFile().

ios_base::openmode PLearn::MRUFileList::mode [protected]
 

Definition at line 81 of file MRUFileList.h.

Referenced by getFile().

list_typ PLearn::MRUFileList::mru_list [protected]
 

Definition at line 79 of file MRUFileList.h.

Referenced by getFile(), and ~MRUFileList().

int PLearn::MRUFileList::tot_access [protected]
 

Definition at line 80 of file MRUFileList.h.

Referenced by getFile(), and misses().

int PLearn::MRUFileList::tot_miss [protected]
 

Definition at line 80 of file MRUFileList.h.

Referenced by getFile(), and misses().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:23:11 2004 for PLearn by doxygen 1.3.7