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

OldDiskVMatrix.cc File Reference

#include "DiskVMatrix.h"
#include "VecCompressor.h"

Include dependency graph for OldDiskVMatrix.cc:

Include dependency graph

Go to the source code of this file.

Functions

 if (!*indexf) PLERROR("In DiskVMatrix const ructor
could not open file s in specified
indexfname 
c_str ())
indexf read ((char *)&header, sizeof(int))
 while (isfile(fname))
current_row resize (width_)
 getFieldInfos ()
 PLEARN_IMPLEMENT_OBJECT (DiskVMatrix,"ONE LINE DESCR","NO HELP")

Variables

namespace PLearn<%using namespace
std;DiskVMatrix::DiskVMatrix(const string &the_dirname,
bool readwrite):readwritemode(readwrite), freshnewfile(false), dirname(remove_trailing_slash(the_dirname)){build_();}DiskVMatrix::DiskVMatrix(const string &the_dirname,
int the_width, bool write_double_as_float):RowBufferedVMatrix(0, the_width),
readwritemode(true), freshnewfile(true), dirname(remove_trailing_slash(the_dirname)){build_();}void
DiskVMatrix::writeRow(ostream
&out, const Vec &v){VecCompressor::writeCompressedVec(out, v);}void DiskVMatrix::readRow(istream &in, const Vec &v){VecCompressor::readCompressedVec(in, v);}void DiskVMatrix::build(){inherited::build();build_();}void DiskVMatrix::build_(){if(!freshnewfile){if(!isdir(dirname)) PLERROR("In DiskVMatrix
constructor, directory %s
could not be found", dirname.c_str());setMetaDataDir(dirname+".metadata");setMtime(mtime(append_slash(dirname)+"indexfile"));ios::openmode omode;if(readwritemode) omode=ios::in|ios::out|ios::binary;elseomode=ios::in|ios::binary;string
indexfname=dirname+"/indexfile";indexf=new fstream();indexf- 
open )(indexfname.c_str(), omode)
could not open file s in specified mode
int header
int k = 0
string fname = dirname+"/"+tostring(k)+".data"
 current_row_index = -1
 other_row_index = -1
 map_sr = TVec<map<stringreal> >(width_)
 map_rs = TVec<map<realstring> >(width_)


Function Documentation

could not open file s in specified indexfname c_str  ) 
 

Referenced by PLearn::Learner::basename(), PLearn::Variable::bbprop(), PLearn::NNet::build_(), PLearn::NeuralNet::build_(), PLearn::NeighborhoodSmoothnessNNet::build_(), PLearn::MovingAverageVMatrix::build_(), PLearn::CumVMatrix::build_(), PLearn::RowIterator::char_width(), PLearn::GraphicalBiText::compute_likelihood(), PLearn::WordNetOntology::detectWordsWithoutOntology(), PLearn::MatlabInterface::eigs_r11(), PLearn::WordNetOntology::extractWord(), PLearn::Gnuplot::featureplot(), PLearn::VMatrix::get(), PLearn::getDataSet(), PLearn::Gnuplot::histoplot(), PLearn::MatlabInterface::launch(), PLearn::MatlabInterface::launchAndWaitFor(), PLearn::loadCallxx(), PLearn::loadCorelDatamat(), PLearn::VMatrix::loadStringMapping(), PLearn::VMatrix::lockMetaDataDir(), main(), PLearn::GhostScript::multilineShow(), PLearn::Gnuplot::multiplot(), PLearn::Object::newread(), PLearn::SimpleDB< KeyType, QueryResult >::openAllFiles(), PLearn::PIFStream::PIFStream(), PLearn::Gnuplot::plot(), PLearn::Gnuplot::plot3d(), PLearn::Gnuplot::plotcdf(), PLearn::Gnuplot::plotdensity(), PLearn::plotVMats(), PLearn::POFStream::POFStream(), PLearn::VMatLanguage::preprocess(), PLearn::readAndMacroProcess(), PLearn::Variable::rfprop(), PLearn::ShellScript::run(), PLearn::SimpleDB< KeyType, QueryResult >::seekToEnd(), PLearn::SimpleDB< KeyType, QueryResult >::seekToRow(), PLearn::Variable::setParents(), PLearn::VMatrix::setSFIFFilename(), PLearn::Variable::symbolicBprop(), PLearn::SimpleDB< KeyType, QueryResult >::truncateFromRow(), and PLearn::vmatmain().

getFieldInfos  ) 
 

