aGrUM  0.20.3
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 137 of file DAGCycleDetector_inl.h.

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

137  :
138  DAGCycleDetector::Change(DAGCycleDetector::ChangeType::ARC_DELETION, tail, head) {
139  GUM_CONSTRUCTOR(DAGCycleDetector::ArcDel);
140  }
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 143 of file DAGCycleDetector_inl.h.

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

143  :
144  DAGCycleDetector::Change(from.type(), from.tail(), from.head()) {
145  GUM_CONS_CPY(DAGCycleDetector::ArcDel);
146  }
+ 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 149 of file DAGCycleDetector_inl.h.

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

149  :
150  DAGCycleDetector::Change(std::move(from.type()),
151  std::move(from.tail()),
152  std::move(from.head())) {
153  GUM_CONS_MOV(DAGCycleDetector::ArcDel);
154  }
+ Here is the call graph for this function:

◆ ~ArcDel()

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

destructor

Definition at line 157 of file DAGCycleDetector_inl.h.

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

157 { GUM_DESTRUCTOR(DAGCycleDetector::ArcDel); }
+ 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 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::ArcDel & gum::DAGCycleDetector::ArcDel::operator= ( const ArcDel from)
noexcept

copy operator

Definition at line 161 of file DAGCycleDetector_inl.h.

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

161  {
163  return *this;
164  }
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 168 of file DAGCycleDetector_inl.h.

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

168  {
169  DAGCycleDetector::Change::operator=(std::move(from));
170  return *this;
171  }
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 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
noexceptinherited

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:

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