UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
Node Class Reference

#include <tanner.h>

Collaboration diagram for Node:
Collaboration graph

Public Types

enum  Node_type { variable_node , constraint_node }
 

Public Member Functions

 Node (Tanner_graph *t, Node_type type, char *data)
 
 ~Node ()
 
char * getDataPtr ()
 
Node_type getType ()
 
bool isDone ()
 
void setDone (bool v)
 
void setType (Node_type t)
 

Public Attributes

std::vector< int > neighbours
 

Protected Attributes

Tanner_graph * tanner
 

Private Attributes

char * data
 
bool done
 
Node_type type
 

Detailed Description

Definition at line 35 of file tanner.h.

Member Enumeration Documentation

◆ Node_type

Enumerator
variable_node 
constraint_node 

Definition at line 39 of file tanner.h.

39 {
42 }; /* ---------- end of enum nodeType ---------- */
@ variable_node
Definition tanner.h:40
@ constraint_node
Definition tanner.h:41

Constructor & Destructor Documentation

◆ Node()

Node::Node ( Tanner_graph * t,
Node::Node_type t,
char * data )
Todo
remove, it is no longer used

Definition at line 30 of file tanner.cpp.

30 {
31// int size = tanner->data_size;
32 this->type = t;
33 data = d;
34 done = false;
35// neighbours[0] = 0;
36// printf("Created node with data: %d\n", *data);
37 tanner = nullptr;
38}
char * data
Definition tanner.h:77
bool done
Definition tanner.h:79
Node_type type
Definition tanner.h:78
Tanner_graph * tanner
Definition tanner.h:73

References data, done, tanner, and type.

◆ ~Node()

Node::~Node ( )

Definition at line 40 of file tanner.cpp.

40 {
41}

Member Function Documentation

◆ getDataPtr()

char * Node::getDataPtr ( )
inline

Definition at line 51 of file tanner.h.

51{ return data; }

References data.

◆ getType()

Node_type Node::getType ( )
inline

Definition at line 53 of file tanner.h.

53{ return type; }

References type.

◆ isDone()

bool Node::isDone ( )
inline

Definition at line 55 of file tanner.h.

55{ return done; }

References done.

◆ setDone()

void Node::setDone ( bool v)
inline

Definition at line 63 of file tanner.h.

63{ done = v; }

References done.

◆ setType()

void Node::setType ( Node_type t)
inline

Definition at line 61 of file tanner.h.

61{ type = t; }

References type.

Member Data Documentation

◆ data

char* Node::data
private

Definition at line 77 of file tanner.h.

Referenced by Node(), and getDataPtr().

◆ done

bool Node::done
private

Definition at line 79 of file tanner.h.

Referenced by Node(), isDone(), and setDone().

◆ neighbours

std::vector<int> Node::neighbours

Definition at line 65 of file tanner.h.

◆ tanner

Tanner_graph* Node::tanner
protected

Definition at line 73 of file tanner.h.

Referenced by Node().

◆ type

Node_type Node::type
private

Definition at line 78 of file tanner.h.

Referenced by Node(), getType(), and setType().


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