diff options
Diffstat (limited to 'src/context/cdhashmap_forward.h')
-rw-r--r-- | src/context/cdhashmap_forward.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/context/cdhashmap_forward.h b/src/context/cdhashmap_forward.h new file mode 100644 index 000000000..f1031fec4 --- /dev/null +++ b/src/context/cdhashmap_forward.h @@ -0,0 +1,42 @@ +/********************* */ +/*! \file cdmap_forward.h + ** \verbatim + ** Original author: mdeters + ** Major contributors: none + ** Minor contributors (to current version): none + ** This file is part of the CVC4 prototype. + ** Copyright (c) 2009, 2010, 2011 The Analysis of Computer Systems Group (ACSys) + ** Courant Institute of Mathematical Sciences + ** New York University + ** See the file COPYING in the top-level source directory for licensing + ** information.\endverbatim + ** + ** \brief This is a forward declaration header to declare the CDMap<> + ** template + ** + ** This is a forward declaration header to declare the CDMap<> + ** template. It's useful if you want to forward-declare CDMap<> + ** without including the full cdmap.h header, for example, in a + ** public header context. + ** + ** For CDMap<> in particular, it's difficult to forward-declare it + ** yourself, becase it has a default template argument. + **/ + +#include "cvc4_public.h" + +#ifndef __CVC4__CONTEXT__CDMAP_FORWARD_H +#define __CVC4__CONTEXT__CDMAP_FORWARD_H + +namespace __gnu_cxx { + template <class Key> struct hash; +}/* __gnu_cxx namespace */ + +namespace CVC4 { + namespace context { + template <class Key, class Data, class HashFcn = __gnu_cxx::hash<Key> > + class CDHashMap; + }/* CVC4::context namespace */ +}/* CVC4 namespace */ + +#endif /* __CVC4__CONTEXT__CDMAP_FORWARD_H */ |