P4C
The P4 Compiler
Loading...
Searching...
No Matches
wordlist.h
1#ifndef BACKENDS_P4TOOLS_MODULES_SMITH_UTIL_WORDLIST_H_
2#define BACKENDS_P4TOOLS_MODULES_SMITH_UTIL_WORDLIST_H_
3#include <array>
4#include <cstddef>
5
6#define WORDLIST_LENGTH 10000
7
8namespace P4::P4Tools::P4Smith {
9
12class Wordlist {
13 public:
14 Wordlist() = default;
15
16 ~Wordlist() = default;
17
20 static const char *getFromWordlist();
21
22 private:
24 static std::size_t counter;
25
27 static const std::array<const char *, WORDLIST_LENGTH> WORDS;
28};
29
30} // namespace P4::P4Tools::P4Smith
31
32#endif /* BACKENDS_P4TOOLS_MODULES_SMITH_UTIL_WORDLIST_H_ */
Definition wordlist.h:12
static const char * getFromWordlist()
Definition wordlist.cpp:695