aGrUM  0.16.0
gum::DAGCycleDetector::ArcAdd Class Reference

the class to indicate that we wish to add a new arc More...

#include <agrum/graphs/DAGCycleDetector.h>

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

Public Member Functions

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

Definition at line 113 of file DAGCycleDetector.h.

Constructor & Destructor Documentation

◆ ArcAdd() [1/3]

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

default constructor

Definition at line 103 of file DAGCycleDetector_inl.h.

103  :
104  DAGCycleDetector::Change(
106  GUM_CONSTRUCTOR(DAGCycleDetector::ArcAdd);
107  }
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

◆ ArcAdd() [2/3]

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

copy constructor

Definition at line 111 of file DAGCycleDetector_inl.h.

111  :
112  DAGCycleDetector::Change(from.type(), from.tail(), from.head()) {
113  GUM_CONS_CPY(DAGCycleDetector::ArcAdd);
114  }

◆ ArcAdd() [3/3]

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

move constructor

Definition at line 118 of file DAGCycleDetector_inl.h.

118  :
119  DAGCycleDetector::Change(
120  std::move(from.type()), std::move(from.tail()), std::move(from.head())) {
121  GUM_CONS_MOV(DAGCycleDetector::ArcAdd);
122  }

◆ ~ArcAdd()

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

destructor

Definition at line 125 of file DAGCycleDetector_inl.h.

References operator=().

125  {
126  GUM_DESTRUCTOR(DAGCycleDetector::ArcAdd);
127  }
+ 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 94 of file DAGCycleDetector_inl.h.

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

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

◆ operator=() [1/2]

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

copy operator

Definition at line 131 of file DAGCycleDetector_inl.h.

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

Referenced by ~ArcAdd().

131  {
133  return *this;
134  }
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::ArcAdd & gum::DAGCycleDetector::ArcAdd::operator= ( DAGCycleDetector::ArcAdd &&  from)
noexcept

move operator

Definition at line 138 of file DAGCycleDetector_inl.h.

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

138  {
139  DAGCycleDetector::Change::operator=(std::move(from));
140  return *this;
141  }
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 91 of file DAGCycleDetector_inl.h.

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

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

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

86  {
87  return __type;
88  }
ChangeType __type
the type of modification

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