|
crawlserv++
[under development]
Application for crawling and analyzing textual content of websites.
|
Namespace for global container helper function templates. More...
Functions | |
| template<typename T > | |
| static void | append (T &to, const T &from, typename T::size_type startAt, typename T::size_type endAt) |
| Appends (part of) an iterable container to another container. More... | |
| template<typename T > | |
| static void | append (T &to, const T &from, typename T::size_type startAt) |
| Appends (part of) an iterable container to another iterable container. More... | |
| template<typename T > | |
| static void | append (T &to, const T &from) |
| Appends an iterable container to another iterable container. More... | |
| template<typename T > | |
| static void | moveInto (T &to, T &from) |
| Moves the elements of an iterable container into another iterable container. More... | |
| template<typename T > | |
| static void | moveInto (T &to, T &from, typename T::size_type at) |
| Moves the elements of an iterable container into another iterable container. More... | |
| template<typename T > | |
| static void | eraseFirst (T &container, typename T::size_type n) |
| Erases the first elements of an iterable container. More... | |
| template<typename T > | |
| static T::size_type | bytes (const T &container) |
| Returns the number of bytes in an iterable container. More... | |
Namespace for global container helper function templates.
|
static |
Appends (part of) an iterable container to another container.
| to | The container to append elements to. |
| from | The container to append elements from. |
| startAt | The first element in from to append. |
| endAt | The last element in from to appemd. |
Referenced by crawlservpp::Module::Analyzer::Database::checkSources(), crawlservpp::Main::Database::connect(), crawlservpp::Network::Downloader::getError(), crawlservpp::Module::Crawler::Thread::onReset(), and crawlservpp::Data::PickleDict::writeTo().
|
static |
Appends (part of) an iterable container to another iterable container.
| to | The container to append elements to. |
| from | The container to append elements from. |
| startAt | The first element in from to append. |
|
static |
Appends an iterable container to another iterable container.
| to | The container to append elements to. |
| from | The container to append elements from. |
|
static |
Returns the number of bytes in an iterable container.
size() member function, returning the number of bytes in the element Referenced by crawlservpp::Data::Corpus::clear(), crawlservpp::Network::Downloader::getError(), and crawlservpp::Helper::Utf8::length().
|
static |
Erases the first elements of an iterable container.
| container | The container to erase elements from. |
| n | The number of elements to be erased from the beginning of the container. |
Referenced by crawlservpp::Module::Analyzer::Database::checkSources().
|
static |
Moves the elements of an iterable container into another iterable container.
Appends the elements at the end of the target container.
| to | The container to move into. |
| from | The container to move from. |
Referenced by crawlservpp::Data::Corpus::clear(), crawlservpp::Query::Container::reserveForSubSets(), and crawlservpp::Data::PickleDict::writeTo().
|
static |
Moves the elements of an iterable container into another iterable container.
Inserts the elements at the given position.
| to | The container to move into. |
| from | The container to move from. |
| at | The position at which the new elements will be inserted into to. |