aGrUM  0.20.3
a C++ library for (probabilistic) graphical models
gum::Parent Class Reference

Represent a node's parent. More...

#include <agrum/tools/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.

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

36 : parentId(pi), modality(m) {}
NodeId parentId
Definition: internalNode.h:51
+ Here is the call graph for this function:

◆ Parent() [2/2]

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

Copy constructor.

Definition at line 40 of file internalNode_inl.h.

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

40 : parentId(src.parentId), modality(src.modality) {}
NodeId parentId
Definition: internalNode.h:51
+ Here is the call graph for this function:

Member Function Documentation

◆ operator delete()

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

Delete operator.

Definition at line 46 of file internalNode_inl.h.

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

46  {
48  }
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 43 of file internalNode_inl.h.

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

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 57 of file internalNode_inl.h.

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

57 { return !(comp == *this); }
+ Here is the call graph for this function:

◆ operator=()

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

Definition at line 60 of file internalNode_inl.h.

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

60  {
61  this->parentId = src.parentId;
62  this->modality = src.modality;
63  return *this;
64  }
NodeId parentId
Definition: internalNode.h:51
+ Here is the call graph for this function:

◆ operator==()

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

Definition at line 51 of file internalNode_inl.h.

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

51  {
52  if ((comp.parentId == this->parentId) && (comp.modality == this->modality)) return true;
53  return false;
54  }
+ Here is the call graph for this function:

Member Data Documentation

◆ modality

Idx gum::Parent::modality

Definition at line 52 of file internalNode.h.

◆ parentId

NodeId gum::Parent::parentId

Definition at line 51 of file internalNode.h.


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