Ardour  8.12
GraphNode Class Reference

A node in the hierarchical graph that represents a multiplicatable export item. More...

#include <export_multiplication.h>

Inheritance diagram for GraphNode:
[legend]

Public Member Functions

 GraphNode ()
 
virtual ~GraphNode ()
 
uint32_t id () const
 
list< GraphNode * > const & get_parents () const
 
void add_child (GraphNode *child, GraphNode *left_sibling)
 
void remove_child (GraphNode *child)
 
GraphNodefirst_child () const
 
GraphNodelast_child () const
 
list< GraphNode * > const & get_children () const
 
bool is_ancestor_of (GraphNode const *node) const
 
bool is_descendant_of (GraphNode const *node) const
 
bool equals (GraphNode const *node) const
 
bool selected () const
 
void select (bool value)
 

Public Attributes

PBD::Signal1< void, bool > SelectChanged
 

Protected Member Functions

void add_parent (GraphNode *parent)
 
void remove_parent (GraphNode *parent)
 

Protected Attributes

list< GraphNode * > parents
 
list< GraphNode * > children
 
bool _selected
 
uint32_t _id
 

Static Protected Attributes

static uint32_t id_counter
 

Detailed Description

A node in the hierarchical graph that represents a multiplicatable export item.

Definition at line 29 of file export_multiplication.h.

Constructor & Destructor Documentation

◆ GraphNode()

GraphNode::GraphNode ( )

◆ ~GraphNode()

virtual GraphNode::~GraphNode ( )
virtual

Member Function Documentation

◆ add_child()

void GraphNode::add_child ( GraphNode child,
GraphNode left_sibling 
)

◆ add_parent()

void GraphNode::add_parent ( GraphNode parent)
protected

◆ equals()

bool GraphNode::equals ( GraphNode const *  node) const
inline

Definition at line 50 of file export_multiplication.h.

◆ first_child()

GraphNode* GraphNode::first_child ( ) const
inline

Definition at line 42 of file export_multiplication.h.

◆ get_children()

list<GraphNode *> const& GraphNode::get_children ( ) const
inline

Definition at line 44 of file export_multiplication.h.

◆ get_parents()

list<GraphNode *> const& GraphNode::get_parents ( ) const
inline

Definition at line 38 of file export_multiplication.h.

◆ id()

uint32_t GraphNode::id ( ) const
inline

Definition at line 34 of file export_multiplication.h.

◆ is_ancestor_of()

bool GraphNode::is_ancestor_of ( GraphNode const *  node) const

◆ is_descendant_of()

bool GraphNode::is_descendant_of ( GraphNode const *  node) const

◆ last_child()

GraphNode* GraphNode::last_child ( ) const
inline

Definition at line 43 of file export_multiplication.h.

◆ remove_child()

void GraphNode::remove_child ( GraphNode child)

◆ remove_parent()

void GraphNode::remove_parent ( GraphNode parent)
protected

◆ select()

void GraphNode::select ( bool  value)

◆ selected()

bool GraphNode::selected ( ) const
inline

Definition at line 54 of file export_multiplication.h.

Member Data Documentation

◆ _id

uint32_t GraphNode::_id
protected

Definition at line 70 of file export_multiplication.h.

◆ _selected

bool GraphNode::_selected
protected

Definition at line 69 of file export_multiplication.h.

◆ children

list<GraphNode *> GraphNode::children
protected

Definition at line 67 of file export_multiplication.h.

◆ id_counter

uint32_t GraphNode::id_counter
staticprotected

Definition at line 71 of file export_multiplication.h.

◆ parents

list<GraphNode *> GraphNode::parents
protected

Definition at line 66 of file export_multiplication.h.

◆ SelectChanged

PBD::Signal1<void,bool> GraphNode::SelectChanged

Definition at line 57 of file export_multiplication.h.


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