TTK
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
ttk::LowestCommonAncestor::Node Class Reference

#include <LowestCommonAncestor.h>

Public Member Functions

void setAncestor (const int &id)
 
void addSuccessor (const int &id)
 
int getNumberOfSuccessors () const
 
int getAncestorId () const
 
int getSuccessorId (const int &id) const
 

Protected Attributes

int ancestor_ {}
 
std::vector< int > successor_ {}
 

Detailed Description

Definition at line 22 of file LowestCommonAncestor.h.

Member Function Documentation

◆ addSuccessor()

void ttk::LowestCommonAncestor::Node::addSuccessor ( const int &  id)
inline

Definition at line 27 of file LowestCommonAncestor.h.

◆ getAncestorId()

int ttk::LowestCommonAncestor::Node::getAncestorId ( ) const
inline

Definition at line 33 of file LowestCommonAncestor.h.

◆ getNumberOfSuccessors()

int ttk::LowestCommonAncestor::Node::getNumberOfSuccessors ( ) const
inline

Definition at line 30 of file LowestCommonAncestor.h.

◆ getSuccessorId()

int ttk::LowestCommonAncestor::Node::getSuccessorId ( const int &  id) const
inline

Definition at line 36 of file LowestCommonAncestor.h.

◆ setAncestor()

void ttk::LowestCommonAncestor::Node::setAncestor ( const int &  id)
inline

Definition at line 24 of file LowestCommonAncestor.h.

Member Data Documentation

◆ ancestor_

int ttk::LowestCommonAncestor::Node::ancestor_ {}
protected

Definition at line 45 of file LowestCommonAncestor.h.

◆ successor_

std::vector<int> ttk::LowestCommonAncestor::Node::successor_ {}
protected

Definition at line 46 of file LowestCommonAncestor.h.


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