Merge branch '1.4.x'
[cvc5.git] / src / util / record.cpp
1 /********************* */
2 /*! \file record.cpp
3 ** \verbatim
4 ** Original author: Morgan Deters
5 ** Major contributors: none
6 ** Minor contributors (to current version): none
7 ** This file is part of the CVC4 project.
8 ** Copyright (c) 2009-2014 New York University and The University of Iowa
9 ** See the file COPYING in the top-level source directory for licensing
10 ** information.\endverbatim
11 **
12 ** \brief A class representing a record definition
13 **
14 ** A class representing a record definition.
15 **/
16
17 #include "util/record.h"
18
19 using namespace std;
20
21 namespace CVC4 {
22
23 std::ostream& operator<<(std::ostream& os, const Record& r) {
24 os << "[# ";
25 bool first = true;
26 for(Record::iterator i = r.begin(); i != r.end(); ++i) {
27 if(!first) {
28 os << ", ";
29 }
30 os << (*i).first << ":" << (*i).second;
31 first = false;
32 }
33 os << " #]";
34
35 return os;
36 }
37
38 }/* CVC4 namespace */