carl  24.04
Computer ARithmetic Library
UninterpretedFunction.cpp
Go to the documentation of this file.
1 /**
2  * @file UninterpretedFunction.cpp
3  * @author Florian Corzilius <corzilius@cs.rwth-aachen.de>
4  * @since 2014-10-30
5  * @version 2014-10-30
6  */
7 
9 
10 #include "../sort/Sort.h"
11 #include "UFManager.h"
12 
13 #include <iostream>
14 #include <vector>
15 
16 namespace carl
17 {
18  const std::string& UninterpretedFunction::name() const {
19  return UFManager::getInstance().get_name(*this);
20  }
21 
22  const std::vector<Sort>& UninterpretedFunction::domain() const {
23  return UFManager::getInstance().getDomain(*this);
24  }
25 
27  return UFManager::getInstance().getCodomain(*this);
28  }
29 }
carl is the main namespace for the library.
static UFManager & 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
Sort getCodomain(const UninterpretedFunction &uf) const
Definition: UFManager.h:175
const std::string & get_name(const UninterpretedFunction &uf) const
Definition: UFManager.h:159
const std::vector< Sort > & getDomain(const UninterpretedFunction &uf) const
Definition: UFManager.h:167
const std::string & name() const
const std::vector< Sort > & domain() const