aGrUM 3.0.0
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
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 58 of file internalNode_inl.h.

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

References modality, and parentId.

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

Here is the caller graph for this function:

◆ Parent() [2/2]

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

Copy constructor.

References Parent().

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

67 {
69 }
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 64 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 Parent & gum::Parent::operator= ( const Parent & src)
default

References Parent().

Here is the call graph for this function:

◆ operator==()

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

Definition at line 72 of file internalNode_inl.h.

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

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(), and operator==().

◆ parentId

NodeId gum::Parent::parentId

Definition at line 72 of file internalNode.h.

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


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