if !*  indexf  )  const
 

PLEARN_IMPLEMENT_OBJECT DiskVMatrix  ,
"ONE LINE DESCR"  ,
"NO HELP" 
 

indexf read (char *)&  header,
sizeof(int
 

Referenced by PLearn::SmoothedProbSparseMatrix::read().

other_row resize width_   ) 
 

Referenced by PLearn::Hash< KeyType, DataType >::addAndResize(), PLearn::TVec< pair< real, real > >::append(), PLearn::TMat< T >::appendRow(), PLearn::ArrayAllocator< T, SizeBits >::ArrayAllocator(), PLearn::TinyVector< T, N, TTrait >::assign(), PLearn::TinyVector< int, 7 >::assign(), PLearn::SmallVector< T, SizeBits, Allocator >::assign(), PLearn::Variable::build_(), PLearn::TVec< pair< real, real > >::concat(), PLearn::TVec< pair< real, real > >::insert(), PLearn::RGBImage::loadPPM(), PLearn::TmpFilenames::operator=(), PLearn::Array< char * >::operator=(), PLearn::SmallVector< T, SizeBits, Allocator >::pop_back(), PLearn::ProbabilitySparseMatrix::ProbabilitySparseMatrix(), PLearn::Storage< pair< real, real > >::push_back(), PLearn::SmallVector< T, SizeBits, Allocator >::push_back(), PLearn::TMat< pair< real, real > >::read(), PLearn::TVec< pair< real, real > >::remove(), PLearn::Variable::sizeprop(), and PLearn::TVec< T >::TVec().

while isfile(fname  ) 
 

Definition at line 104 of file OldDiskVMatrix.cc.

References fname, k, PLERROR, and PLearn::tostring().


Variable Documentation

current_row_index = -1
 

Definition at line 114 of file OldDiskVMatrix.cc.

Referenced by PLearn::RowBufferedVMatrix::RowBufferedVMatrix().

string fname = dirname+"/"+tostring(k)+".data"
 

Definition at line 103 of file OldDiskVMatrix.cc.

Referenced by PLearn::AsciiVMatrix::AsciiVMatrix(), PLearn::DiskVMatrix::build_(), PLearn::data_filename_2_filenames(), PLearn::fullyRebalance2Classes(), PLearn::VMatrix::getFieldInfos(), PLearn::MRUFileList::getFile(), PLearn::HelpCommand::helpAboutScript(), PLearn::VMatrix::loadStringMapping(), PLearn::Learner::measure(), PLearn::Learner::outputResultLineToFile(), PLearn::PIFStream::PIFStream(), PLearn::Gnuplot::plotClasses(), PLearn::POFStream::POFStream(), PLearn::readObject(), PLearn::Experiment::run(), PLearn::VMatrix::saveAllStringMappings(), PLearn::VMatrix::saveStringMappings(), PLearn::Learner::stop_if_wanted(), PLearn::viewVMat(), and while().

int header
 

Definition at line 97 of file OldDiskVMatrix.cc.

Referenced by PLearn::FileVMatrix::build_(), PLearn::DiskVMatrix::build_(), PLearn::MatlabInterface::eigs_r11(), PLearn::loadPMat(), PLearn::loadPVec(), PLearn::matlabR11eigs(), PLearn::readHeader(), PLearn::savePMat(), PLearn::savePVec(), PLearn::FileVMatrix::updateHeader(), PLearn::write_compr_mode_and_size(), and PLearn::write_compr_mode_and_size_ptr().

int k = 0
 

Definition at line 102 of file OldDiskVMatrix.cc.

