GENIE
validation.cc
Go to the documentation of this file.
2 
3 #include "validation.h"
4 
5 using namespace genie;
6 
8 {
9  if (k <= 0)
10  throw exception::InvalidConfigurationException("K should be larger than 0.");
11 }
12 
14 {
15  if (num_of_queries <= 0)
16  throw exception::InvalidConfigurationException("Number of query should be larger than 0.");
17 }
18 
20 {
21  if (query_range <= 0)
22  throw exception::InvalidConfigurationException("Query range should be larger than 0.");
23 }
This is the top-level namespace of the project.
void ValidateNumOfQueries(uint32_t num_of_queries)
Definition: validation.cc:13
void ValidateQueryRange(uint32_t query_range)
Definition: validation.cc:19