eIncorrectNodeType:
return "eIncorrectNodeType";
73 caseeInvalidQuery:
return "eInvalidQuery";
74 caseeWrongArgumentCount:
return "eWrongArgumentCount";
75 caseeUnknownError:
return "eUnknownError";
76 caseeNullFeature:
return "eNullFeature";
100 void Init(
const string& filter);
102 boolPass(
constobjects::CMappedFeat* feat);
108 boolNeedFiltering()
const;
115 virtual boolResolveIdentifier(
const std::string& identifier,
122 double&
) {
return false; }
128 virtual boolHasIdentifier(
const std::string&
id);
Query parser exceptions class CFeatFilterQueryException.
NCBI_EXCEPTION_DEFAULT(CFeatFilterQueryException, CException)
virtual const char * GetErrCodeString(void) const override
Get error code interpreted as text.
TIdentifierDict m_IdDict
Identifier dictionary.
virtual bool ResolveIdentifier(const std::string &, double &)
virtual ~CFeatureFilter()
const objects::CMappedFeat * m_EvalFeat
Evaluated object.
Query execution environment holds the function registry and the execution context.
Base class for evaluation functions.
Query tree and associated utility methods.
class CSGQueryFunctionCompare
CSGQueryFunctionCompare()
Ctors for compare must include op_type for loading promotion rules.
CQueryFunctionBase TParent
virtual void Evaluate(CQueryParseTree::TNode &node)
class CSGQueryFunctionCompare
class CSGQueryFunctionLogic
virtual void Evaluate(CQueryParseTree::TNode &node)
class CSGQueryFunctionLogic
CQueryFunctionBase TParent
class CSGQueryFunctionValue
virtual void Evaluate(CQueryParseTree::TNode &node)
class CSGQueryFunctionValue
CQueryFunctionBase TParent
class CSGQueryNodePreprocessor
TIdentifierDict * m_Dictionary
CSGQueryNodePreprocessor(TIdentifierDict *d)
class CSGQueryNodePreprocessor implementation
ETreeTraverseCode operator()(CTreeNode< CQueryParseNode > &tr, int delta)
Int8 m_Int
Int data, if data was an integer or converted into one.
bool PromoteTo(CQueryParseNode::EType type)
promote this value to the given type.
virtual void Reset()
Reset user object (for reuse without reallocation)
bool IsDataField() const
Get to indicate if this is a field from the tree or simple string.
void SetDataType(CQueryParseNode::EType dt)
Set/get underlying data type.
CQueryParseNode::EType m_DataType
Node value data type.
bool m_IsDataField
Flag indicating if this value is from query objects.
double m_Double
Floating point data, if data was a double or converted into one.
std::string m_String
String data, if data came from a string or data fied in the tree.
bool m_Valid
Evaluation status.
CQueryParseNode::EType GetDataType() const
CQueryParseTree::TNode * m_Node
Node from parsed query tree.
bool m_Bool
Bool data, if data base a constant boolean or converted into one.
void SetDataField(bool f)
CSGQueryNodeValue(CQueryParseTree::TNode *n)
definition of a Culling tree
Base class for query node user defined object.
map< string, CQueryParseNode::EType > TIdentifierDict
TErrCode GetErrCode(void) const
Get error code.
EErrCode
Error types that an application can generate.
virtual const char * GetErrCodeString(void) const
Get error code interpreted as text.
int64_t Int8
8-byte (64-bit) signed integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
ETreeTraverseCode
Tree traverse code returned by the traverse predicate function.
#define NCBI_GUIWIDGETS_SEQGRAPHIC_EXPORT
Defines to provide correct exporting from DLLs in Windows.
const GenericPointer< typename T::ValueType > T2 value
Int4 delta(size_t dimension_, const Int4 *score_)
Query parser execution implementations.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4