Referenced by PLearn::AdaptGradientOptimizer::adaptLearningRateBasic(), PLearn::add(), PLearn::SDBVMatrix::appendField(), PLearn::Learner::applyAndComputeCosts(), PLearn::AsciiVMatrix::AsciiVMatrix(), PLearn::autocorrelation_function(), PLearn::SubMatVariable::bbprop(), PLearn::PlusVariable::bbprop(), PLearn::PlusScalarVariable::bbprop(), PLearn::PlusRowVariable::bbprop(), PLearn::PlusColumnVariable::bbprop(), PLearn::NegateElementsVariable::bbprop(), PLearn::MinusVariable::bbprop(), PLearn::MinusScalarVariable::bbprop(), PLearn::MinusRowVariable::bbprop(), PLearn::MinusColumnVariable::bbprop(), PLearn::DotProductVariable::bbprop(), PLearn::binary_search(), PLearn::VarElementVariable::bprop(), PLearn::TimesVariable::bprop(), PLearn::TimesScalarVariable::bprop(), PLearn::TimesRowVariable::bprop(), PLearn::TimesConstantVariable::bprop(), PLearn::TimesColumnVariable::bprop(), PLearn::SumVariable::bprop(), PLearn::SubMatVariable::bprop(), PLearn::SubMatTransposeVariable::bprop(), PLearn::SoftmaxVariable::bprop(), PLearn::RowSumVariable::bprop(), PLearn::ReshapeVariable::bprop(), PLearn::ProjectionErrorVariable::bprop(), PLearn::PlusVariable::bprop(), PLearn::PlusScalarVariable::bprop(), PLearn::PlusRowVariable::bprop(), PLearn::PlusConstantVariable::bprop(), PLearn::PlusColumnVariable::bprop(), PLearn::NegateElementsVariable::bprop(), PLearn::MinusVariable::bprop(), PLearn::MinusTransposedColumnVariable::bprop(), PLearn::MinusScalarVariable::bprop(), PLearn::MinusRowVariable::bprop(), PLearn::MinusColumnVariable::bprop(), PLearn::MatrixSoftmaxVariable::bprop(), PLearn::MatrixOneHotSquaredLoss::bprop(), PLearn::LogSoftmaxVariable::bprop(), PLearn::InvertElementsVariable::bprop(), PLearn::IfThenElseVariable::bprop(), PLearn::ExtendedVariable::bprop(), PLearn::ElementAtPositionVariable::bprop(), PLearn::DuplicateScalarVariable::bprop(), PLearn::DuplicateRowVariable::bprop(), PLearn::DuplicateColumnVariable::bprop(), PLearn::DotProductVariable::bprop(), PLearn::DivVariable::bprop(), PLearn::ConcatRowsVariable::bprop(), PLearn::ColumnSumVariable::bprop(), PLearn::bpropCholeskyDecomposition(), PLearn::bpropCholeskySolve(), PLearn::VMatrixFromDistribution::build_(), PLearn::RepeatSplitter::build_(), PLearn::NNet::build_(), PLearn::NeuralNet::build_(), PLearn::NeighborhoodSmoothnessNNet::build_(), PLearn::KNNVMatrix::build_(), PLearn::FinancePreprocVMatrix::build_(), PLearn::ExtendedVariable::build_(), PLearn::DiskVMatrix::build_(), PLearn::choleskyDecomposition(), PLearn::choleskyInvert(), PLearn::choleskySolve(), PLearn::EntropyContrast::compute_extra_grad_wrt_df_dx(), PLearn::GaussianContinuum::compute_train_and_validation_costs(), PLearn::computeConditionalMeans(), PLearn::Learner::computeCost(), PLearn::ReconstructionWeightsKernel::computeLLEMatrix(), PLearn::GaussMix::computeLogLikelihood(), PLearn::computeNearestNeighbors(), PLearn::PDistribution::computeOutput(), PLearn::computeOutputFields(), PLearn::computeRanges(), PLearn::Optimizer::computeRepartition(), PLearn::concat(), PLearn::TMat< pair< real, real > >::copyTo(), PLearn::SparseMatrix::diag(), PLearn::diagonalizedFactorsProduct(), PLearn::diagonalizedFactorsProductBprop(), PLearn::diagonalizedFactorsProductTranspose(), PLearn::diagonalizedFactorsProductTransposeBprop(), PLearn::diagonalizedFactorsTransposeProduct(), PLearn::diagonalizedFactorsTransposeProductBprop(), PLearn::diagonalizedFactorsTransposeProductTranspose(), PLearn::diagonalizedFactorsTransposeProductTransposeBprop(), PLearn::SparseMatrix::diagonalOfSquare(), PLearn::displayBasicStats(), PLearn::displayDecisionSurface(), PLearn::TemporalHorizonVMatrix::dot(), PLearn::MemoryVMatrix::dot(), PLearn::ConcatColumnsVMatrix::dot(), PLearn::CompactVMatrix::dot(), PLearn::SparseMatrix::dotColumn(), PLearn::DX_write_2D_fields(), PLearn::eigenVecOfSymmMat(), PLearn::estimatedCumProb(), PLearn::GeodesicDistanceKernel::evaluate(), PLearn::ReconstructionWeightsKernel::evaluate_i_j(), findClosestPairsOfDifferentClass(), PLearn::StatsItArray::finish(), PLearn::VarElementVariable::fprop(), PLearn::TimesVariable::fprop(), PLearn::TimesScalarVariable::fprop(), PLearn::TimesRowVariable::fprop(), PLearn::TimesConstantVariable::fprop(), PLearn::TimesColumnVariable::fprop(), PLearn::SumVariable::fprop(), PLearn::SubMatVariable::fprop(), PLearn::SubMatTransposeVariable::fprop(), PLearn::DiagonalNormalSampleVariable::fprop(), PLearn::MultinomialSampleVariable::fprop(), PLearn::UniformSampleVariable::fprop(), PLearn::RowSumVariable::fprop(), PLearn::ReshapeVariable::fprop(), PLearn::ProjectionErrorVariable::fprop(), PLearn::PlusVariable::fprop(), PLearn::PlusScalarVariable::fprop(), PLearn::PlusRowVariable::fprop(), PLearn::PlusConstantVariable::fprop(), PLearn::PlusColumnVariable::fprop(), PLearn::NllSemisphericalGaussianVariable::fprop(), PLearn::NegateElementsVariable::fprop(), PLearn::MinusVariable::fprop(), PLearn::MinusTransposedColumnVariable::fprop(), PLearn::MinusScalarVariable::fprop(), PLearn::MinusRowVariable::fprop(), PLearn::MinusColumnVariable::fprop(), PLearn::MatrixOneHotSquaredLoss::fprop(), PLearn::InvertElementsVariable::fprop(), PLearn::IfThenElseVariable::fprop(), PLearn::ExtendedVariable::fprop(), PLearn::ElementAtPositionVariable::fprop(), PLearn::DuplicateScalarVariable::fprop(), PLearn::DuplicateRowVariable::fprop(), PLearn::DuplicateColumnVariable::fprop(), PLearn::DotProductVariable::fprop(), PLearn::DivVariable::fprop(), PLearn::ConcatRowsVariable::fprop(), PLearn::ColumnSumVariable::fprop(), PLearn::ArgminVariable::fprop(), PLearn::ArgmaxVariable::fprop(), PLearn::Learner::freeTestResultsStreams(), PLearn::ConcatRowsVMatrix::fullyCheckMappings(), PLearn::GaussianDistribution::GaussianDistribution(), PLearn::generalizedEigenVecOfSymmMat(), PLearn::GaussMix::generateFromGaussian(), PLearn::BatchVMatrix::get(), PLearn::StatsCollector::getAllValuesMapping(), PLearn::VecStatsCollector::getMean(), PLearn::RemapLastColumnVMatrix::getNewRow(), PLearn::RegularGridVMatrix::getNewRow(), PLearn::PairsVMatrix::getNewRow(), PLearn::MovingAverageVMatrix::getNewRow(), PLearn::LocalNeighborsDifferencesVMatrix::getNewRow(), PLearn::FinancePreprocVMatrix::getNewRow(), PLearn::CumVMatrix::getNewRow(), PLearn::ConcatRowsVMatrix::getpositions(), PLearn::ConcatRowsSubVMatrix::getpositions(), PLearn::StatsItArray::getResults(), PLearn::RemoveRowsVMatrix::getrownum(), PLearn::TrainValidTestSplitter::getSplit(), PLearn::TrainTestSplitter::getSplit(), PLearn::TrainTestBagsSplitter::getSplit(), PLearn::ToBagSplitter::getSplit(), PLearn::TestInTrainSplitter::getSplit(), PLearn::SourceVMatrixSplitter::getSplit(), PLearn::SequentialSplitter::getSplit(), PLearn::RepeatSplitter::getSplit(), PLearn::KFoldSplitter::getSplit(), PLearn::FractionSplitter::getSplit(), PLearn::FilterSplitter::getSplit(), PLearn::ExplicitSplitter::getSplit(), PLearn::DBSplitter::getSplit(), PLearn::BootstrapSplitter::getSplit(), PLearn::VecStatsCollector::getStdDev(), PLearn::VecStatsCollector::getStdError(), PLearn::ConcatColumnsVMatrix::getString(), PLearn::ConcatColumnsVMatrix::getStringMapping(), PLearn::ConcatColumnsVMatrix::getStringVal(), PLearn::VMatrix::getSubRow(), PLearn::UniformVMatrix::getSubRow(), PLearn::NistDB::getSubRow(), PLearn::ConcatRowsVMatrix::getSubRow(), PLearn::Learner::getTestResultsStream(), PLearn::ConcatColumnsVMatrix::getValString(), PLearn::VecStatsCollector::getVariance(), PLearn::halfShuffleRows(), PLearn::incomplete_beta_continued_fraction(), PLearn::StatsItArray::init(), PLearn::GraphicalBiText::init_WSD(), PLearn::interactiveDisplayCDF(), PLearn::KFoldSplitter::KFoldSplitter(), PLearn::KS_test(), PLearn::kthOrderedElement(), PLearn::loadAscii(), PLearn::loadJPEGrgb(), PLearn::loadLetters(), PLearn::SDBWithStats::loadStats(), PLearn::loadUCISet(), PLearn::LU_decomposition(), PLearn::GaussianContinuum::make_random_walk(), PLearn::n_choose(), PLearn::Learner::openTestResultsStreams(), PLearn::SelectedIndicesCmp< T >::operator()(), PLearn::operator-(), PLearn::operator<<(), PLearn::TmpFilenames::operator=(), PLearn::operator>>(), PLearn::TTensor< T >::operator[](), PLearn::HTryAll::optimize(), PLearn::partialSortRows(), PLearn::PTester::perform(), PLearn::TextSenseSequenceVMatrix::permute(), PLearn::PLS::PLS(), PLearn::positionOfkthOrderedElement(), PLearn::GaussMix::precomputeStuff(), PLearn::GraphicalBiText::print(), PLearn::product(), PLearn::SparseMatrix::product(), PLearn::product2Acc(), PLearn::product2Transpose(), PLearn::product2TransposeAcc(), PLearn::productAcc(), PLearn::productTranspose(), PLearn::productTransposeAcc(), PLearn::VMatrix::putSubRow(), PLearn::CompactVMatrix::putSubRow(), PLearn::VMFieldStat::read(), PLearn::PStreamBuf::read(), PLearn::HTryCombinations::recursive_optimize(), PLearn::regularizeMatrix(), PLearn::GaussMix::replaceGaussian(), PLearn::StatsItArray::requiresMultiplePasses(), PLearn::VarElementVariable::rfprop(), PLearn::TimesScalarVariable::rfprop(), PLearn::TimesRowVariable::rfprop(), PLearn::TimesConstantVariable::rfprop(), PLearn::TimesColumnVariable::rfprop(), PLearn::SumVariable::rfprop(), PLearn::SubMatVariable::rfprop(), PLearn::SubMatTransposeVariable::rfprop(), PLearn::PlusScalarVariable::rfprop(), PLearn::PlusRowVariable::rfprop(), PLearn::PlusConstantVariable::rfprop(), PLearn::PlusColumnVariable::rfprop(), PLearn::NegateElementsVariable::rfprop(), PLearn::MinusScalarVariable::rfprop(), PLearn::InvertElementsVariable::rfprop(), PLearn::IfThenElseVariable::rfprop(), PLearn::ExtendedVariable::rfprop(), PLearn::ElementAtPositionVariable::rfprop(), PLearn::DotProductVariable::rfprop(), PLearn::DivVariable::rfprop(), PLearn::ConcatRowsVariable::rfprop(), PLearn::TestDependenciesCommand::run(), PLearn::SequentialValidation::run(), PLearn::Experiment::run(), PLearn::AutoRunCommand::run(), PLearn::VMatrix::saveAMAT(), PLearn::saveAscii(), PLearn::GraphicalBiText::sensetag_valid_bitext(), PLearn::GraphicalBiText::senseTagBitext(), PLearn::EntropyContrast::set_NNcontinuous_gradient(), PLearn::GeodesicDistanceKernel::setDataForKernelMatrix(), PLearn::FinancePreprocVMatrix::setVMFields(), PLearn::TTensor< T >::size(), PLearn::smooth(), PLearn::smoothCorelHisto(), PLearn::PDistribution::sortFromFlags(), PLearn::SparseMatrix::SparseMatrix(), PLearn::SpearmanRankCorrelation(), PLearn::squareProductAcc(), PLearn::squareProductTranspose(), PLearn::squareProductTransposeAcc(), PLearn::TMat< pair< real, real > >::swapRows(), PLearn::ConcatRowsVariable::symbolicBprop(), PLearn::ConcatColumnsVariable::symbolicBprop(), PLearn::GraphicalBiText::test_WSD(), PLearn::Learner::testResultsNames(), PLearn::TmpFilenames::TmpFilenames(), PLearn::SparseMatrix::toMat(), PLearn::PCA::train(), PLearn::ManifoldParzen2::train(), PLearn::EntropyContrast::train(), PLearn::ConditionalDensityNet::train(), PLearn::AdaBoost::train(), PLearn::transposeProduct(), PLearn::transposeProduct2(), PLearn::transposeProduct2Acc(), PLearn::transposeProductAcc(), PLearn::transposeTransposeProduct(), PLearn::transposeTransposeProductAcc(), PLearn::uniform_sample(), PLearn::VecStatsCollector::update(), PLearn::StatsItArray::update(), PLearn::ConditionalStatsCollector::update(), PLearn::GraphicalBiText::update_WSD_model(), PLearn::GaussMix::updateFromConditionalSorting(), PLearn::Learner::useAndCostOnTestVec(), and while().

