-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also added some more words to technical report, but its not finished.
- Loading branch information
navrkald
committed
May 18, 2014
1 parent
7b26cc7
commit 282cd19
Showing
10 changed files
with
208 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,38 @@ | ||
#include "charpos.h" | ||
#include <QDataStream> | ||
|
||
bool operator==(const CharPos& c1, const CharPos& c2) | ||
{ | ||
return c1.charter == c2.charter && c1.pos == c2.pos && c1.terminal == c2.terminal && | ||
c1.bold == c2.bold; | ||
} | ||
|
||
|
||
QDataStream &operator<<(QDataStream &out, const CharPos& ch) | ||
{ | ||
out << ch.charter << ch.pos << ch.terminal << ch.bold; | ||
return out; | ||
} | ||
|
||
|
||
QDataStream &operator>>(QDataStream &in, CharPos& ch) | ||
{ | ||
qint32 tmp_pos; | ||
in >> ch.charter; | ||
in >> tmp_pos; | ||
in >> ch.terminal; | ||
in >> ch.bold; | ||
ch.pos = (int)tmp_pos; | ||
return in; | ||
} | ||
|
||
|
||
//CharPos operator=(const CharPos c) | ||
//{ | ||
// CharPos r; | ||
// r.bold = c.bold; | ||
// r.charter = c.charter; | ||
// r.pos = c.pos; | ||
// r.terminal = c.terminal; | ||
// return r; | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.