GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/context/cdlist_forward.h Lines: 1 1 100.0 %
Date: 2021-03-23 Branches: 0 0 0.0 %

Line Exec Source
1
/*********************                                                        */
2
/*! \file cdlist_forward.h
3
 ** \verbatim
4
 ** Top contributors (to current version):
5
 **   Tim King, Morgan Deters, Mathias Preiner
6
 ** This file is part of the CVC4 project.
7
 ** Copyright (c) 2009-2021 by the authors listed in the file AUTHORS
8
 ** in the top-level source directory and their institutional affiliations.
9
 ** All rights reserved.  See the file COPYING in the top-level source
10
 ** directory for licensing information.\endverbatim
11
 **
12
 ** \brief This is a forward declaration header to declare the
13
 ** CDList<> template
14
 **
15
 ** This is a forward declaration header to declare the CDList<>
16
 ** template.  It's useful if you want to forward-declare CDList<>
17
 ** without including the full cdlist.h or cdlist_context_memory.h
18
 ** header, for example, in a public header context, or to keep
19
 ** compile times low when only a forward declaration is needed.
20
 **
21
 ** Note that all specializations of the template should be listed
22
 ** here as well, since different specializations are defined in
23
 ** different headers (cdlist.h and cdlist_context_memory.h).
24
 ** Explicitly declaring both specializations here ensure that if you
25
 ** define one, you'll get an error if you didn't include the correct
26
 ** header (avoiding different, incompatible instantiations in
27
 ** different compilation units).
28
 **/
29
30
#include "cvc4_public.h"
31
32
#ifndef CVC4__CONTEXT__CDLIST_FORWARD_H
33
#define CVC4__CONTEXT__CDLIST_FORWARD_H
34
35
#include <memory>
36
37
/// \cond internals
38
39
namespace CVC4 {
40
namespace context {
41
42
template <class T>
43
class DefaultCleanUp {
44
public:
45
59866001
  inline void operator()(T* t CVC4_UNUSED) const{}
46
};
47
48
template <class T, class CleanUp = DefaultCleanUp<T>, class Allocator = std::allocator<T> >
49
class CDList;
50
51
/// \endcond
52
53
}/* CVC4::context namespace */
54
}/* CVC4 namespace */
55
56
#endif /* CVC4__CONTEXT__CDLIST_FORWARD_H */