map_rs = TVec<map<realstring> >(width_)
 

Definition at line 121 of file OldDiskVMatrix.cc.

Referenced by PLearn::VMatrix::VMatrix().

map_sr = TVec<map<stringreal> >(width_)
 

Definition at line 120 of file OldDiskVMatrix.cc.

Referenced by PLearn::loadAscii(), PLearn::loadAsciiAsVMat(), PLearn::VMatrix::removeStringMapping(), PLearn::VMatrix::setStringMapping(), PLearn::StrTableVMatrix::StrTableVMatrix(), and PLearn::VMatrix::VMatrix().

could not open file s in specified mode
 

Definition at line 95 of file OldDiskVMatrix.cc.

Referenced by PLearn::binread_compressed(), PLearn::compressedTransposeProductAcc(), PLearn::VecCompressor::compressVec(), PLearn::DoubleAccessSparseMatrix< T >::DoubleAccessSparseMatrix(), PLearn::force_mkdir(), if(), PLearn::MRUFileList::MRUFileList(), PLearn::new_read_compressed(), PLearn::new_write_mode_and_size(), PLearn::newFilename(), PLearn::ProbSparseMatrix::ProbSparseMatrix(), PLearn::PSMat::PSMat(), PLearn::read_compr_mode_and_size(), PLearn::read_compr_mode_and_size_ptr(), PLearn::VecCompressor::readCompressedVec(), PLearn::SMat< T >::SMat(), PLearn::SmoothedProbSparseMatrix::SmoothedProbSparseMatrix(), PLearn::uncompress_vec(), PLearn::VecCompressor::uncompressVec(), PLearn::VMatrixFromDistribution::VMatrixFromDistribution(), PLearn::write_compr_mode_and_size(), PLearn::write_compr_mode_and_size_ptr(), and PLearn::VecCompressor::writeCompressedVec().

