Source: dictionaryset.h


Annotated List
Files
Globals
Hierarchy
Index
// ##########################################################################
// ####                                                                  ####
// ####                      RTP Audio Server Project                    ####
// ####                    ============================                  ####
// ####                                                                  ####
// #### Dictionary Set Template                                          ####
// ####                                                                  ####
// #### Version 1.00  --  February 04, 2001                              ####
// ####                                                                  ####
// #### Copyright (C) 1999  Thomas Dreibholz                             ####
// ####               2000  Universität Bonn, Abt. IV                    ####
// ####               2001  EMail: Dreibholz@bigfoot.com                 ####
// ####                     WWW:   http://www.bigfoot.com/~dreibholz     ####
// ####                                                                  ####
// ##########################################################################


#ifndef DICTIONARYSET_H
#define DICTIONARYSET_H


#include "system.h"
#include "dictionarybag.h"


/**
  * This class implements the DictionarySet datatype template.
  *
  * @short   Dictionary Set
  * @author  Thomas Dreibholz (Dreibholz@bigfoot.com)
  * @version 1.0
  */    
template<class K, class T> class DictionarySet : public DictionaryBag<K,T>
{
   // ====== Element add/remove functions ===================================
   public:
   /**
     * Add element to head of set, if not already in set.
     *
     * @param key Key of element to be added.
     * @param element Element to be added.
     * @return true, if element has been added; false, if not.
     */
   bool addHead(K key, T element);

   /**
     * Add element to tail of set, if not already in set.
     *
     * @param key Key of element to be added.
     * @param element Element to be added.
     * @return true, if element has been added; false, if not.
     */
   bool addTail(K key, T element);

   /**
     * Add element to set, if not already in set.
     *
     * @param key Key of element to be added.
     * @param element Element to be added.
     * @return true, if the element has been added; false, if not.
     */
   bool add(K key, T element);
};


#include "dictionaryset.icc"


#endif

Generated by: viper@odin on Sun Feb 4 18:54:51 2001, using kdoc 2.0a22.