Acoustic FDTD Solver
Public Member Functions | Private Attributes | List of all members
Node Class Reference

#include <Node.hpp>

Public Member Functions

 Node ()
 Node (double x, unsigned short idx)
 Node (const Node &n)
Nodeoperator= (const Node &n)
bool operator< (const Node &n) const
bool operator> (const Node &n) const
bool operator== (const Node &n) const
unsigned short getIndex () const
double getValue () const
Node setLeft (const Node &node)
Node setRight (const Node &node)
 ~Node ()
 Node ()
 Node (double x, unsigned short idx)
 Node (const Node &n)
Nodeoperator= (const Node &n)
bool operator< (const Node &n) const
bool operator> (const Node &n) const
bool operator== (const Node &n) const
unsigned short getIndex () const
double getValue () const
unsigned short setLeft (const Node &node)
unsigned short setRight (const Node &node)
 ~Node ()

Private Attributes

Nodeleft
Noderight
double x
unsigned short idx

Constructor & Destructor Documentation

Node::Node ( )
inline
Node::Node ( double  x,
unsigned short  idx 
)
inline
Node::Node ( const Node n)
inline
Node::~Node ( )
inline
Node::Node ( )
inline
Node::Node ( double  x,
unsigned short  idx 
)
inline
Node::Node ( const Node n)
inline
Node::~Node ( )
inline

Member Function Documentation

unsigned short Node::getIndex ( ) const
inline
unsigned short Node::getIndex ( ) const
inline
double Node::getValue ( ) const
inline
double Node::getValue ( ) const
inline
bool Node::operator< ( const Node n) const
inline
bool Node::operator< ( const Node n) const
inline
Node& Node::operator= ( const Node n)
inline
Node& Node::operator= ( const Node n)
inline
bool Node::operator== ( const Node n) const
inline
bool Node::operator== ( const Node n) const
inline
bool Node::operator> ( const Node n) const
inline
bool Node::operator> ( const Node n) const
inline
Node Node::setLeft ( const Node node)
inline
Returns
if the node is new, return the node. If the node exists in the tree, return the node in the tree.
unsigned short Node::setLeft ( const Node node)
inline
Returns
if the node is new, return the index. If the node exists in the tree, return the index in the tree.
Node Node::setRight ( const Node node)
inline
Returns
if the node is new, return the node. If the node exists in the tree, return the node in the tree.
unsigned short Node::setRight ( const Node node)
inline
Returns
if the node is new, return the index. If the node exists in the tree, return the index in the tree.

Member Data Documentation

unsigned short Node::idx
private
Node * Node::left
private
Node * Node::right
private
double Node::x
private

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