aGrUM 3.1.1
a C++ library for (probabilistic) graphical models
gum::DAGCycleDetector::Change Class Reference

the base class indicating the possible changes More...

#include <DAGCycleDetector.h>

Inheritance diagram for gum::DAGCycleDetector::Change:

Public Member Functions

 Change (ChangeType type, NodeId tail, NodeId head) noexcept
 Change (const Change &from) noexcept
 Change (Change &&from) noexcept
virtual ~Change () noexcept
Accessors/Modifiers
ChangeType type () const noexcept
 returns the type of the operation
NodeId tail () const noexcept
 indicates the tail of the arc involved in the modification
NodeId head () const noexcept
 indicates the head of the arc involved in the modification

Protected Member Functions

Changeoperator= (const Change &from) noexcept
Changeoperator= (Change &&from) noexcept

Private Attributes

ChangeType _type_
 the type of modification
NodeId _tail_
 the tail of the arc to be modified
NodeId _head_
 the head of the arc to be modified

Detailed Description

the base class indicating the possible changes

Definition at line 86 of file DAGCycleDetector.h.

Constructor & Destructor Documentation

◆ Change() [1/3]

INLINE gum::DAGCycleDetector::Change::Change ( ChangeType type,
NodeId tail,
NodeId head )
noexcept

Definition at line 61 of file DAGCycleDetector_inl.h.

61 :
63 GUM_CONSTRUCTOR(DAGCycleDetector::Change);
64 }
ChangeType type() const noexcept
returns the type of the operation
NodeId tail() const noexcept
indicates the tail of the arc involved in the modification
NodeId _head_
the head of the arc to be modified
ChangeType _type_
the type of modification
NodeId _tail_
the tail of the arc to be modified
NodeId head() const noexcept
indicates the head of the arc involved in the modification

References _type_, head(), tail(), and type().

Referenced by operator=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Change() [2/3]

INLINE gum::DAGCycleDetector::Change::Change ( const Change & from)
noexcept

Definition at line 67 of file DAGCycleDetector_inl.h.

67 :
68 _type_{from._type_}, _tail_{from._tail_}, _head_{from._head_} {
69 GUM_CONS_CPY(DAGCycleDetector::Change);
70 }

References _type_.

◆ Change() [3/3]

INLINE gum::DAGCycleDetector::Change::Change ( DAGCycleDetector::Change && from)
noexcept

Definition at line 73 of file DAGCycleDetector_inl.h.

73 :
74 _type_{from._type_}, _tail_{from._tail_}, _head_{from._head_} {
75 GUM_CONS_MOV(DAGCycleDetector::Change);
76 }

References _type_.

◆ ~Change()

INLINE gum::DAGCycleDetector::Change::~Change ( )
virtualnoexcept

Definition at line 79 of file DAGCycleDetector_inl.h.

79{ GUM_DESTRUCTOR(DAGCycleDetector::Change); }

Member Function Documentation

◆ head()

INLINE NodeId gum::DAGCycleDetector::Change::head ( ) const
noexcept

indicates the head of the arc involved in the modification

Definition at line 103 of file DAGCycleDetector_inl.h.

103{ return _head_; }

References _head_.

Referenced by gum::DAGCycleDetector::ArcAdd::ArcAdd(), gum::DAGCycleDetector::ArcDel::ArcDel(), gum::DAGCycleDetector::ArcReverse::ArcReverse(), Change(), and operator=().

Here is the caller graph for this function:

◆ operator=() [1/2]

INLINE DAGCycleDetector::Change & gum::DAGCycleDetector::Change::operator= ( DAGCycleDetector::Change && from)
protectednoexcept

Definition at line 87 of file DAGCycleDetector_inl.h.

87 {
88 _type_ = from._type_;
89 _tail_ = from._tail_;
90 _head_ = from._head_;
91 return *this;
92 }

References _head_, _tail_, and _type_.

◆ operator=() [2/2]

INLINE DAGCycleDetector::Change & gum::DAGCycleDetector::Change::operator= ( const Change & from)
protecteddefaultnoexcept

References Change(), head(), and tail().

Referenced by gum::DAGCycleDetector::ArcAdd::operator=(), gum::DAGCycleDetector::ArcDel::operator=(), and gum::DAGCycleDetector::ArcReverse::operator=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ tail()

INLINE NodeId gum::DAGCycleDetector::Change::tail ( ) const
noexcept

indicates the tail of the arc involved in the modification

Definition at line 100 of file DAGCycleDetector_inl.h.

100{ return _tail_; }

References _tail_.

Referenced by gum::DAGCycleDetector::ArcAdd::ArcAdd(), gum::DAGCycleDetector::ArcDel::ArcDel(), gum::DAGCycleDetector::ArcReverse::ArcReverse(), Change(), and operator=().

Here is the caller graph for this function:

◆ type()

INLINE DAGCycleDetector::ChangeType gum::DAGCycleDetector::Change::type ( ) const
noexcept

returns the type of the operation

Definition at line 95 of file DAGCycleDetector_inl.h.

95 {
96 return _type_;
97 }

References _type_.

Referenced by Change().

Here is the caller graph for this function:

Member Data Documentation

◆ _head_

NodeId gum::DAGCycleDetector::Change::_head_
private

the head of the arc to be modified

Definition at line 122 of file DAGCycleDetector.h.

Referenced by head(), and operator=().

◆ _tail_

NodeId gum::DAGCycleDetector::Change::_tail_
private

the tail of the arc to be modified

Definition at line 119 of file DAGCycleDetector.h.

Referenced by operator=(), and tail().

◆ _type_

ChangeType gum::DAGCycleDetector::Change::_type_
private

the type of modification

Definition at line 116 of file DAGCycleDetector.h.

Referenced by Change(), Change(), Change(), operator=(), and type().


The documentation for this class was generated from the following files: