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

Represent a node's parent. More...

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

Public Member Functions

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

Public Attributes

NodeId parentId
Idx modality

Detailed Description

Represent a node's parent.

Definition at line 71 of file internalNode.h.

Constructor & Destructor Documentation

◆ Parent() [1/2]

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

Class constructor.

Definition at line 57 of file internalNode_inl.h.

57: parentId(pi), modality(m) {}
NodeId parentId

References modality, and parentId.

Referenced by Parent(), operator delete(), operator!=(), operator=(), and operator==().

Here is the caller graph for this function:

◆ Parent() [2/2]

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

Copy constructor.

Definition at line 60 of file internalNode_inl.h.

60: parentId(src.parentId), modality(src.modality) {}

References Parent(), modality, and parentId.

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

66 {
68 }
static SmallObjectAllocator & instance()
void deallocate(void *pDeallocatedObject, const size_t &objectSize)
Deallocates an object.
Parent(NodeId pi, Idx m)
Class constructor.

References Parent(), gum::SmallObjectAllocator::deallocate(), and gum::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 63 of file internalNode_inl.h.

void * allocate(const size_t &objectSize)
Allocates a block.

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

Here is the call graph for this function:

◆ operator!=()

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

Definition at line 77 of file internalNode_inl.h.

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

References Parent().

Here is the call graph for this function:

◆ operator=()

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

Definition at line 80 of file internalNode_inl.h.

80 {
81 this->parentId = src.parentId;
82 this->modality = src.modality;
83 return *this;
84 }

References Parent(), modality, and parentId.

Here is the call graph for this function:

◆ operator==()

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

Definition at line 71 of file internalNode_inl.h.

71 {
72 if ((comp.parentId == this->parentId) && (comp.modality == this->modality)) return true;
73 return false;
74 }

References Parent(), modality, and parentId.

Here is the call graph for this function:

Member Data Documentation

◆ modality

Idx gum::Parent::modality

Definition at line 73 of file internalNode.h.

Referenced by Parent(), Parent(), operator=(), and operator==().

◆ parentId

NodeId gum::Parent::parentId

Definition at line 72 of file internalNode.h.

Referenced by Parent(), Parent(), operator=(), and operator==().


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