|
crawlserv++
[under development]
Application for crawling and analyzing textual content of websites.
|
Namespace for global memory helper functions. More...
Functions | |
| template<class T > | |
| static void | free (T &target) |
| Frees memory by swapping. More... | |
| template<class T > | |
| static void | freeIf (bool isFree, T &target) |
| Frees memory early by swapping, if necessary. More... | |
Namespace for global memory helper functions.
|
static |
Frees memory by swapping.
| target | The object which is to be freed by swapping. |
Referenced by crawlservpp::Module::Analyzer::Database::checkSources(), crawlservpp::Module::Analyzer::Thread::cleanUpCorpora(), crawlservpp::Module::Analyzer::Thread::cleanUpQueries(), crawlservpp::Data::Lemmatizer::clear(), crawlservpp::Data::Corpus::clear(), crawlservpp::Data::TopicModel::clear(), crawlservpp::Query::Container::clearQueries(), crawlservpp::Query::Container::clearQueryTarget(), crawlservpp::Data::Corpus::filterArticles(), crawlservpp::Struct::TextMapEntry::free(), freeIf(), crawlservpp::Main::WebServer::getIP(), crawlservpp::Module::Database::log(), crawlservpp::Query::Container::nextSubSet(), crawlservpp::Module::Analyzer::Algo::CorpusGenerator::onAlgoInit(), crawlservpp::Data::TokenRemover::remove(), crawlservpp::Query::Container::reserveForSubSets(), crawlservpp::Module::Analyzer::Algo::TermsOverTime::resetAlgo(), crawlservpp::Module::Analyzer::Algo::ExtractIds::resetAlgo(), crawlservpp::Module::Analyzer::Algo::CorpusGenerator::resetAlgo(), crawlservpp::Module::Analyzer::Algo::WordsOverTime::resetAlgo(), crawlservpp::Module::Analyzer::Algo::Assoc::resetAlgo(), crawlservpp::Module::Analyzer::Algo::AssocOverTime::resetAlgo(), crawlservpp::Module::Analyzer::Algo::AllTokens::resetAlgo(), crawlservpp::Module::Analyzer::Algo::SentimentOverTime::resetAlgo(), crawlservpp::Module::Analyzer::Algo::TopicModelling::resetAlgo(), and crawlservpp::Main::Server::tick().
|
static |
Frees memory early by swapping, if necessary.
| isFree | Specifies whether to free memory. |
| target | The object which is to be freed by swapping. |
References free().
Referenced by crawlservpp::Module::Analyzer::Database::checkSources(), crawlservpp::Data::Corpus::clear(), crawlservpp::Data::Corpus::combineContinuous(), crawlservpp::Data::Corpus::combineTokenized(), crawlservpp::Data::Corpus::create(), crawlservpp::Parsing::XML::getContent(), and crawlservpp::Query::Container::nextSubSet().