KiCad PCB EDA Suite
Loading...
Searching...
No Matches
commit.h File Reference
#include <set>
#include <vector>
#include <wx/string.h>
#include <undo_redo_container.h>
#include <kiid.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_GROUP = 8 ,
  CHT_UNGROUP = 16 , CHT_TYPE = CHT_ADD | CHT_REMOVE | CHT_MODIFY | CHT_GROUP | CHT_UNGROUP , CHT_DONE = 32 , 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_GROUP 
CHT_UNGROUP 
CHT_TYPE 
CHT_DONE 

Flag to indicate the change is already applied.

CHT_FLAGS 

Definition at line 41 of file commit.h.

Function Documentation

◆ operator&()

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

Definition at line 60 of file commit.h.

◆ operator|()

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

Definition at line 54 of file commit.h.