/// Function to return all of the categories that contain this function const std::vector<std::string> IFunction::categories() const { Mantid::Kernel::StringTokenizer tokenizer( category(), categorySeparator(), Mantid::Kernel::StringTokenizer::TOK_TRIM | Mantid::Kernel::StringTokenizer::TOK_IGNORE_EMPTY); return tokenizer.asVector(); }
/// Function to return all of the categories that contain this function const std::vector<std::string> IFunction::categories() const { std::vector < std::string > res; Poco::StringTokenizer tokenizer(category(), categorySeparator(), Poco::StringTokenizer::TOK_TRIM | Poco::StringTokenizer::TOK_IGNORE_EMPTY); Poco::StringTokenizer::Iterator h = tokenizer.begin(); for (; h != tokenizer.end(); ++h) { res.push_back(*h); } return res; }
/// Function to return all of the categories that contain this algorithm const std::vector<std::string> AlgorithmProxy::categories() const { Poco::StringTokenizer tokenizer(category(), categorySeparator(), Poco::StringTokenizer::TOK_TRIM | Poco::StringTokenizer::TOK_IGNORE_EMPTY); std::vector<std::string> res(tokenizer.begin(), tokenizer.end()); const DeprecatedAlgorithm *depo = dynamic_cast<const DeprecatedAlgorithm *>(this); if (depo != nullptr) { res.emplace_back("Deprecated"); } return res; }
/// Function to return all of the categories that contain this algorithm const std::vector<std::string> AlgorithmProxy::categories() const { Mantid::Kernel::StringTokenizer tokenizer( category(), categorySeparator(), Mantid::Kernel::StringTokenizer::TOK_TRIM | Mantid::Kernel::StringTokenizer::TOK_IGNORE_EMPTY); auto res = tokenizer.asVector(); const DeprecatedAlgorithm *depo = dynamic_cast<const DeprecatedAlgorithm *>(this); if (depo != nullptr) { res.emplace_back("Deprecated"); } return res; }
/// Function to return all of the categories that contain this algorithm const std::vector<std::string> AlgorithmProxy::categories() const { std::vector<std::string> res; Poco::StringTokenizer tokenizer(category(), categorySeparator(), Poco::StringTokenizer::TOK_TRIM | Poco::StringTokenizer::TOK_IGNORE_EMPTY); Poco::StringTokenizer::Iterator h = tokenizer.begin(); for (; h != tokenizer.end(); ++h) { res.push_back(*h); } const DeprecatedAlgorithm *depo = dynamic_cast<const DeprecatedAlgorithm *>(this); if (depo != NULL) { res.push_back("Deprecated"); } return res; }
/// Function to return all of the categories that contain this function const std::vector<std::string> IFunction::categories() const { Poco::StringTokenizer tokenizer(category(), categorySeparator(), Poco::StringTokenizer::TOK_TRIM | Poco::StringTokenizer::TOK_IGNORE_EMPTY); return std::vector<std::string>(tokenizer.begin(), tokenizer.end()); }