Lumiera
0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
query-text.cpp
Go to the documentation of this file.
1
/*
2
QueryText - syntactical standard representation for queries
3
4
Copyright (C)
5
2012, Hermann Vosseler <Ichthyostega@web.de>
6
7
**Lumiera** is free software; you can redistribute it and/or modify it
8
under the terms of the GNU General Public License as published by the
9
Free Software Foundation; either version 2 of the License, or (at your
10
option) any later version. See the file COPYING for further details.
11
12
* *****************************************************************/
13
14
20
#include "
lib/query-text.hpp
"
21
22
#include <boost/functional/hash.hpp>
23
#include <string>
24
25
using
std::string;
26
27
28
namespace
lib
{
29
30
36
string
37
QueryText::normalise
(
string
const
& rawDefinition)
38
{
39
return
rawDefinition;
40
}
41
42
51
HashVal
52
hash_value
(
QueryText
const
& entry)
53
{
54
return
boost::hash_value (entry.definition_);
55
}
56
57
58
}
// namespace lib
lib::QueryText
Syntactical query representation.
Definition
query-text.hpp:62
lib::QueryText::normalise
string normalise(string const &rawDefinition)
Parse, verify and normalise the raw query definition.
Definition
query-text.cpp:37
lib
Implementation namespace for support and library code.
Definition
common-services.cpp:55
lib::HashVal
size_t HashVal
a STL compatible hash value
Definition
hash-value.h:52
lib::hash_value
HashVal hash_value(QueryText const &entry)
support using queries in hashtables.
Definition
query-text.cpp:52
query-text.hpp
A generic syntactical representation for all kinds of queries.
lib
query-text.cpp
Generated on Fri Nov 7 2025 for Lumiera by
1.9.8