#include "node.h"
//****************************************************************************
//
// Function: Bnode()
//
// Purpose: constructor that sets all data fields to defaults
//
// Parameters:
//
// Calls: none
//
//****************************************************************************
Bnode::Bnode()
{
left = NULL;
right = NULL;
data = "EMPTY";
}
//****************************************************************************
//
// Function: Bnode(string)
//
// Purpose: constructs a node with given data
//
// Parameters: node_data - data component of the node
//
// Calls: none
//
//****************************************************************************
Bnode::Bnode(string node_data)
{
data = node_data;
left = NULL;
right = NULL;
}
//****************************************************************************
//
// Function: Bnode(string, string)
//
// Purpose: constructs a node with given data and pointer to new node
//
// Parameters: one - data of new node being made
// two - data of child of node being made
//
// Calls: Bnode(string)
//
//****************************************************************************
Bnode::Bnode(string one, string two)
{
data = one;
left = new Bnode(two);
right = NULL;
}