~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/include/llvm/ADT/ilist_node.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-03-12 11:30:04 UTC
  • mfrom: (0.41.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100312113004-b0fop4bkycszdd0z
Tags: 0.96~rc1+dfsg-0ubuntu1
* New upstream RC - FFE (LP: #537636):
  - Add OfficialDatabaseOnly option to clamav-base.postinst.in
  - Add LocalSocketGroup option to clamav-base.postinst.in
  - Add LocalSocketMode option to clamav-base.postinst.in
  - Add CrossFilesystems option to clamav-base.postinst.in
  - Add ClamukoScannerCount option to clamav-base.postinst.in
  - Add BytecodeSecurity opiton to clamav-base.postinst.in
  - Add DetectionStatsHostID option to clamav-freshclam.postinst.in
  - Add Bytecode option to clamav-freshclam.postinst.in
  - Add MilterSocketGroup option to clamav-milter.postinst.in
  - Add MilterSocketMode option to clamav-milter.postinst.in
  - Add ReportHostname option to clamav-milter.postinst.in
  - Bump libclamav SO version to 6.1.0 in libclamav6.install
  - Drop clamdmon from clamav.examples (no longer shipped by upstream)
  - Drop libclamav.a from libclamav-dev.install (not built by upstream)
  - Update SO version for lintian override for libclamav6
  - Add new Bytecode Testing Tool, usr/bin/clambc, to clamav.install
  - Add build-depends on python and python-setuptools for new test suite
  - Update debian/copyright for the embedded copy of llvm (using the system
    llvm is not currently feasible)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//==-- llvm/ADT/ilist_node.h - Intrusive Linked List Helper ------*- C++ -*-==//
 
2
//
 
3
//                     The LLVM Compiler Infrastructure
 
4
//
 
5
// This file is distributed under the University of Illinois Open Source
 
6
// License. See LICENSE.TXT for details.
 
7
//
 
8
//===----------------------------------------------------------------------===//
 
9
//
 
10
// This file defines the ilist_node class template, which is a convenient
 
11
// base class for creating classes that can be used with ilists.
 
12
//
 
13
//===----------------------------------------------------------------------===//
 
14
 
 
15
#ifndef LLVM_ADT_ILIST_NODE_H
 
16
#define LLVM_ADT_ILIST_NODE_H
 
17
 
 
18
namespace llvm {
 
19
 
 
20
template<typename NodeTy>
 
21
struct ilist_traits;
 
22
 
 
23
/// ilist_half_node - Base class that provides prev services for sentinels.
 
24
///
 
25
template<typename NodeTy>
 
26
class ilist_half_node {
 
27
  friend struct ilist_traits<NodeTy>;
 
28
  NodeTy *Prev;
 
29
protected:
 
30
  NodeTy *getPrev() { return Prev; }
 
31
  const NodeTy *getPrev() const { return Prev; }
 
32
  void setPrev(NodeTy *P) { Prev = P; }
 
33
  ilist_half_node() : Prev(0) {}
 
34
};
 
35
 
 
36
template<typename NodeTy>
 
37
struct ilist_nextprev_traits;
 
38
 
 
39
/// ilist_node - Base class that provides next/prev services for nodes
 
40
/// that use ilist_nextprev_traits or ilist_default_traits.
 
41
///
 
42
template<typename NodeTy>
 
43
class ilist_node : private ilist_half_node<NodeTy> {
 
44
  friend struct ilist_nextprev_traits<NodeTy>;
 
45
  friend struct ilist_traits<NodeTy>;
 
46
  NodeTy *Next;
 
47
  NodeTy *getNext() { return Next; }
 
48
  const NodeTy *getNext() const { return Next; }
 
49
  void setNext(NodeTy *N) { Next = N; }
 
50
protected:
 
51
  ilist_node() : Next(0) {}
 
52
};
 
53
 
 
54
} // End llvm namespace
 
55
 
 
56
#endif