ordered_list.h

Go to the documentation of this file.
00001 #ifndef ORDERED_LIST_CLASS
00002 #define ORDERED_LIST_CLASS
00003 
00004 /*****************************************************************************\
00005 *                                                                             *
00006 *  Name   : ordered_list                                                      *
00007 *  Author : M McLeod                                                          *
00008 *                                                                             *
00009 *******************************************************************************
00010 * Copyright (c) 2000-$now By Author.  This program is free software; you can  *
00011 * redistribute it and/or modify it under the terms of the GNU General Public  *
00012 * License as published by the Free Software Foundation; either version 2 of   *
00013 * the License or (at your option) any later version.  This is online at:      *
00014 *     http://www.fsf.org/copyleft/gpl.html                                    *
00015 * Please send any updates to: fred@gruntose.com                               *
00016 \*****************************************************************************/
00017 
00018 #include "list.h"
00019 #include "ordered_node.h"
00020 #include "node_dll.h"
00021 
00022 namespace nodes {
00023 
00025 
00026 class NODES_CLASS_STYLE ordered_list : public list {
00027 
00028 public:
00029 
00030     ordered_list()
00031       : list()
00032         {}
00034 
00035     ~ordered_list()
00036         {}
00037 
00038     bool insert(ordered_node *new_node, 
00039                 int compare_mode = ordered_node::EXACT, 
00040                 bool duplicates = false);
00042 
00046     const ordered_node *find(   const ordered_node *to_find, 
00047                                 int compare_mode = ordered_node::EXACT,
00048                                 list::iterator *use_iter = NULL) const;
00050 
00055 };
00056 
00057 } // namespace.
00058 
00059 #endif

Generated on Fri Nov 28 04:29:17 2008 for HOOPLE Libraries by  doxygen 1.5.1