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

the class to indicate that we wish to remove an arc More...

#include <agrum/tools/core/DAGCycleDetector.h>

+ Inheritance diagram for gum::DAGCycleDetector::ArcDel:
+ Collaboration diagram for gum::DAGCycleDetector::ArcDel:

Public Member Functions

Constructors / Destructors
 ArcDel (NodeId tail, NodeId head) noexcept
 default constructor More...
 
 ArcDel (const ArcDel &from) noexcept
 copy constructor More...
 
 ArcDel (ArcDel &&from) noexcept
 move constructor More...
 
 ~ArcDel () noexcept
 destructor More...
 
Operators
ArcDeloperator= (const ArcDel &from) noexcept
 copy operator More...
 
ArcDeloperator= (ArcDel &&from) noexcept
 move operator More...
 
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...
 

Detailed Description

the class to indicate that we wish to remove an arc

Definition at line 157 of file DAGCycleDetector.h.

Constructor & Destructor Documentation

◆ ArcDel() [1/3]

INLINE gum::DAGCycleDetector::ArcDel::ArcDel ( NodeId  tail,
NodeId  head 
)
noexcept

default constructor

Definition at line 151 of file DAGCycleDetector_inl.h.

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

151  :
152  DAGCycleDetector::Change(DAGCycleDetector::ChangeType::ARC_DELETION,
153  tail,
154  head) {
155  GUM_CONSTRUCTOR(DAGCycleDetector::ArcDel);
156  }
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
+ Here is the call graph for this function:

◆ ArcDel() [2/3]

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

copy constructor

Definition at line 160 of file DAGCycleDetector_inl.h.

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

160  :
161  DAGCycleDetector::Change(from.type(), from.tail(), from.head()) {
162  GUM_CONS_CPY(DAGCycleDetector::ArcDel);
163  }
+ Here is the call graph for this function:

◆ ArcDel() [3/3]

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

move constructor

Definition at line 167 of file DAGCycleDetector_inl.h.

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

167  :
168  DAGCycleDetector::Change(std::move(from.type()),
169  std::move(from.tail()),
170  std::move(from.head())) {
171  GUM_CONS_MOV(DAGCycleDetector::ArcDel);
172  }
+ Here is the call graph for this function:

◆ ~ArcDel()

INLINE gum::DAGCycleDetector::ArcDel::~ArcDel ( )
noexcept

destructor

Definition at line 175 of file DAGCycleDetector_inl.h.

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

175  {
176  GUM_DESTRUCTOR(DAGCycleDetector::ArcDel);
177  }
+ Here is the call graph for this function:

Member Function Documentation

◆ head()

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

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::ArcDel & gum::DAGCycleDetector::ArcDel::operator= ( const ArcDel from)
noexcept

copy operator

Definition at line 180 of file DAGCycleDetector_inl.h.

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

181  {
183  return *this;
184  }
Change & operator=(const Change &from) noexcept
+ Here is the call graph for this function:

◆ operator=() [2/2]

INLINE DAGCycleDetector::ArcDel & gum::DAGCycleDetector::ArcDel::operator= ( DAGCycleDetector::ArcDel &&  from)
noexcept

move operator

Definition at line 187 of file DAGCycleDetector_inl.h.

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

188  {
189  DAGCycleDetector::Change::operator=(std::move(from));
190  return *this;
191  }
Change & operator=(const Change &from) noexcept
+ Here is the call graph for this function:

◆ tail()

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

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
noexceptinherited

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:

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