Implements a sort (for defining types of variables and functions).
More...
#include <Sort.h>
|
| Sort () noexcept=default |
|
std::size_t | arity () const |
|
std::size_t | id () const |
|
|
std::size_t | mId = 0 |
| A unique id to identify this sort in the sort manager. More...
|
|
Implements a sort (for defining types of variables and functions).
Definition at line 20 of file Sort.h.
◆ Sort() [1/2]
carl::Sort::Sort |
( |
std::size_t |
id | ) |
|
|
inlineexplicitprivate |
Constructs a sort.
- Parameters
-
_id | The id of the sort to construct. |
Definition at line 34 of file Sort.h.
◆ Sort() [2/2]
◆ arity()
std::size_t carl::Sort::arity |
( |
| ) |
const |
- Returns
- The aritiy of this sort.
Definition at line 14 of file Sort.cpp.
◆ id()
std::size_t carl::Sort::id |
( |
| ) |
const |
|
inline |
- Returns
- The id of this sort.
Definition at line 48 of file Sort.h.
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
_os, |
|
|
const Sort & |
_sort |
|
) |
| |
|
friend |
Prints the given sort on the given output stream.
- Parameters
-
_os | The output stream to print on. |
_sort | The sort to print. |
- Returns
- The output stream after printing the given sort on it.
Definition at line 18 of file Sort.cpp.
◆ SortManager
◆ mId
std::size_t carl::Sort::mId = 0 |
|
private |
A unique id to identify this sort in the sort manager.
Definition at line 28 of file Sort.h.
The documentation for this class was generated from the following files: