KiCad PCB EDA Suite
commit.h File Reference
#include <set>
#include <vector>
#include <class_undoredo_container.h>

Go to the source code of this file.

Classes

class  COMMIT
 Class COMMIT. More...
 
struct  COMMIT::COMMIT_LINE
 

Enumerations

enum  CHANGE_TYPE {
  CHT_ADD = 1, CHT_REMOVE = 2, CHT_MODIFY = 4, CHT_TYPE = CHT_ADD | CHT_REMOVE | CHT_MODIFY,
  CHT_DONE = 8, CHT_FLAGS = CHT_DONE
}
 

Types of changes

More...
 

Functions

template<typename T >
CHANGE_TYPE operator| (CHANGE_TYPE aTypeA, T aTypeB)
 
template<typename T >
CHANGE_TYPE operator& (CHANGE_TYPE aTypeA, T aTypeB)
 

Enumeration Type Documentation

Types of changes

Enumerator
CHT_ADD 
CHT_REMOVE 
CHT_MODIFY 
CHT_TYPE 
CHT_DONE 

Flag to indicate the change is already applied, just notify observers (not compatible with CHT_MODIFY)

CHT_FLAGS 

Definition at line 37 of file commit.h.

37  {
38  CHT_ADD = 1,
39  CHT_REMOVE = 2,
40  CHT_MODIFY = 4,
42 
45  CHT_DONE = 8,
46  CHT_FLAGS = CHT_DONE
47 };
Definition: commit.h:38
Flag to indicate the change is already applied, just notify observers (not compatible with CHT_MODIFY...
Definition: commit.h:45

Function Documentation

template<typename T >
CHANGE_TYPE operator& ( CHANGE_TYPE  aTypeA,
aTypeB 
)

Definition at line 56 of file commit.h.

57 {
58  return CHANGE_TYPE( (int) aTypeA & (int) aTypeB );
59 }
CHANGE_TYPE
Types of changes
Definition: commit.h:37
template<typename T >
CHANGE_TYPE operator| ( CHANGE_TYPE  aTypeA,
aTypeB 
)

Definition at line 50 of file commit.h.

51 {
52  return CHANGE_TYPE( (int) aTypeA | (int) aTypeB );
53 }
CHANGE_TYPE
Types of changes
Definition: commit.h:37