//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project / UNI
//
//File: uniset
//
//Version: $Revision: 1.4 $
//
//State: $State: Exp $
//
//Date: $Date: 1998/12/14 06:56:33 $
//
//Organisation:
//      Helsinki University of Technology
//      Laboratory of Telecommunications Software and Multimedia
//
//Author:
//      Jari Katajavuori
//
//Description:
//      Set for PMP object book keeping.
//
//Copyright:
//      Copyright 1999 Helsinki University of Technology
//      ALL RIGHTS RESERVED BETWEEN JANUARY 1996 AND JUNE 1999.
//
//Licence:
//
//
//History:

#include "uniset.h"

uniSet :: uniSet(void)
    : _set()
{
    return;
}

uniSet :: uniSet(const uniSet &other_)
    : _set(other_._set)
{
    return;
}

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

void uniSet :: insert(pfUlong value_)
{
    _set.insert(value_);
    return;
}

void uniSet :: erase(pfUlong value_)
{
    _set.erase(value_);
    return;
}

void uniSet :: clear(void)
{
    setType emptySet;
    _set = emptySet;
    return;
}

bool uniSet :: empty(void)
{
    bool result = _set.empty();
    return result;
}

bool uniSet :: exists(pfUlong value_)
{
    setConstIterType iter = _set.find(value_);
    bool result = (iter != _set.end());
    return result;
}

void uniSet :: beginGoThrough(void)
{
    _iter = _set.begin();
    return;
}

void uniSet :: next(void)
{
    ++_iter;
    return;
}

bool uniSet :: isDone(void) const
{
    bool result = (_iter == _set.end()) ? 1 : 0;
    return result;
}

pfUlong uniSet :: currentItem(void) const
{
    pfUlong result = (*_iter);
    return result;
}

