~ubuntu-branches/ubuntu/gutsy/libcorelinux/gutsy

« back to all changes in this revision

Viewing changes to corelinux/Queue.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme
  • Date: 2001-12-29 17:43:34 UTC
  • Revision ID: james.westby@ubuntu.com-20011229174334-ejlsuilsiro5vmzr
Tags: 0.4.32-4
* fix config.{guess,sub} out of date on hppa and s390 (closes: #124296,#121830)
* try to be more descriptive in the description of the package  (closes: #115758)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#if   !defined(__QUEUE_HPP)
 
2
#define  __QUEUE_HPP
 
3
 
 
4
/*
 
5
  CoreLinux++ 
 
6
  Copyright (C) 1999 CoreLinux Consortium
 
7
  
 
8
   The CoreLinux++ Library is free software; you can redistribute it and/or
 
9
   modify it under the terms of the GNU Library General Public License as
 
10
   published by the Free Software Foundation; either version 2 of the
 
11
   License, or (at your option) any later version.
 
12
 
 
13
   The CoreLinux++ Library Library is distributed in the hope that it will 
 
14
   be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
16
   Library General Public License for more details.
 
17
 
 
18
   You should have received a copy of the GNU Library General Public
 
19
   License along with the GNU C Library; see the file COPYING.LIB.  If not,
 
20
   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
21
   Boston, MA 02111-1307, USA.  
 
22
*/   
 
23
 
 
24
#if   !defined(__COMMON_HPP)          
 
25
#include <Common.hpp>
 
26
#endif
 
27
  
 
28
// STL includes
 
29
 
 
30
#include <queue>
 
31
 
 
32
namespace   corelinux
 
33
{
 
34
   /**
 
35
   STL queue template. This macro generates all
 
36
   the type references and pointers for the collection and
 
37
   respective iterators for a queue.
 
38
   @param name The name you want to give the collection
 
39
   @param type The type to be queued
 
40
   */
 
41
   #define CORELINUX_QUEUE( type, name )                          \
 
42
      DECLARE_TYPE(std::deque<type>,name);                     \
 
43
      typedef name::iterator name ## Iterator;                 \
 
44
      typedef name::iterator& name ## IteratorRef;             \
 
45
      typedef name::iterator* name ## IteratorPtr;             \
 
46
      typedef name::const_iterator name ## ConstIterator;      \
 
47
      typedef name::const_iterator& name ## ConstIteratorRef;  \
 
48
      typedef name::const_iterator* name ## ConstIteratorPtr;  \
 
49
      typedef name::reverse_iterator name ## Riterator;        \
 
50
      typedef name::reverse_iterator& name ## RiteratorRef;    \
 
51
      typedef name::reverse_iterator* name ## RiteratorPtr
 
52
 
 
53
}
 
54
 
 
55
#endif
 
56
 
 
57
/*
 
58
   Common rcs information do not modify
 
59
   $Author: prudhomm $
 
60
   $Revision: 1.3 $
 
61
   $Date: 2000/08/31 22:52:20 $
 
62
   $Locker:  $
 
63
*/
 
64
 
 
65