namespace PLearn<%using namespace std;DiskVMatrix::DiskVMatrix(const string &the_dirname, bool readwrite):readwritemode(readwrite), freshnewfile(false),dirname(remove_trailing_slash(the_dirname)){build_();}DiskVMatrix::DiskVMatrix(const string &the_dirname, int the_width, bool write_double_as_float):RowBufferedVMatrix(0, the_width), readwritemode(true),freshnewfile(true), dirname(remove_trailing_slash(the_dirname)){build_();}void DiskVMatrix::writeRow(ostream &out, const Vec &v){VecCompressor::writeCompressedVec(out, v);}void DiskVMatrix::readRow(istream &in, const Vec &v){VecCompressor::readCompressedVec(in, v);}void DiskVMatrix::build(){inherited::build();build_();}void DiskVMatrix::build_(){if(!freshnewfile){if(!isdir(dirname))PLERROR("In DiskVMatrix constructor, directory %s could not be found", dirname.c_str());setMetaDataDir(dirname+".metadata");setMtime(mtime(append_slash(dirname)+"indexfile"));ios::openmode omode;if(readwritemode)omode=ios::in|ios::out|ios::binary;elseomode=ios::in|ios::binary;string indexfname=dirname+"/indexfile";indexf=new fstream();indexf- open)(indexfname.c_str(), omode)
 

Definition at line 93 of file OldDiskVMatrix.cc.

Referenced by PLearn::IntVecFile::IntVecFile(), PLearn::MemoryMap(), PLearn::SimpleDB< KeyType, QueryResult >::openAllFiles(), and PLearn::SimpleDB< KeyType, QueryResult >::seekToRow().

other_row_index = -1
 

Definition at line 116 of file OldDiskVMatrix.cc.

Referenced by PLearn::RowBufferedVMatrix::RowBufferedVMatrix().


Generated on Tue Aug 17 16:17:29 2004 for PLearn by doxygen 1.3.7