Overpass API regression suite coverage (Nova Scotia) / overpass_api/statements/unary_functions.cc
overpass_api/statements/unary_functions.cc
122 of 174 instrumented lines run by the suite (70.1%) at 8edf11b0419c (this file on GitHub).
runnever runcolumns: line, executions, queries (click for the queries that run the line)
1/** Copyright 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 Roland Olbricht et al.2 *3 * This file is part of Overpass_API.4 *5 * Overpass_API is free software: you can redistribute it and/or modify6 * it under the terms of the GNU Affero General Public License as7 * published by the Free Software Foundation, either version 3 of the8 * License, or (at your option) any later version.9 *10 * Overpass_API is distributed in the hope that it will be useful,11 * but WITHOUT ANY WARRANTY; without even the implied warranty of12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13 * GNU General Public License for more details.14 *15 * You should have received a copy of the GNU Affero General Public License16 * along with Overpass_API. If not, see <http://www.gnu.org/licenses/>.17 */19#include "unary_functions.h"221804134 qEvaluator_Unary_Function::Evaluator_Unary_Function(int line_number_) : Evaluator(line_number_), rhs(0) {}25void Evaluator_Unary_Function::add_statement(Statement* statement, std::string text)37Eval_Task* Evaluator_Unary_Function::get_string_task(Prepare_Task_Context& context, const std::string* key)44Requested_Context Evaluator_Unary_Function::request_context() const52std::string Unary_Eval_Task::eval(const std::string* key) const58std::string Unary_Eval_Task::eval(const Element_With_Context< Node_Skeleton >& data, const std::string* key) const64std::string Unary_Eval_Task::eval(const Element_With_Context< Attic< Node_Skeleton > >& data, const std::string* key) const70std::string Unary_Eval_Task::eval(const Element_With_Context< Way_Skeleton >& data, const std::string* key) const76std::string Unary_Eval_Task::eval(const Element_With_Context< Attic< Way_Skeleton > >& data, const std::string* key) const82std::string Unary_Eval_Task::eval(const Element_With_Context< Relation_Skeleton >& data, const std::string* key) const88std::string Unary_Eval_Task::eval(const Element_With_Context< Attic< Relation_Skeleton > >& data, const std::string* key) const94std::string Unary_Eval_Task::eval(const Element_With_Context< Area_Skeleton >& data, const std::string* key) const100std::string Unary_Eval_Task::eval(const Element_With_Context< Derived_Skeleton >& data, const std::string* key) const106std::string Unary_Eval_Task::eval(uint pos, const Element_With_Context< Way_Skeleton >& data, const std::string* key) const112std::string Unary_Eval_Task::eval(uint pos, const Element_With_Context< Attic< Way_Skeleton > >& data, const std::string* key) const118std::string Unary_Eval_Task::eval(uint pos, const Element_With_Context< Relation_Skeleton >& data, const std::string* key) const124std::string Unary_Eval_Task::eval(uint pos, const Element_With_Context< Attic< Relation_Skeleton > >& data, const std::string* key) const130//-----------------------------------------------------------------------------133Evaluator_Geometry_Unary_Function::Evaluator_Geometry_Unary_Function(int line_number_)137void Evaluator_Geometry_Unary_Function::add_statement(Statement* statement, std::string text)149Eval_Geometry_Task* Evaluator_Geometry_Unary_Function::get_geometry_task(Prepare_Task_Context& context)156Requested_Context Evaluator_Geometry_Unary_Function::request_context() const164Opaque_Geometry* Unary_Geometry_Eval_Task::eval() const170Opaque_Geometry* Unary_Geometry_Eval_Task::eval(const Element_With_Context< Node_Skeleton >& data) const176Opaque_Geometry* Unary_Geometry_Eval_Task::eval(const Element_With_Context< Attic< Node_Skeleton > >& data) const182Opaque_Geometry* Unary_Geometry_Eval_Task::eval(const Element_With_Context< Way_Skeleton >& data) const188Opaque_Geometry* Unary_Geometry_Eval_Task::eval(const Element_With_Context< Attic< Way_Skeleton > >& data) const194Opaque_Geometry* Unary_Geometry_Eval_Task::eval(const Element_With_Context< Relation_Skeleton >& data) const200Opaque_Geometry* Unary_Geometry_Eval_Task::eval(const Element_With_Context< Attic< Relation_Skeleton > >& data) const206Opaque_Geometry* Unary_Geometry_Eval_Task::eval(const Element_With_Context< Area_Skeleton >& data) const212Opaque_Geometry* Unary_Geometry_Eval_Task::eval(const Element_With_Context< Derived_Skeleton >& data) const218//-----------------------------------------------------------------------------22168859 qEvaluator_Binary_Function::Evaluator_Binary_Function(int line_number_) : Evaluator(line_number_),225void Evaluator_Binary_Function::add_statement(Statement* statement, std::string text)239Eval_Task* Evaluator_Binary_Function::get_string_task(Prepare_Task_Context& context, const std::string* key)247Requested_Context Evaluator_Binary_Function::request_context() const264std::string Binary_Func_Eval_Task::eval(const std::string* key) const2661211 q return evaluator->process(first ? first->eval(key) : "", second ? second->eval(key) : "");270std::string Binary_Func_Eval_Task::eval(const Element_With_Context< Node_Skeleton >& data, const std::string* key) const272278468213 q return evaluator->process(first ? first->eval(data, key) : "", second ? second->eval(data, key) : "");276std::string Binary_Func_Eval_Task::eval(const Element_With_Context< Attic< Node_Skeleton > >& data, const std::string* key) const27831453 q return evaluator->process(first ? first->eval(data, key) : "", second ? second->eval(data, key) : "");282std::string Binary_Func_Eval_Task::eval(const Element_With_Context< Way_Skeleton >& data, const std::string* key) const2842645022 q return evaluator->process(first ? first->eval(data, key) : "", second ? second->eval(data, key) : "");288std::string Binary_Func_Eval_Task::eval(const Element_With_Context< Attic< Way_Skeleton > >& data, const std::string* key) const2907242 q return evaluator->process(first ? first->eval(data, key) : "", second ? second->eval(data, key) : "");294std::string Binary_Func_Eval_Task::eval(const Element_With_Context< Relation_Skeleton >& data, const std::string* key) const2964403213 q return evaluator->process(first ? first->eval(data, key) : "", second ? second->eval(data, key) : "");300std::string Binary_Func_Eval_Task::eval(const Element_With_Context< Attic< Relation_Skeleton > >& data, const std::string* key) const30296373 q return evaluator->process(first ? first->eval(data, key) : "", second ? second->eval(data, key) : "");306std::string Binary_Func_Eval_Task::eval(const Element_With_Context< Area_Skeleton >& data, const std::string* key) const308201 q return evaluator->process(first ? first->eval(data, key) : "", second ? second->eval(data, key) : "");312std::string Binary_Func_Eval_Task::eval(const Element_With_Context< Derived_Skeleton >& data, const std::string* key) const314234 q return evaluator->process(first ? first->eval(data, key) : "", second ? second->eval(data, key) : "");318std::string Binary_Func_Eval_Task::eval(uint pos, const Element_With_Context< Way_Skeleton >& data, const std::string* key) const3200 return evaluator->process(first ? first->eval(pos, data, key) : "", second ? second->eval(pos, data, key) : "");324std::string Binary_Func_Eval_Task::eval(uint pos, const Element_With_Context< Attic< Way_Skeleton > >& data, const std::string* key) const3260 return evaluator->process(first ? first->eval(pos, data, key) : "", second ? second->eval(pos, data, key) : "");330std::string Binary_Func_Eval_Task::eval(uint pos, const Element_With_Context< Relation_Skeleton >& data, const std::string* key) const3320 return evaluator->process(first ? first->eval(pos, data, key) : "", second ? second->eval(pos, data, key) : "");336std::string Binary_Func_Eval_Task::eval(uint pos, const Element_With_Context< Attic< Relation_Skeleton > >& data, const std::string* key) const3380 return evaluator->process(first ? first->eval(pos, data, key) : "", second ? second->eval(pos, data, key) : "");