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

View File

@@ -6,21 +6,7 @@
#include <wx/wx.h>
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;
};
#include "crossbasetypes.hpp"
const wxChar CELL_CLEAR = wxT('+');

View File

@@ -31,6 +31,7 @@
</VirtualDirectory>
<VirtualDirectory Name="Shared">
<File Name="../src/crossgen.hpp"/>
<File Name="../src/crossbasetypes.hpp"/>
</VirtualDirectory>
<Settings Type="Executable">
<GlobalSettings>