ardour
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
GraphNode Class Reference

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

#include <export_multiplication.h>

Inheritance diagram for GraphNode:
DataNode< T >

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 30 of file export_multiplication.h.

Constructor & Destructor Documentation

GraphNode::GraphNode ( )
virtual GraphNode::~GraphNode ( )
virtual

Member Function Documentation

void GraphNode::add_child ( GraphNode child,
GraphNode left_sibling 
)
void GraphNode::add_parent ( GraphNode parent)
protected
bool GraphNode::equals ( GraphNode const *  node) const
inline

Definition at line 51 of file export_multiplication.h.

GraphNode* GraphNode::first_child ( ) const
inline

Definition at line 43 of file export_multiplication.h.

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

Definition at line 45 of file export_multiplication.h.

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

Definition at line 39 of file export_multiplication.h.

uint32_t GraphNode::id ( ) const
inline

Definition at line 35 of file export_multiplication.h.

bool GraphNode::is_ancestor_of ( GraphNode const *  node) const
bool GraphNode::is_descendant_of ( GraphNode const *  node) const
GraphNode* GraphNode::last_child ( ) const
inline

Definition at line 44 of file export_multiplication.h.

void GraphNode::remove_child ( GraphNode child)
void GraphNode::remove_parent ( GraphNode parent)
protected
void GraphNode::select ( bool  value)
bool GraphNode::selected ( ) const
inline

Definition at line 55 of file export_multiplication.h.

Member Data Documentation

uint32_t GraphNode::_id
protected

Definition at line 71 of file export_multiplication.h.

bool GraphNode::_selected
protected

Definition at line 70 of file export_multiplication.h.

list<GraphNode *> GraphNode::children
protected

Definition at line 68 of file export_multiplication.h.

uint32_t GraphNode::id_counter
staticprotected

Definition at line 72 of file export_multiplication.h.

list<GraphNode *> GraphNode::parents
protected

Definition at line 67 of file export_multiplication.h.

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

Definition at line 58 of file export_multiplication.h.


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