UndoOperation Struct Reference

A data structure that holds information needed to reverse a change to the file. More...

Collaboration diagram for UndoOperation:
Collaboration graph
[legend]

List of all members.

Public Types

enum  ActionToTake {
  replace_line,
  insert_line,
  erase_line,
  join_lines,
  insert_block,
  delete_block,
  replace_block,
  break_lines,
  nested_undo_ops,
  last_code
}
typedef std::list
< UndoOperation * > 
undo_stack

Public Member Functions

void operator delete (void *p)

Static Public Member Functions

static UndoOperationmake_new ()

Public Attributes

std::list< std::string > block_
int code_
int count_
int lineno_
int nested_first_mark_
int nested_last_mark_
undo_stacknested_undo_stack_
std::string text_

Private Member Functions

void * operator new (size_t t)
 prevent accidental abuse of the undo logic -- you are supposed to use Impl::push_undo_stack()

Detailed Description

A data structure that holds information needed to reverse a change to the file.

Definition at line 392 of file texteditor.cxx.


Member Typedef Documentation

typedef std::list<UndoOperation*> undo_stack

Definition at line 424 of file texteditor.cxx.


Member Enumeration Documentation

Enumerator:
replace_line 
insert_line 
erase_line 
join_lines 
insert_block 
delete_block 
replace_block 
break_lines 
nested_undo_ops 
last_code 

Definition at line 396 of file texteditor.cxx.


Member Function Documentation

static UndoOperation* make_new (  )  [static]

Definition at line 449 of file texteditor.cxx.

Here is the caller graph for this function:

void operator delete ( void *  p  ) 

Definition at line 442 of file texteditor.cxx.

void* operator new ( size_t  t  )  [private]

prevent accidental abuse of the undo logic -- you are supposed to use Impl::push_undo_stack()

Definition at line 433 of file texteditor.cxx.


Member Data Documentation

std::list<std::string> block_

Definition at line 421 of file texteditor.cxx.

int code_

Definition at line 414 of file texteditor.cxx.

int count_

Definition at line 415 of file texteditor.cxx.

int lineno_

Definition at line 419 of file texteditor.cxx.

Definition at line 428 of file texteditor.cxx.

Definition at line 429 of file texteditor.cxx.

Definition at line 426 of file texteditor.cxx.

std::string text_

Definition at line 417 of file texteditor.cxx.


The documentation for this struct was generated from the following file:
Generated on Wed Feb 29 22:51:59 2012 for CXXUtilities by  doxygen 1.6.3