aGrUM  0.20.2
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().

40  :
41  type__{type},
42  tail__{tail}, head__{head} {
43  GUM_CONSTRUCTOR(DAGCycleDetector::Change);
44  }
NodeId tail() const noexcept
indicates the tail of the arc involved in the modification
ChangeType type() const noexcept
returns the type of the operation
NodeId head() const noexcept
indicates the head 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
+ Here is the call graph for this function:

◆ Change() [2/3]

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

Definition at line 48 of file DAGCycleDetector_inl.h.

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

48  :
49  type__{from.type__}, tail__{from.tail__}, head__{from.head__} {
50  GUM_CONS_CPY(DAGCycleDetector::Change);
51  }
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
+ Here is the call graph for this function:

◆ Change() [3/3]

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

Definition at line 55 of file DAGCycleDetector_inl.h.

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

55  :
56  type__{from.type__}, tail__{from.tail__}, head__{from.head__} {
57  GUM_CONS_MOV(DAGCycleDetector::Change);
58  }
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
+ Here is the call graph for this function:

◆ ~Change()

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

Definition at line 61 of file DAGCycleDetector_inl.h.

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

61  {
62  GUM_DESTRUCTOR(DAGCycleDetector::Change);
63  }
+ 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 93 of file DAGCycleDetector_inl.h.

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

93 { 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 66 of file DAGCycleDetector_inl.h.

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

67  {
68  type__ = from.type__;
69  tail__ = from.tail__;
70  head__ = from.head__;
71  return *this;
72  }
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
+ 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 75 of file DAGCycleDetector_inl.h.

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

76  {
77  type__ = from.type__;
78  tail__ = from.tail__;
79  head__ = from.head__;
80  return *this;
81  }
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
+ 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 90 of file DAGCycleDetector_inl.h.

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

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

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

85  {
86  return type__;
87  }
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: