mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 00:49:28 -05:00
fixed warning about badly overloaded function in rsexpr.h
This commit is contained in:
parent
985be3504e
commit
cc51298de6
@ -181,7 +181,7 @@ public:
|
|||||||
StringExpression(enum StringOperator op, const std::list<std::string> &t, bool ic): Op(op),terms(t), IgnoreCase(ic){}
|
StringExpression(enum StringOperator op, const std::list<std::string> &t, bool ic): Op(op),terms(t), IgnoreCase(ic){}
|
||||||
|
|
||||||
virtual void linearize(LinearizedExpression& e) const ;
|
virtual void linearize(LinearizedExpression& e) const ;
|
||||||
virtual std::string toStdString(const std::string& varstr) const;
|
virtual std::string toStdStringWithParam(const std::string& varstr) const;
|
||||||
protected:
|
protected:
|
||||||
bool evalStr(const std::string &str);
|
bool evalStr(const std::string &str);
|
||||||
|
|
||||||
@ -197,7 +197,7 @@ public:
|
|||||||
RelExpression(enum RelOperator op, T lv, T hv): Op(op), LowerValue(lv), HigherValue(hv) {}
|
RelExpression(enum RelOperator op, T lv, T hv): Op(op), LowerValue(lv), HigherValue(hv) {}
|
||||||
|
|
||||||
virtual void linearize(LinearizedExpression& e) const ;
|
virtual void linearize(LinearizedExpression& e) const ;
|
||||||
virtual std::string toStdString(const std::string& typestr) const;
|
virtual std::string toStdStringWithParam(const std::string& typestr) const;
|
||||||
protected:
|
protected:
|
||||||
bool evalRel(T val);
|
bool evalRel(T val);
|
||||||
|
|
||||||
@ -229,7 +229,7 @@ bool RelExpression<T>::evalRel(T val) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
std::string RelExpression<T>::toStdString(const std::string& typestr) const
|
std::string RelExpression<T>::toStdStringWithParam(const std::string& typestr) const
|
||||||
{
|
{
|
||||||
std::string LowerValueStr = RsUtil::NumberToString(LowerValue) ;
|
std::string LowerValueStr = RsUtil::NumberToString(LowerValue) ;
|
||||||
|
|
||||||
@ -275,7 +275,7 @@ public:
|
|||||||
StringExpression(op,t,ic) {}
|
StringExpression(op,t,ic) {}
|
||||||
bool eval(const ExpFileEntry& file);
|
bool eval(const ExpFileEntry& file);
|
||||||
|
|
||||||
virtual std::string toStdString() const { return StringExpression::toStdString("NAME"); }
|
virtual std::string toStdString() const { return StringExpression::toStdStringWithParam("NAME"); }
|
||||||
|
|
||||||
virtual void linearize(LinearizedExpression& e) const
|
virtual void linearize(LinearizedExpression& e) const
|
||||||
{
|
{
|
||||||
@ -290,7 +290,7 @@ public:
|
|||||||
StringExpression(op,t,ic) {}
|
StringExpression(op,t,ic) {}
|
||||||
bool eval(const ExpFileEntry& file);
|
bool eval(const ExpFileEntry& file);
|
||||||
|
|
||||||
virtual std::string toStdString()const { return StringExpression::toStdString("PATH"); }
|
virtual std::string toStdString()const { return StringExpression::toStdStringWithParam("PATH"); }
|
||||||
|
|
||||||
virtual void linearize(LinearizedExpression& e) const
|
virtual void linearize(LinearizedExpression& e) const
|
||||||
{
|
{
|
||||||
@ -305,7 +305,7 @@ public:
|
|||||||
StringExpression(op,t,ic) {}
|
StringExpression(op,t,ic) {}
|
||||||
bool eval(const ExpFileEntry& file);
|
bool eval(const ExpFileEntry& file);
|
||||||
|
|
||||||
virtual std::string toStdString()const { return StringExpression::toStdString("EXTENSION"); }
|
virtual std::string toStdString()const { return StringExpression::toStdStringWithParam("EXTENSION"); }
|
||||||
|
|
||||||
virtual void linearize(LinearizedExpression& e) const
|
virtual void linearize(LinearizedExpression& e) const
|
||||||
{
|
{
|
||||||
@ -320,7 +320,7 @@ public:
|
|||||||
StringExpression(op,t, true) {}
|
StringExpression(op,t, true) {}
|
||||||
bool eval(const ExpFileEntry& file);
|
bool eval(const ExpFileEntry& file);
|
||||||
|
|
||||||
virtual std::string toStdString() const { return StringExpression::toStdString("HASH"); }
|
virtual std::string toStdString() const { return StringExpression::toStdStringWithParam("HASH"); }
|
||||||
|
|
||||||
virtual void linearize(LinearizedExpression& e) const
|
virtual void linearize(LinearizedExpression& e) const
|
||||||
{
|
{
|
||||||
@ -342,7 +342,7 @@ public:
|
|||||||
RelExpression<int>(op,lv,hv) {}
|
RelExpression<int>(op,lv,hv) {}
|
||||||
bool eval(const ExpFileEntry& file);
|
bool eval(const ExpFileEntry& file);
|
||||||
|
|
||||||
virtual std::string toStdString() const { return RelExpression<int>::toStdString("DATE"); }
|
virtual std::string toStdString() const { return RelExpression<int>::toStdStringWithParam("DATE"); }
|
||||||
|
|
||||||
virtual void linearize(LinearizedExpression& e) const
|
virtual void linearize(LinearizedExpression& e) const
|
||||||
{
|
{
|
||||||
@ -359,7 +359,7 @@ public:
|
|||||||
RelExpression<int>(op,lv,hv) {}
|
RelExpression<int>(op,lv,hv) {}
|
||||||
bool eval(const ExpFileEntry& file);
|
bool eval(const ExpFileEntry& file);
|
||||||
|
|
||||||
virtual std::string toStdString() const { return RelExpression<int>::toStdString("SIZE"); }
|
virtual std::string toStdString() const { return RelExpression<int>::toStdStringWithParam("SIZE"); }
|
||||||
|
|
||||||
virtual void linearize(LinearizedExpression& e) const
|
virtual void linearize(LinearizedExpression& e) const
|
||||||
{
|
{
|
||||||
@ -376,7 +376,7 @@ public:
|
|||||||
RelExpression<int>(op,lv,hv) {}
|
RelExpression<int>(op,lv,hv) {}
|
||||||
bool eval(const ExpFileEntry& file);
|
bool eval(const ExpFileEntry& file);
|
||||||
|
|
||||||
virtual std::string toStdString() const { return RelExpression<int>::toStdString("SIZE"); }
|
virtual std::string toStdString() const { return RelExpression<int>::toStdStringWithParam("SIZE"); }
|
||||||
|
|
||||||
virtual void linearize(LinearizedExpression& e) const
|
virtual void linearize(LinearizedExpression& e) const
|
||||||
{
|
{
|
||||||
@ -392,7 +392,7 @@ public:
|
|||||||
PopExpression(const LinearizedExpression& e) ;
|
PopExpression(const LinearizedExpression& e) ;
|
||||||
bool eval(const ExpFileEntry& file);
|
bool eval(const ExpFileEntry& file);
|
||||||
|
|
||||||
virtual std::string toStdString() const { return RelExpression<int>::toStdString("POPULARITY"); }
|
virtual std::string toStdString() const { return RelExpression<int>::toStdStringWithParam("POPULARITY"); }
|
||||||
|
|
||||||
virtual void linearize(LinearizedExpression& e) const
|
virtual void linearize(LinearizedExpression& e) const
|
||||||
{
|
{
|
||||||
|
@ -128,7 +128,7 @@ static bool StrContains( const std::string & str1, const std::string & str2,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
std::string StringExpression::toStdString(const std::string& varstr) const
|
std::string StringExpression::toStdStringWithParam(const std::string& varstr) const
|
||||||
{
|
{
|
||||||
std::string strlist ;
|
std::string strlist ;
|
||||||
for (auto iter = terms.begin(); iter != terms.end(); ++iter )
|
for (auto iter = terms.begin(); iter != terms.end(); ++iter )
|
||||||
|
Loading…
Reference in New Issue
Block a user