carl  24.04
Computer ARithmetic Library
typetraits.h
Go to the documentation of this file.
1 /**
2  * @file adaption_cln/typetraits.h
3  * @ingroup cln
4  * @ingroup typetraits
5  * @author Sebastian Junges
6  * @author Gereon Kremer
7  */
8 
9 #pragma once
10 
11 #ifndef INCLUDED_FROM_NUMBERS_H
12 static_assert(false, "This file may only be included indirectly by numbers.h");
13 #endif
14 
15 #include "../typetraits.h"
16 #include "include.h"
17 
18 namespace carl {
19 
20 TRAIT_TRUE(is_integer_type, cln::cl_I, cln);
21 TRAIT_TRUE(is_rational_type, cln::cl_RA, cln);
22 
23 TRAIT_TYPE(IntegralType, cln::cl_I, cln::cl_I, cln);
24 TRAIT_TYPE(IntegralType, cln::cl_RA, cln::cl_I, cln);
25 
26 }
States if a type is an integer type.
Definition: typetraits.h:203
carl is the main namespace for the library.
States if a type is a rational type.
Definition: typetraits.h:269
Gives the corresponding integral type.
Definition: typetraits.h:310
#define TRAIT_TRUE(name, type, groups)
Definition: typetraits.h:82
#define TRAIT_TYPE(name, _type, value, groups)
Definition: typetraits.h:90