Some restructring: added crossbasetypes.hpp

This commit is contained in:
2015-06-07 18:00:38 +03:00
parent a5e0efc408
commit 2f5b0233d7
3 changed files with 26 additions and 15 deletions

24
src/crossbasetypes.hpp Normal file
View File

@@ -0,0 +1,24 @@
#ifndef CROSSBASETYPES_HPP
#define CROSSBASETYPES_HPP
#include <set>
#include <vector>
#include <cstdint>
typedef std::map<wxString,wxString> DictType;
typedef std::vector< std::vector<wxChar> > GridType;
typedef std::vector< std::vector<wxChar> > CurGridType;
// Fisrt index is a word length
typedef std::vector< std::vector<wxString> > AllWordsType;
typedef std::set< uint32_t > UsedWords;
struct WordInfo {
size_t x;
size_t y;
size_t len;
size_t ind;
//true for vertical and false for horisontal
bool direct;
};
#endif // CROSSBASETYPES_HPP