Envision
A visual programming IDE for object-oriented languages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | Friends
FilePersistence::MergeChange Class Reference

Public Types

enum  Branch { None = 0x0 , BranchA = 0x1 , BranchB = 0x2 }
 
using Branches = QFlags< Branch >
 

Public Member Functions

 MergeChange (ChangeType type, ChangeDescription::UpdateFlags updateFlags, Model::NodeIdType nodeId, Branches branches, Model::NodeIdType oldParentId, Model::NodeIdType newParentId, QString oldLabel, QString newLabel, QString oldType, QString newType, QString oldValue, QString newValue)
 
void addBranches (Branches branches)
 
Branches branches () const
 
QString debugString (QList< MergeChange * > changesToAppendAtEnd={}) const
 
bool isValueOrTypeChange () const
 
const QString & newLabel () const
 
const Model::NodeIdTypenewParentId () const
 
const QString & newType () const
 
const QString & newValue () const
 
GenericNode::ValueType newValueType () const
 
QString newValueWithoutPrefix () const
 
const Model::NodeIdTypenodeId () const
 
const QString & oldLabel () const
 
const Model::NodeIdTypeoldParentId () const
 
const QString & oldType () const
 
const QString & oldValue () const
 
bool operator!= (const MergeChange &other) const
 
bool operator== (const MergeChange &other) const
 
ChangeType type () const
 
ChangeDescription::UpdateFlags updateFlags () const
 

Static Public Member Functions

static QList< MergeChange * > changesFromDiffChange (ChangeDescription &changeFromDiff, Branch branch)
 

Static Private Member Functions

static QString nodeValueWithPrefix (GenericNode *node)
 

Private Attributes

Branches branches_ {}
 
QString newLabel_
 
Model::NodeIdType newParentId_
 
QString newType_
 
QString newValue_
 
Model::NodeIdType nodeId_
 
QString oldLabel_
 
Model::NodeIdType oldParentId_
 
QString oldType_
 
QString oldValue_
 
ChangeType type_ {}
 
ChangeDescription::UpdateFlags updateFlags_ {}
 

Friends

class ChangeGraph
 

Member Typedef Documentation

◆ Branches

Member Enumeration Documentation

◆ Branch

Enumerator
None 
BranchA 
BranchB 

Constructor & Destructor Documentation

◆ MergeChange()

FilePersistence::MergeChange::MergeChange ( ChangeType  type,
ChangeDescription::UpdateFlags  updateFlags,
Model::NodeIdType  nodeId,
Branches  branches,
Model::NodeIdType  oldParentId,
Model::NodeIdType  newParentId,
QString  oldLabel,
QString  newLabel,
QString  oldType,
QString  newType,
QString  oldValue,
QString  newValue 
)

Member Function Documentation

◆ addBranches()

void FilePersistence::MergeChange::addBranches ( Branches  branches)
inline

◆ branches()

MergeChange::Branches FilePersistence::MergeChange::branches ( ) const
inline

◆ changesFromDiffChange()

QList< MergeChange * > FilePersistence::MergeChange::changesFromDiffChange ( ChangeDescription changeFromDiff,
Branch  branch 
)
static

◆ debugString()

QString FilePersistence::MergeChange::debugString ( QList< MergeChange * >  changesToAppendAtEnd = {}) const

◆ isValueOrTypeChange()

bool FilePersistence::MergeChange::isValueOrTypeChange ( ) const
inline

◆ newLabel()

const QString & FilePersistence::MergeChange::newLabel ( ) const
inline

◆ newParentId()

const Model::NodeIdType & FilePersistence::MergeChange::newParentId ( ) const
inline

◆ newType()

const QString & FilePersistence::MergeChange::newType ( ) const
inline

◆ newValue()

const QString & FilePersistence::MergeChange::newValue ( ) const
inline

◆ newValueType()

GenericNode::ValueType FilePersistence::MergeChange::newValueType ( ) const

◆ newValueWithoutPrefix()

QString FilePersistence::MergeChange::newValueWithoutPrefix ( ) const

◆ nodeId()

const Model::NodeIdType & FilePersistence::MergeChange::nodeId ( ) const
inline

◆ nodeValueWithPrefix()

QString FilePersistence::MergeChange::nodeValueWithPrefix ( GenericNode node)
staticprivate

◆ oldLabel()

const QString & FilePersistence::MergeChange::oldLabel ( ) const
inline

◆ oldParentId()

const Model::NodeIdType & FilePersistence::MergeChange::oldParentId ( ) const
inline

◆ oldType()

const QString & FilePersistence::MergeChange::oldType ( ) const
inline

◆ oldValue()

const QString & FilePersistence::MergeChange::oldValue ( ) const
inline

◆ operator!=()

bool FilePersistence::MergeChange::operator!= ( const MergeChange other) const
inline

◆ operator==()

bool FilePersistence::MergeChange::operator== ( const MergeChange other) const
inline

◆ type()

ChangeType FilePersistence::MergeChange::type ( ) const
inline

◆ updateFlags()

ChangeDescription::UpdateFlags FilePersistence::MergeChange::updateFlags ( ) const
inline

Friends And Related Function Documentation

◆ ChangeGraph

friend class ChangeGraph
friend

Member Data Documentation

◆ branches_

Branches FilePersistence::MergeChange::branches_ {}
private

◆ newLabel_

QString FilePersistence::MergeChange::newLabel_
private

◆ newParentId_

Model::NodeIdType FilePersistence::MergeChange::newParentId_
private

◆ newType_

QString FilePersistence::MergeChange::newType_
private

◆ newValue_

QString FilePersistence::MergeChange::newValue_
private

◆ nodeId_

Model::NodeIdType FilePersistence::MergeChange::nodeId_
private

◆ oldLabel_

QString FilePersistence::MergeChange::oldLabel_
private

◆ oldParentId_

Model::NodeIdType FilePersistence::MergeChange::oldParentId_
private

◆ oldType_

QString FilePersistence::MergeChange::oldType_
private

◆ oldValue_

QString FilePersistence::MergeChange::oldValue_
private

◆ type_

ChangeType FilePersistence::MergeChange::type_ {}
private

◆ updateFlags_

ChangeDescription::UpdateFlags FilePersistence::MergeChange::updateFlags_ {}
private