aGrUM  0.16.0
gum::Parent Class Reference

Represent a node's parent. More...

#include <agrum/multidim/FunctionGraphUtilities/internalNode.h>

Public Attributes

NodeId parentId
 
Idx modality
 

Public Member Functions

 Parent (NodeId pi, Idx m)
 Class constructor. More...
 
 Parent (const Parent &src)
 Copy constructor. More...
 
Allocators and Deallocators redefinition
void * operator new (size_t s)
 New operator. More...
 
void operator delete (void *p)
 Delete operator. More...
 
Operators
bool operator== (const Parent &comp) const
 
bool operator!= (const Parent &comp) const
 
Parentoperator= (const Parent &src)
 

Detailed Description

Represent a node's parent.

Definition at line 50 of file internalNode.h.

Constructor & Destructor Documentation

◆ Parent() [1/2]

INLINE gum::Parent::Parent ( NodeId  pi,
Idx  m 
)

Class constructor.

Definition at line 36 of file internalNode_inl.h.

36 : parentId(pi), modality(m) {}
NodeId parentId
Definition: internalNode.h:51

◆ Parent() [2/2]

INLINE gum::Parent::Parent ( const Parent src)

Copy constructor.

Definition at line 40 of file internalNode_inl.h.

40  :
41  parentId(src.parentId), modality(src.modality) {}
NodeId parentId
Definition: internalNode.h:51

Member Function Documentation

◆ operator delete()

INLINE void gum::Parent::operator delete ( void *  p)

Delete operator.

Definition at line 49 of file internalNode_inl.h.

References gum::SmallObjectAllocator::deallocate(), and gum::SmallObjectAllocator::instance().

49  {
51  }
Parent(NodeId pi, Idx m)
Class constructor.
void deallocate(void *pDeallocatedObject, const size_t &objectSize)
Deallocates an object.
static SmallObjectAllocator & instance()
+ Here is the call graph for this function:

◆ operator new()

INLINE void * gum::Parent::operator new ( size_t  s)

New operator.

Definition at line 44 of file internalNode_inl.h.

References gum::SmallObjectAllocator::allocate(), and gum::SmallObjectAllocator::instance().

44  {
46  }
void * allocate(const size_t &objectSize)
Allocates a block.
static SmallObjectAllocator & instance()
+ Here is the call graph for this function:

◆ operator!=()

INLINE bool gum::Parent::operator!= ( const Parent comp) const

Definition at line 61 of file internalNode_inl.h.

61 { return !(comp == *this); }

◆ operator=()

INLINE Parent & gum::Parent::operator= ( const Parent src)

Definition at line 64 of file internalNode_inl.h.

References modality, and parentId.

64  {
65  this->parentId = src.parentId;
66  this->modality = src.modality;
67  return *this;
68  }
NodeId parentId
Definition: internalNode.h:51

◆ operator==()

INLINE bool gum::Parent::operator== ( const Parent comp) const

Definition at line 54 of file internalNode_inl.h.

References modality, and parentId.

54  {
55  if ((comp.parentId == this->parentId) && (comp.modality == this->modality))
56  return true;
57  return false;
58  }

Member Data Documentation

◆ modality

◆ parentId


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