//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project / TRS
//
//File: node.cpp
//
//Version: $Revision: 1.2 $
//
//State: $State: Exp $
//
//Date: $Date: 1998/10/06 13:38:23 $
//
//Organisation:
//      Helsinki University of Technology
//      Laboratory of Telecommunications Software and Multimedia
//
//Author:
//      Harri Sunila
//
//Description:
//      See corresponding header file.
//
//Copyright:
//      Copyright 1999 Helsinki University of Technology
//      ALL RIGHTS RESERVED BETWEEN JANUARY 1996 AND JUNE 1999.
//
//Licence:
//
//
//History: 

#include "node.h"

//
// Function: trsNode
//
// Description:  
//

trsNode :: trsNode(void)
    : _prefix(),
      _links()
{
    return;
}

//
// Function: trsNode
//
// Description:  
//

trsNode :: trsNode(const string &prefix_,
                   trsLinkList &links_)
    : _prefix(prefix_),
      _links(links_)
{
    return;
}

//
// Function: trsNode
//
// Description:  
//

trsNode :: trsNode(const trsNode &other_)
    : _prefix(other_._prefix),
      _links(other_._links)
{
    return;
}

//
// Function: ~trsNode
//
// Description:  
//

trsNode :: ~trsNode(void)
{
    return;
}

//
// Function: operator=
//
// Description:  
//

trsNode &trsNode :: operator=(const trsNode &other_)
{
    if(this != &other_)
    {
        _prefix = other_._prefix;
        _links = other_._links;
    }
    return *this;
}

//
// Function: getPrefix
//
// Description:  
//

string trsNode :: getPrefix(void) const
{
    return _prefix;
}

//
// Function: getLinks
//
// Description:  
//

trsLinkList &trsNode :: getLinks(void) const
{
    return _links;
}
