aGrUM  0.14.2
gum::DAGCycleDetector::ArcReverse Class Reference

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

#include <agrum/graphs/DAGCycleDetector.h>

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

Public Member Functions

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

Definition at line 189 of file DAGCycleDetector.h.

Constructor & Destructor Documentation

◆ ArcReverse() [1/3]

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

default constructor

Definition at line 194 of file DAGCycleDetector_inl.h.

195  :
196  DAGCycleDetector::Change(
198  GUM_CONSTRUCTOR(DAGCycleDetector::ArcReverse);
199  }
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

◆ ArcReverse() [2/3]

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

copy constructor

Definition at line 202 of file DAGCycleDetector_inl.h.

203  :
204  DAGCycleDetector::Change(from.type(), from.tail(), from.head()) {
205  GUM_CONS_CPY(DAGCycleDetector::ArcReverse);
206  }

◆ ArcReverse() [3/3]

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

move constructor

Definition at line 209 of file DAGCycleDetector_inl.h.

210  :
211  DAGCycleDetector::Change(
212  std::move(from.type()), std::move(from.tail()), std::move(from.head())) {
213  GUM_CONS_MOV(DAGCycleDetector::ArcReverse);
214  }

◆ ~ArcReverse()

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

destructor

Definition at line 217 of file DAGCycleDetector_inl.h.

References operator=().

217  {
218  GUM_DESTRUCTOR(DAGCycleDetector::ArcReverse);
219  }
+ 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 91 of file DAGCycleDetector_inl.h.

References gum::DAGCycleDetector::Change::__head.

91 { return __head; }
NodeId __head
the head of the arc to be modified

◆ operator=() [1/2]

INLINE DAGCycleDetector::ArcReverse & gum::DAGCycleDetector::ArcReverse::operator= ( const ArcReverse from)
noexcept

copy operator

Definition at line 223 of file DAGCycleDetector_inl.h.

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

Referenced by ~ArcReverse().

223  {
225  return *this;
226  }
Change & operator=(const Change &from) noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=() [2/2]

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

move operator

Definition at line 230 of file DAGCycleDetector_inl.h.

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

230  {
231  DAGCycleDetector::Change::operator=(std::move(from));
232  return *this;
233  }
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 88 of file DAGCycleDetector_inl.h.

References gum::DAGCycleDetector::Change::__tail.

88 { return __tail; }
NodeId __tail
the tail of the arc to be modified

◆ type()

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

returns the type of the operation

Definition at line 82 of file DAGCycleDetector_inl.h.

References gum::DAGCycleDetector::Change::__type.

83  {
84  return __type;
85  }
ChangeType __type
the type of modification

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