enumlib.h
Go to the documentation of this file.
1/*
2MIT License
3
4Copyright (c) 2016 Marc Stevens
5
6Permission is hereby granted, free of charge, to any person obtaining a copy
7of this software and associated documentation files (the "Software"), to deal
8in the Software without restriction, including without limitation the rights
9to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10copies of the Software, and to permit persons to whom the Software is
11furnished to do so, subject to the following conditions:
12
13The above copyright notice and this permission notice shall be included in all
14copies or substantial portions of the Software.
15
16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22SOFTWARE.
23*/
24
25#ifndef ENUMLIB_EXTENUM_HPP
26#define ENUMLIB_EXTENUM_HPP
27
28#include "fplll_types.h"
29#include <fplll/defs.h>
31
33
34namespace enumlib
35{
36
37std::array<uint64_t, FPLLL_EXTENUM_MAX_EXTENUM_DIM> enumlib_enumerate(
38 int dim, ::fplll::enumf maxdist, std::function<::fplll::extenum_cb_set_config> cbfunc,
39 std::function<::fplll::extenum_cb_process_sol> cbsol,
40 std::function<::fplll::extenum_cb_process_subsol> cbsubsol, bool dual, bool findsubsols);
41
42} // namespace enumlib
43
45
46#endif
#define FPLLL_END_NAMESPACE
Definition: defs.h:117
#define FPLLL_BEGIN_NAMESPACE
Definition: defs.h:114
fplll_extenum_enumf std::function< extenum_cb_set_config > std::function< extenum_cb_process_sol > cbsol
Definition: enumerate_ext_api.h:90
fplll_extenum_enumf std::function< extenum_cb_set_config > std::function< extenum_cb_process_sol > std::function< extenum_cb_process_subsol > cbsubsol
Definition: enumerate_ext_api.h:90
fplll_extenum_enumf std::function< extenum_cb_set_config > std::function< extenum_cb_process_sol > std::function< extenum_cb_process_subsol > bool dual
Definition: enumerate_ext_api.h:91
fplll_extenum_enumf std::function< extenum_cb_set_config > cbfunc
Definition: enumerate_ext_api.h:89
fplll_extenum_enumf maxdist
Definition: enumerate_ext_api.h:89
fplll_extenum_enumf std::function< extenum_cb_set_config > std::function< extenum_cb_process_sol > std::function< extenum_cb_process_subsol > bool bool findsubsols
Definition: enumerate_ext_api.h:92
Definition: enumeration.h:53
std::array< uint64_t, FPLLL_EXTENUM_MAX_EXTENUM_DIM > enumlib_enumerate(int dim, fplll::enumf maxdist, std::function< fplll::extenum_cb_set_config > cbfunc, std::function< fplll::extenum_cb_process_sol > cbsol, std::function< fplll::extenum_cb_process_subsol > cbsubsol, bool dual, bool findsubsols)
FPLLL_BEGIN_NAMESPACE typedef double enumf
Definition: nr.h:42