aGrUM 3.1.1
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/base/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
 ArcDel (const ArcDel &from) noexcept
 copy constructor
 ArcDel (ArcDel &&from) noexcept
 move constructor
 ~ArcDel () noexcept override
 destructor
Operators
ArcDeloperator= (const ArcDel &from) noexcept
 copy operator
ArcDeloperator= (ArcDel &&from) noexcept
 move operator
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

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 class to indicate that we wish to remove an arc

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

152 :
153 DAGCycleDetector::Change(DAGCycleDetector::ChangeType::ARC_DELETION, tail, head) {
154 GUM_CONSTRUCTOR(DAGCycleDetector::ArcDel);
155 }
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

References gum::DAGCycleDetector::ARC_DELETION, gum::DAGCycleDetector::Change::head(), and gum::DAGCycleDetector::Change::tail().

Referenced by operator=().

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

◆ ArcDel() [2/3]

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

copy constructor

Definition at line 158 of file DAGCycleDetector_inl.h.

158 :
159 DAGCycleDetector::Change(from.type(), from.tail(), from.head()) {
160 GUM_CONS_CPY(DAGCycleDetector::ArcDel);
161 }

◆ ArcDel() [3/3]

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

move constructor

Definition at line 164 of file DAGCycleDetector_inl.h.

164 :
165 DAGCycleDetector::Change(std::move(from.type()),
166 std::move(from.tail()),
167 std::move(from.head())) {
168 GUM_CONS_MOV(DAGCycleDetector::ArcDel);
169 }

◆ ~ArcDel()

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

destructor

Definition at line 172 of file DAGCycleDetector_inl.h.

172{ GUM_DESTRUCTOR(DAGCycleDetector::ArcDel); }

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

103{ return _head_; }
NodeId _head_
the head of the arc to be modified

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

move operator

Definition at line 180 of file DAGCycleDetector_inl.h.

180 {
182 return *this;
183 }
Change & operator=(const Change &from) noexcept

References gum::DAGCycleDetector::Change::operator=().

Here is the call graph for this function:

◆ operator=() [2/2]

INLINE DAGCycleDetector::ArcDel & gum::DAGCycleDetector::ArcDel::operator= ( const ArcDel & from)
defaultnoexcept

copy operator

References ArcDel(), and operator=().

Referenced by 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
noexceptinherited

indicates the tail of the arc involved in the modification

Definition at line 100 of file DAGCycleDetector_inl.h.

100{ return _tail_; }
NodeId _tail_
the tail of the arc to be modified

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
noexceptinherited

returns the type of the operation

Definition at line 95 of file DAGCycleDetector_inl.h.

95 {
96 return _type_;
97 }
ChangeType _type_
the type of modification

References _type_.

Referenced by Change().

Here is the caller graph for this function:

Member Data Documentation

◆ _head_

NodeId gum::DAGCycleDetector::Change::_head_
privateinherited

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_
privateinherited

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_
privateinherited

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: