MASA-Core
Public Member Functions | Private Member Functions | Private Attributes
SpecialRowsPartition Class Reference

Detailed Description

Definition at line 41 of file SpecialRowsPartition.hpp.

#include <SpecialRowsPartition.hpp>

List of all members.

Public Member Functions

 SpecialRowsPartition (string path, int i0, int j0, int i1, int j1, bool readOnly, const score_params_t *score_params)
virtual ~SpecialRowsPartition ()
void reload ()
void deleteRows ()
void setRamProportion (const long long ram, const long long disk)
void setFirstColumnReader (SeekableCellsReader *reader)
void setFirstRowReader (SeekableCellsReader *reader)
void setLastColumnWriter (CellsWriter *writer)
void setLastRowWriter (CellsWriter *writer)
int read (cell_t *buf, int len)
int write (int i, const cell_t *buf, int len)
int getLastRowId ()
SpecialRowgetLastRow ()
string getLastRowFilename ()
int getRowsCount () const
int getReadingRow ()
int getLargestInterval ()
SpecialRownextSpecialRow (int i, int j, int min_dist=0)
void truncate (int max_i, int max_j)
void changePath (string new_path)
int getI0 () const
int getI1 () const
int getJ0 () const
int getJ1 () const
const string & getPath () const
CellsWritergetFirstColumnWriter ()
SeekableCellsReadergetFirstColumnReader ()
SeekableCellsReadergetFirstRowReader ()
CellsWritergetLastColumnWriter ()
CellsWritergetLastRowWriter ()
void createChain (SpecialRowsPartition *otherPartition)
string getFirstColumnFilename ()
string getFirstRowFilename ()
int continueFromLastRow ()
bool isPersistent () const

Private Member Functions

void updateLargestInterval ()
void readDirectory ()
SpecialRowgetSpecialRow (int i)
void setBorderReader (char prefix, SeekableCellsReader *&reader, CellsWriter *&writer)
bool loadBorderReader (char prefix, string file, SeekableCellsReader *&reader)

Private Attributes

int i0
int j0
int i1
int j1
long long ramProportion
long long diskProportion
int ramCount
int diskCount
const score_params_tscore_params
bool readOnly
bool persistent
string path
map< int, SpecialRow * > rowsMap
vector< SpecialRow * > rowsVector
int largestInterval
int readingRowId
int lastRowId
string lastRowFilename
SpecialRowreadingRow
FirstRow firstRow
CellsWriterfirstColumnWriter
CellsWriterfirstRowWriter
SeekableCellsReaderfirstColumnReader
SeekableCellsReaderfirstRowReader
CellsWriterlastColumnWriter
CellsWriterlastRowWriter

Constructor & Destructor Documentation

SpecialRowsPartition::SpecialRowsPartition ( string  path,
int  i0,
int  j0,
int  i1,
int  j1,
bool  readOnly,
const score_params_t score_params 
)

Definition at line 48 of file SpecialRowsPartition.cpp.

Definition at line 87 of file SpecialRowsPartition.cpp.


Member Function Documentation

void SpecialRowsPartition::changePath ( string  new_path)

Definition at line 271 of file SpecialRowsPartition.cpp.

Definition at line 454 of file SpecialRowsPartition.cpp.

Definition at line 468 of file SpecialRowsPartition.cpp.

Definition at line 489 of file SpecialRowsPartition.cpp.

Definition at line 285 of file SpecialRowsPartition.cpp.

Definition at line 300 of file SpecialRowsPartition.cpp.

Definition at line 293 of file SpecialRowsPartition.cpp.

Definition at line 289 of file SpecialRowsPartition.cpp.

Definition at line 304 of file SpecialRowsPartition.cpp.

Definition at line 251 of file SpecialRowsPartition.cpp.

Definition at line 255 of file SpecialRowsPartition.cpp.

Definition at line 259 of file SpecialRowsPartition.cpp.

Definition at line 263 of file SpecialRowsPartition.cpp.

Definition at line 247 of file SpecialRowsPartition.cpp.

Definition at line 308 of file SpecialRowsPartition.cpp.

Definition at line 191 of file SpecialRowsPartition.cpp.

Definition at line 195 of file SpecialRowsPartition.cpp.

