Logo Search packages:      
Sourcecode: r-cran-genabel version File versions  Download package

Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes

FileVector Class Reference

Inheritance diagram for FileVector:
Inheritance graph
[legend]
Collaboration diagram for FileVector:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void addVariable (void *invec, string varname)
template<class DT >
void addVariableAs (DT *outvec, string varname)
void cacheAllNames (bool)
virtual AbstractMatrixcastToAbstractMatrix ()
void deInitialize ()
 FileVector (string iFilename, unsigned long cachesizeMb, bool iReadOnly)
 FileVector (char *iFilename, unsigned long cachesizeMb)
 FileVector (string iFilename, unsigned long cachesizeMb)
 FileVector (char *iFilename, unsigned long cachesizeMb, bool iReadOnly)
unsigned long getCacheSizeInMb ()
virtual short unsigned getElementSize ()
virtual short unsigned getElementType ()
virtual string getFileName ()
virtual unsigned long getNumObservations ()
virtual unsigned long getNumVariables ()
void getPrivateCacheData (unsigned long *cacheSizeNVars, unsigned long *inCachFrom, unsigned long *cacheEnd)
bool & getWarningIsShown ()
void initialize (unsigned long cachesizeMb)
unsigned long nrnc_to_nelem (unsigned long varIdx, unsigned long obsIdx)
void readElement (unsigned long varIdx, unsigned long obsIdx, void *data)
template<class DT >
void readElementAs (unsigned long varNumber, unsigned long obsNumber, DT &element)
void readNames ()
void readObservation (unsigned long obsIdx, void *outvec)
FixedChar readObservationName (unsigned long obsIdx)
void readVariable (unsigned long varIdx, void *outvec)
template<class DT >
void readVariableAs (unsigned long varIdx, DT *outvec)
FixedChar readVariableName (unsigned long varIdx)
void saveAs (string newFilename)
void saveAs (string newFilename, unsigned long nvars, unsigned long nobss, unsigned long *varindexes, unsigned long *obsindexes)
void saveAsText (string newFilename, bool saveVarNames, bool saveObsNames, string nanString)
void saveIndexFile ()
void saveObservationsAs (string newFilename, unsigned long nobss, unsigned long *obsindexes)
void saveVariablesAs (string newFilename, unsigned long nvars, unsigned long *varindexes)
void setCacheSizeInMb (unsigned long cachesizeMb)
virtual bool setReadOnly (bool readOnly)
virtual void setUpdateNamesOnWrite (bool bUpdate)
void updateCache (unsigned long from_var)
void writeElement (unsigned long varIdx, unsigned long obsIdx, void *data)
template<class DT >
void writeElementAs (unsigned long varNumber, unsigned long obsNumber, DT &element)
void writeObservation (unsigned long obsIdx, void *outvec)
void writeObservationName (unsigned long obsIdx, FixedChar name)
void writeVariable (unsigned long varIdx, void *datavec)
template<class DT >
void writeVariableAs (unsigned long varIdx, DT *outvec)
void writeVariableName (unsigned long varIdx, FixedChar name)

Static Public Member Functions

static void checkOpenForWriting (const string fileName)
static void closeForWriting (const string fileName)

Static Public Attributes

static set< string > fileNamesOpenForWriting

Private Member Functions

void calcCachePos (unsigned long newPos, unsigned long &cacheBegin, unsigned long &cacheEnd)
void copyVariable (char *to, char *from, int n, unsigned long *indexes)

Private Attributes

unsigned long cache_size_bytes
unsigned long cache_size_Mb
unsigned long cache_size_nvars
unsigned long cacheBegin
char * cacheBuffer
unsigned long cacheEnd
ReusableFileHandle dataFile
string dataFilename
FileHeader fileHeader
const string filename
unsigned long headerSize
ReusableFileHandle indexFile
string indexFilename
unsigned long max_buffer_size_bytes
FixedCharobservationNames
bool readOnly
bool updateNamesOnWrite
FixedCharvariableNames

Detailed Description

Definition at line 30 of file FileVector.h.


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

Generated by  Doxygen 1.6.0   Back to index