carl  24.04
Computer ARithmetic Library
Sort.cpp
Go to the documentation of this file.
1 /**
2  * @file Sort.cpp
3  * @author Gereon Kremer <gereon.kremer@cs.rwth-aachen.de>
4  * @author Florian Corzilius <corzilius@cs.rwth-aachen.de>
5  * @since 2014-10-30
6  * @version 2014-10-30
7  */
8 
9 #include "Sort.h"
10 
11 #include "SortManager.h"
12 
13 namespace carl {
14  std::size_t Sort::arity() const {
15  return SortManager::getInstance().getArity(*this);
16  }
17 
18  std::ostream& operator<<(std::ostream& _os, const Sort& _sort) {
19  return SortManager::getInstance().print(_os, _sort);
20  }
21 }
carl is the main namespace for the library.
std::ostream & operator<<(std::ostream &os, const BasicConstraint< Poly > &c)
Prints the given constraint on the given stream.
static SortManager & getInstance()
Returns the single instance of this class by reference.
Definition: Singleton.h:45
Implements a sort (for defining types of variables and functions).
Definition: Sort.h:20
std::size_t arity() const
Definition: Sort.cpp:14
std::size_t getArity(const Sort &sort) const
Definition: SortManager.cpp:67
std::ostream & print(std::ostream &os, const Sort &sort) const
Prints the given sort on the given output stream.
Definition: SortManager.cpp:13