GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
HistoryFile Class Reference

#include "History.h"

Collaboration diagram for HistoryFile:
Collaboration graph
[legend]

Public Member Functions

 HistoryFile ()
 
virtual ~HistoryFile ()
 
virtual void add (const unsigned char *bytes, int len)
 
virtual void get (unsigned char *bytes, int len, int loc)
 
bool isMapped ()
 
virtual int len ()
 
void map ()
 
void unmap ()
 

Private Attributes

charfileMap
 
int ion
 
int length
 
int readWriteBalance
 
QTemporaryFile tmpFile
 

Static Private Attributes

static const int MAP_THRESHOLD = -1000
 

Detailed Description

Definition at line 36 of file History.h.

Constructor & Destructor Documentation

HistoryFile::HistoryFile ( )

Definition at line 84 of file History.cpp.

References ion, and tmpFile.

HistoryFile::~HistoryFile ( )
virtual

Definition at line 96 of file History.cpp.

References fileMap, and unmap().

Member Function Documentation

void HistoryFile::add ( const unsigned char bytes,
int  len 
)
virtual

Definition at line 133 of file History.cpp.

References fileMap, ion, length, readWriteBalance, SEEK_SET, and unmap().

Referenced by HistoryScrollFile::addCells(), and HistoryScrollFile::addLine().

void HistoryFile::get ( unsigned char bytes,
int  len,
int  loc 
)
virtual
bool HistoryFile::isMapped ( )

Definition at line 128 of file History.cpp.

References fileMap.

Referenced by HistoryScrollFile::addLine(), and HistoryScrollFile::startOfLine().

int HistoryFile::len ( )
virtual
void HistoryFile::map ( )

Definition at line 105 of file History.cpp.

References fileMap, ion, length, and readWriteBalance.

Referenced by get(), and HistoryScrollFile::startOfLine().

void HistoryFile::unmap ( )

Definition at line 120 of file History.cpp.

References fileMap, and length.

Referenced by add(), HistoryScrollFile::addLine(), and ~HistoryFile().

Member Data Documentation

char* HistoryFile::fileMap
private

Definition at line 60 of file History.h.

Referenced by add(), get(), isMapped(), map(), unmap(), and ~HistoryFile().

int HistoryFile::ion
private

Definition at line 55 of file History.h.

Referenced by add(), get(), HistoryFile(), and map().

int HistoryFile::length
private

Definition at line 56 of file History.h.

Referenced by add(), get(), len(), map(), and unmap().

const int HistoryFile::MAP_THRESHOLD = -1000
staticprivate

Definition at line 69 of file History.h.

Referenced by get().

int HistoryFile::readWriteBalance
private

Definition at line 66 of file History.h.

Referenced by add(), get(), and map().

QTemporaryFile HistoryFile::tmpFile
private

Definition at line 57 of file History.h.

Referenced by HistoryFile().


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