MCPcopy Create free account
hub / github.com/KDE/labplot / datasetCount

Method datasetCount

src/frontend/DatasetModel.cpp:152–160  ·  view source on GitHub ↗

* @brief Returns the number of datasets belonging to the given collection */

Source from the content-addressed store, hash-verified

150 * @brief Returns the number of datasets belonging to the given collection
151 */
152int DatasetModel::datasetCount(const QString& collection) {
153 int count = 0;
154 for (const QString& category : categories(collection)) {
155 for (const QString& subcategory : subcategories(collection, category)) {
156 count += datasets(collection, category, subcategory).size();
157 }
158 }
159 return count;
160}
161
162/**
163 * @brief Returns the number of datasets belonging to the given collection and category

Callers 2

loadCategoriesMethod · 0.45
setCollectionMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected