strus  0.17
metaDataRestrictionInstanceInterface.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Patrick P. Frey
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
9 #ifndef _STRUS_METADATA_RESTRICTION_INSTANCE_INTERFACE_HPP_INCLUDED
10 #define _STRUS_METADATA_RESTRICTION_INSTANCE_INTERFACE_HPP_INCLUDED
11 #include "strus/numericVariant.hpp"
12 #include "strus/index.hpp"
13 #include <string>
14 
15 namespace strus {
16 
19 {
20 public:
23 
28  virtual bool match( const Index& docno) const=0;
29 };
30 
31 } //namespace
32 #endif
33 
int32_t Index
Number type generally used for locally counted indices.
Definition: index.hpp:29
Class for building up a metadata restriction.
Definition: metaDataRestrictionInstanceInterface.hpp:18
Numeric types used for local and global indices.
virtual ~MetaDataRestrictionInstanceInterface()
Destructor.
Definition: metaDataRestrictionInstanceInterface.hpp:22
virtual bool match(const Index &docno) const =0
Evaluate if a document matches the restriction condition.