KiCad PCB EDA Suite
commit.h File Reference
#include <set>
#include <vector>
#include <wx/string.h>
#include <undo_redo_container.h>

Go to the source code of this file.

Classes

class  COMMIT
 Represent a set of changes (additions, deletions or modifications) of a data model (e.g. 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

◆ CHANGE_TYPE

Types of changes.

Enumerator
CHT_ADD 
CHT_REMOVE 
CHT_MODIFY 
CHT_TYPE 

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

CHT_DONE 
CHT_FLAGS 

Definition at line 39 of file commit.h.

39 {
40 CHT_ADD = 1,
41 CHT_REMOVE = 2,
42 CHT_MODIFY = 4,
44
47 CHT_DONE = 8,
49};
@ CHT_MODIFY
Definition: commit.h:42
@ CHT_REMOVE
Definition: commit.h:41
@ CHT_DONE
Definition: commit.h:47
@ CHT_TYPE
Flag to indicate the change is already applied, just notify observers (not compatible with CHT_MODIFY...
Definition: commit.h:43
@ CHT_ADD
Definition: commit.h:40
@ CHT_FLAGS
Definition: commit.h:48

Function Documentation

◆ operator&()

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

Definition at line 58 of file commit.h.

59{
60 return CHANGE_TYPE( (int) aTypeA & (int) aTypeB );
61}
CHANGE_TYPE
Types of changes.
Definition: commit.h:39

◆ operator|()

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

Definition at line 52 of file commit.h.

53{
54 return CHANGE_TYPE( (int) aTypeA | (int) aTypeB );
55}