|
Last change
on this file was
8607,
checked in by westram, 14 years ago
|
|
merge from e4fix [8135] [8136] [8137] [8138] [8139] [8140] [8141] [8142] [8143] [8144] [8222]
(this revives the reverted patches [8129] [8130] [8131] [8132]; see [8133])
- fixes
- some free/delete mismatches
- wrong definition of ORF objects (Level was no bit value)
- amino consensus (failed for columns only containing 'C')
- rename
- AA_sequence_term → orf_term
- ED4_sequence_terminal_basic → ED4_abstract_sequence_terminal
- cleaned up hierarchy dumps
- tweaked is_terminal()/to_terminal()
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
|
File size:
2.1 KB
|
| Line | |
|---|
| 1 | // =============================================================== // |
|---|
| 2 | // // |
|---|
| 3 | // File : gb_undo.h // |
|---|
| 4 | // Purpose : // |
|---|
| 5 | // // |
|---|
| 6 | // Institute of Microbiology (Technical University Munich) // |
|---|
| 7 | // http://www.arb-home.de/ // |
|---|
| 8 | // // |
|---|
| 9 | // =============================================================== // |
|---|
| 10 | |
|---|
| 11 | #ifndef GB_UNDO_H |
|---|
| 12 | #define GB_UNDO_H |
|---|
| 13 | |
|---|
| 14 | #ifndef GB_LOCAL_H |
|---|
| 15 | #include "gb_local.h" |
|---|
| 16 | #endif |
|---|
| 17 | |
|---|
| 18 | struct gb_transaction_save; |
|---|
| 19 | struct g_b_undo_list; |
|---|
| 20 | |
|---|
| 21 | enum g_b_undo_entry_type { |
|---|
| 22 | GB_UNDO_ENTRY_TYPE_DELETED, |
|---|
| 23 | GB_UNDO_ENTRY_TYPE_CREATED, |
|---|
| 24 | GB_UNDO_ENTRY_TYPE_MODIFY, |
|---|
| 25 | GB_UNDO_ENTRY_TYPE_MODIFY_ARRAY |
|---|
| 26 | }; |
|---|
| 27 | |
|---|
| 28 | struct g_b_undo_gbd { |
|---|
| 29 | GBQUARK key; |
|---|
| 30 | GBDATA *gbd; |
|---|
| 31 | }; |
|---|
| 32 | |
|---|
| 33 | struct g_b_undo_entry { |
|---|
| 34 | g_b_undo_list *father; |
|---|
| 35 | g_b_undo_entry *next; |
|---|
| 36 | short type; |
|---|
| 37 | short flag; |
|---|
| 38 | |
|---|
| 39 | GBDATA *source; // The original(changed) element or father(of deleted) |
|---|
| 40 | int gbm_index; |
|---|
| 41 | long sizeof_this; |
|---|
| 42 | union { |
|---|
| 43 | gb_transaction_save *ts; |
|---|
| 44 | g_b_undo_gbd gs; |
|---|
| 45 | } d; |
|---|
| 46 | }; |
|---|
| 47 | |
|---|
| 48 | struct g_b_undo_header { |
|---|
| 49 | g_b_undo_list *stack; |
|---|
| 50 | long sizeof_this; // the size of all existing undos |
|---|
| 51 | long nstack; // number of available undos |
|---|
| 52 | }; |
|---|
| 53 | |
|---|
| 54 | struct g_b_undo_list { |
|---|
| 55 | g_b_undo_header *father; |
|---|
| 56 | g_b_undo_entry *entries; |
|---|
| 57 | g_b_undo_list *next; |
|---|
| 58 | long time_of_day; // the begin of the transaction |
|---|
| 59 | long sizeof_this; // the size of one undo |
|---|
| 60 | }; |
|---|
| 61 | |
|---|
| 62 | struct g_b_undo_mgr { |
|---|
| 63 | long max_size_of_all_undos; |
|---|
| 64 | g_b_undo_list *valid_u; |
|---|
| 65 | g_b_undo_header *u; // undo |
|---|
| 66 | g_b_undo_header *r; // redo |
|---|
| 67 | }; |
|---|
| 68 | |
|---|
| 69 | #else |
|---|
| 70 | #error gb_undo.h included twice |
|---|
| 71 | #endif // GB_UNDO_H |
|---|
Note: See
TracBrowser
for help on using the repository browser.