Definition at line 186 of file SpecialRowsPartition.cpp.

Definition at line 312 of file SpecialRowsPartition.cpp.

const string & SpecialRowsPartition::getPath ( ) const

Definition at line 267 of file SpecialRowsPartition.cpp.

Definition at line 199 of file SpecialRowsPartition.cpp.

Definition at line 281 of file SpecialRowsPartition.cpp.

Definition at line 316 of file SpecialRowsPartition.cpp.

Definition at line 464 of file SpecialRowsPartition.cpp.

bool SpecialRowsPartition::loadBorderReader ( char  prefix,
string  file,
SeekableCellsReader *&  reader 
) [private]

Definition at line 493 of file SpecialRowsPartition.cpp.

SpecialRow * SpecialRowsPartition::nextSpecialRow ( int  i,
int  j,
int  min_dist = 0 
)

Definition at line 405 of file SpecialRowsPartition.cpp.

int SpecialRowsPartition::read ( cell_t buf,
int  len 
)

Definition at line 449 of file SpecialRowsPartition.cpp.

Definition at line 365 of file SpecialRowsPartition.cpp.

Definition at line 177 of file SpecialRowsPartition.cpp.

void SpecialRowsPartition::setBorderReader ( char  prefix,
SeekableCellsReader *&  reader,
CellsWriter *&  writer 
) [private]

Definition at line 129 of file SpecialRowsPartition.cpp.

Definition at line 110 of file SpecialRowsPartition.cpp.

Definition at line 115 of file SpecialRowsPartition.cpp.

Definition at line 121 of file SpecialRowsPartition.cpp.

Definition at line 125 of file SpecialRowsPartition.cpp.

void SpecialRowsPartition::setRamProportion ( const long long  ram,
const long long  disk 
)

Definition at line 276 of file SpecialRowsPartition.cpp.

void SpecialRowsPartition::truncate ( int  max_i,
int  max_j 
)

Definition at line 203 of file SpecialRowsPartition.cpp.

Definition at line 355 of file SpecialRowsPartition.cpp.

int SpecialRowsPartition::write ( int  i,
const cell_t buf,
int  len 
)

Definition at line 335 of file SpecialRowsPartition.cpp.


Member Data Documentation

Definition at line 99 of file SpecialRowsPartition.hpp.

Definition at line 97 of file SpecialRowsPartition.hpp.

Definition at line 116 of file SpecialRowsPartition.hpp.

Definition at line 114 of file SpecialRowsPartition.hpp.

Definition at line 113 of file SpecialRowsPartition.hpp.

Definition at line 117 of file SpecialRowsPartition.hpp.

Definition at line 115 of file SpecialRowsPartition.hpp.

int SpecialRowsPartition::i0 [private]

Definition at line 91 of file SpecialRowsPartition.hpp.

int SpecialRowsPartition::i1 [private]

Definition at line 93 of file SpecialRowsPartition.hpp.

int SpecialRowsPartition::j0 [private]

Definition at line 92 of file SpecialRowsPartition.hpp.

int SpecialRowsPartition::j1 [private]

Definition at line 94 of file SpecialRowsPartition.hpp.

Definition at line 107 of file SpecialRowsPartition.hpp.

Definition at line 118 of file SpecialRowsPartition.hpp.

Definition at line 110 of file SpecialRowsPartition.hpp.

Definition at line 109 of file SpecialRowsPartition.hpp.

Definition at line 119 of file SpecialRowsPartition.hpp.

string SpecialRowsPartition::path [private]

Definition at line 104 of file SpecialRowsPartition.hpp.

Definition at line 103 of file SpecialRowsPartition.hpp.

Definition at line 98 of file SpecialRowsPartition.hpp.

Definition at line 96 of file SpecialRowsPartition.hpp.

Definition at line 112 of file SpecialRowsPartition.hpp.

Definition at line 108 of file SpecialRowsPartition.hpp.

Definition at line 102 of file SpecialRowsPartition.hpp.

Definition at line 105 of file SpecialRowsPartition.hpp.

Definition at line 106 of file SpecialRowsPartition.hpp.

Definition at line 100 of file SpecialRowsPartition.hpp.


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