some fixes for Mac OS
[cvc5.git] / src / theory / arrays / type_enumerator.h
1 /********************* */
2 /*! \file type_enumerator.h
3 ** \verbatim
4 ** Original author: mdeters
5 ** Major contributors: none
6 ** Minor contributors (to current version): none
7 ** This file is part of the CVC4 prototype.
8 ** Copyright (c) 2009-2012 The Analysis of Computer Systems Group (ACSys)
9 ** Courant Institute of Mathematical Sciences
10 ** New York University
11 ** See the file COPYING in the top-level source directory for licensing
12 ** information.\endverbatim
13 **
14 ** \brief An enumerator for arrays
15 **
16 ** An enumerator for arrays.
17 **/
18
19 #include "cvc4_private.h"
20
21 #ifndef __CVC4__THEORY__ARRAYS__TYPE_ENUMERATOR_H
22 #define __CVC4__THEORY__ARRAYS__TYPE_ENUMERATOR_H
23
24 #include "theory/type_enumerator.h"
25 #include "expr/type_node.h"
26 #include "expr/kind.h"
27
28 namespace CVC4 {
29 namespace theory {
30 namespace arrays {
31
32 class ArrayEnumerator : public TypeEnumeratorBase<ArrayEnumerator> {
33 TypeEnumerator d_index;
34 TypeEnumerator d_constituent;
35
36 public:
37
38 ArrayEnumerator(TypeNode type) throw(AssertionException) :
39 TypeEnumeratorBase<ArrayEnumerator>(type),
40 d_index(TypeEnumerator(type.getArrayIndexType())),
41 d_constituent(TypeEnumerator(type.getArrayConstituentType())) {
42 }
43
44 Node operator*() throw(NoMoreValuesException) {
45 return Node::null();
46 //return NodeManager::currentNM()->mkConst(Array(d_size, d_bits));
47 }
48
49 ArrayEnumerator& operator++() throw() {
50 return *this;
51 }
52
53 };/* class ArrayEnumerator */
54
55 }/* CVC4::theory::arrays namespace */
56 }/* CVC4::theory namespace */
57 }/* CVC4 namespace */
58
59 #endif /* __CVC4__THEORY__ARRAYS__TYPE_ENUMERATOR_H */