aGrUM  0.20.3
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 More...
 
NodeId tail () const noexcept
 indicates the tail of the arc involved in the modification More...
 
NodeId head () const noexcept
 indicates the head of the arc involved in the modification More...
 

Protected Member Functions

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

Detailed Description

the base class indicating the possible changes

Definition at line 72 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 38 of file DAGCycleDetector_inl.h.

References gum::Set< Key, Alloc >::emplace().

38  :
40  GUM_CONSTRUCTOR(DAGCycleDetector::Change);
41  }
NodeId tail() const noexcept
indicates the tail of the arc involved in the modification
ChangeType type() const noexcept
returns the type of the operation
ChangeType _type_
the type of modification
NodeId head() const noexcept
indicates the head of the arc involved in the modification
NodeId _head_
the head of the arc to be modified
NodeId _tail_
the tail of the arc to be modified
+ Here is the call graph for this function:

◆ Change() [2/3]

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

Definition at line 44 of file DAGCycleDetector_inl.h.

References gum::Set< Key, Alloc >::emplace().

44  :
45  _type_{from._type_}, _tail_{from._tail_}, _head_{from._head_} {
46  GUM_CONS_CPY(DAGCycleDetector::Change);
47  }
ChangeType _type_
the type of modification
NodeId _head_
the head of the arc to be modified
NodeId _tail_
the tail of the arc to be modified
+ Here is the call graph for this function:

◆ Change() [3/3]

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

Definition at line 50 of file DAGCycleDetector_inl.h.

References gum::Set< Key, Alloc >::emplace().

50  :
51  _type_{from._type_}, _tail_{from._tail_}, _head_{from._head_} {
52  GUM_CONS_MOV(DAGCycleDetector::Change);
53  }
ChangeType _type_
the type of modification
NodeId _head_
the head of the arc to be modified
NodeId _tail_
the tail of the arc to be modified
+ Here is the call graph for this function:

◆ ~Change()

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

Definition at line 56 of file DAGCycleDetector_inl.h.

References gum::Set< Key, Alloc >::emplace().

56 { GUM_DESTRUCTOR(DAGCycleDetector::Change); }
+ Here is the call graph for this function:

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 85 of file DAGCycleDetector_inl.h.

References gum::Set< Key, Alloc >::emplace().

85 { return _head_; }
NodeId _head_
the head of the arc to be modified
+ Here is the call graph for this function:

◆ operator=() [1/2]

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

Definition at line 60 of file DAGCycleDetector_inl.h.

References gum::Set< Key, Alloc >::emplace().

60  {
61  _type_ = from._type_;
62  _tail_ = from._tail_;
63  _head_ = from._head_;
64  return *this;
65  }
ChangeType _type_
the type of modification
NodeId _head_
the head of the arc to be modified
NodeId _tail_
the tail of the arc to be modified
+ Here is the call graph for this function:

◆ operator=() [2/2]

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

Definition at line 69 of file DAGCycleDetector_inl.h.

References gum::Set< Key, Alloc >::emplace().

69  {
70  _type_ = from._type_;
71  _tail_ = from._tail_;
72  _head_ = from._head_;
73  return *this;
74  }
ChangeType _type_
the type of modification
NodeId _head_
the head of the arc to be modified
NodeId _tail_
the tail of the arc to be modified
+ Here is the call 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 82 of file DAGCycleDetector_inl.h.

References gum::Set< Key, Alloc >::emplace().

82 { return _tail_; }
NodeId _tail_
the tail of the arc to be modified
+ Here is the call graph for this function:

◆ type()

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

returns the type of the operation

Definition at line 77 of file DAGCycleDetector_inl.h.

References gum::Set< Key, Alloc >::emplace().

77  {
78  return _type_;
79  }
ChangeType _type_
the type of modification
+ Here is the call 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 108 of file DAGCycleDetector.h.

◆ _tail_

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

the tail of the arc to be modified

Definition at line 105 of file DAGCycleDetector.h.

◆ _type_

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

the type of modification

Definition at line 102 of file DAGCycleDetector.h.


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