libept
|
#include <popconindexer.h>
Public Member Functions | |
time_t | sourceTimestamp () const |
bool | needsRebuild () const |
bool | rebuild (const std::string &scofname, const std::string &idxfname) |
bool | rebuildIfNeeded () |
bool | getUpToDatePopcon (std::string &scofname, std::string &idxfname) |
bool | userIndexIsRedundant () const |
bool | deleteRedundantUserIndex () |
void | rescan () |
PopconIndexer () | |
Static Public Member Functions | |
static bool | obtainWorkingPopcon (std::string &scofname, std::string &idxfname) |
Public Attributes | |
SourceDir | mainSource |
SourceDir | userSource |
time_t | ts_main_src |
time_t | ts_user_src |
time_t | ts_main_sco |
time_t | ts_user_sco |
time_t | ts_main_idx |
time_t | ts_user_idx |
ept::popcon::PopconIndexer::PopconIndexer | ( | ) |
References rescan().
bool ept::popcon::PopconIndexer::deleteRedundantUserIndex | ( | ) |
bool ept::popcon::PopconIndexer::getUpToDatePopcon | ( | std::string & | scofname, |
std::string & | idxfname | ||
) |
bool ept::popcon::PopconIndexer::needsRebuild | ( | ) | const |
References sourceTimestamp(), ts_main_idx, ts_main_sco, ts_user_idx, ts_user_sco, and ts_user_src.
Referenced by rebuildIfNeeded().
bool ept::popcon::PopconIndexer::obtainWorkingPopcon | ( | std::string & | scofname, |
std::string & | idxfname | ||
) | [static] |
References deleteRedundantUserIndex(), getUpToDatePopcon(), and rebuildIfNeeded().
bool ept::popcon::PopconIndexer::rebuild | ( | const std::string & | scofname, |
const std::string & | idxfname | ||
) |
References mainSource, ept::popcon::SourceDir::readScores(), ept::popcon::InfoStruct::submissions, and userSource.
Referenced by rebuildIfNeeded().
bool ept::popcon::PopconIndexer::rebuildIfNeeded | ( | ) |
References ept::popcon::Path::access(), needsRebuild(), ept::popcon::Path::popconIndexDir(), rebuild(), ept::popcon::Path::scores(), ept::popcon::Path::scoresIndex(), ept::axi::timestamp(), ts_main_idx, ts_main_sco, ts_user_idx, ts_user_sco, ept::popcon::Path::userScores(), and ept::popcon::Path::userScoresIndex().
Referenced by obtainWorkingPopcon().
void ept::popcon::PopconIndexer::rescan | ( | ) |
References mainSource, ept::popcon::Path::scores(), ept::popcon::Path::scoresIndex(), ept::axi::timestamp(), ept::popcon::SourceDir::timestamp(), ts_main_idx, ts_main_sco, ts_main_src, ts_user_idx, ts_user_sco, ts_user_src, ept::popcon::Path::userScores(), ept::popcon::Path::userScoresIndex(), and userSource.
Referenced by PopconIndexer().
time_t ept::popcon::PopconIndexer::sourceTimestamp | ( | ) | const [inline] |
References ts_main_src, and ts_user_src.
Referenced by getUpToDatePopcon(), needsRebuild(), and userIndexIsRedundant().
bool ept::popcon::PopconIndexer::userIndexIsRedundant | ( | ) | const |
References sourceTimestamp(), ts_main_idx, and ts_user_idx.
Referenced by deleteRedundantUserIndex().
Referenced by getUpToDatePopcon(), needsRebuild(), rebuildIfNeeded(), rescan(), and userIndexIsRedundant().
Referenced by getUpToDatePopcon(), needsRebuild(), rebuildIfNeeded(), and rescan().
Referenced by rescan(), and sourceTimestamp().
Referenced by deleteRedundantUserIndex(), getUpToDatePopcon(), needsRebuild(), rebuildIfNeeded(), rescan(), and userIndexIsRedundant().
Referenced by deleteRedundantUserIndex(), getUpToDatePopcon(), needsRebuild(), rebuildIfNeeded(), and rescan().
Referenced by getUpToDatePopcon(), needsRebuild(), rescan(), and sourceTimestamp().