123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- /*
- * Copyright 2001 Adrian Thurston <thurston@cs.queensu.ca>
- */
- /* This file is part of Aapl.
- *
- * Aapl is free software; you can redistribute it and/or modify it under the
- * terms of the GNU Lesser General Public License as published by the Free
- * Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- *
- * Aapl is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
- * more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with Aapl; if not, write to the Free Software Foundation, Inc., 59
- * Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
- #ifndef _AAPL_DLIST_H
- #define _AAPL_DLIST_H
- #define BASE_EL(name) name
- #define DLMEL_TEMPDEF class Element
- #define DLMEL_TEMPUSE Element
- #define DList DList
- /**
- * \addtogroup dlist
- * @{
- */
- /**
- * \class DList
- * \brief Basic doubly linked list.
- *
- * DList is the standard by-structure list type. This class requires the
- * programmer to declare a list element type that has the necessary next and
- * previous pointers in it. This can be achieved by inheriting from the
- * DListEl class or by simply adding next and previous pointers directly into
- * the list element class.
- *
- * DList does not assume ownership of elements in the list. If the elements
- * are known to reside on the heap, the provided empty() routine can be used to
- * delete all elements, however the destructor will not call this routine, it
- * will simply abandon all the elements. It is up to the programmer to
- * explicitly de-allocate items when necessary.
- *
- * \include ex_dlist.cpp
- */
- /*@}*/
- #include "dlcommon.h"
- #undef BASE_EL
- #undef DLMEL_TEMPDEF
- #undef DLMEL_TEMPUSE
- #undef DList
- #endif /* _AAPL_DLIST_H */
|