Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
int.h
Go to the documentation of this file.
1 // ======================================================================
2 //
3 // Copyright (c) 1999 The CGAL Consortium
4 
5 // This software and related documentation is part of the Computational
6 // Geometry Algorithms Library (CGAL).
7 // This software and documentation is provided "as-is" and without warranty
8 // of any kind. In no event shall the CGAL Consortium be liable for any
9 // damage of any kind.
10 //
11 // Every use of CGAL requires a license.
12 //
13 // Academic research and teaching license
14 // - For academic research and teaching purposes, permission to use and copy
15 // the software and its documentation is hereby granted free of charge,
16 // provided that it is not a component of a commercial product, and this
17 // notice appears in all copies of the software and related documentation.
18 //
19 // Commercial licenses
20 // - A commercial license is available through Algorithmic Solutions, who also
21 // markets LEDA (http://www.algorithmic-solutions.de).
22 // - Commercial users may apply for an evaluation license by writing to
23 // Algorithmic Solutions (contact@algorithmic-solutions.com).
24 //
25 // The CGAL Consortium consists of Utrecht University (The Netherlands),
26 // ETH Zurich (Switzerland), Free University of Berlin (Germany),
27 // INRIA Sophia-Antipolis (France), Martin-Luther-University Halle-Wittenberg
28 // (Germany), Max-Planck-Institute Saarbrucken (Germany), RISC Linz (Austria),
29 // and Tel-Aviv University (Israel).
30 //
31 // ----------------------------------------------------------------------
32 //
33 // release : CGAL-2.2
34 // release_date : 2000, September 30
35 //
36 // source : Int.fw
37 // file : include/CGAL/int.h
38 // package : Number_types (3.4)
39 // revision : 3.4
40 // revision_date : 13 Jul 2000
41 // author(s) : Stefan Schirra
42 //
43 //
44 // coordinator : MPI, Saarbruecken (<Stefan.Schirra>)
45 // email : contact@cgal.org
46 // www : http://www.cgal.org
47 //
48 // ======================================================================
49 
50 
51 #ifndef CGAL_INT_H
52 #define CGAL_INT_H
53 
54 #ifndef CGAL_NUMBER_TYPE_TAGS_H
55 #include <CGAL/number_type_tags.h>
56 #endif // CGAL_NUMBER_TYPE_TAGS_H
57 
58 // int
59 
61 
62 
63 inline
64 double
66 { return (double)i; }
67 
68 inline
71 { return Number_tag(); }
72 
73 inline
74 bool
76 { return true; }
77 
78 inline
79 bool
81 { return true; }
82 
83 inline
85 io_tag(int)
86 { return io_Operator(); }
87 
88 // long
89 
90 inline
91 double
92 to_double(long int i)
93 { return (double)i; }
94 
95 inline
97 number_type_tag(long int)
98 { return Number_tag(); }
99 
100 inline
101 bool
102 is_finite(long int)
103 { return true; }
104 
105 inline
106 bool
107 is_valid(long int)
108 { return true; }
109 
110 inline
112 io_tag(long int)
113 { return io_Operator(); }
114 
115 // short
116 
117 inline
118 double
119 to_double(short int i)
120 { return (double)i; }
121 
122 inline
124 number_type_tag(short int)
125 { return Number_tag(); }
126 
127 inline
128 bool
129 is_finite(short int)
130 { return true; }
131 
132 inline
133 bool
134 is_valid(short int)
135 { return true; }
136 
137 inline
139 io_tag(short int)
140 { return io_Operator(); }
141 
142 // long long
143 
144 #ifdef LONG_LONG
145 
146 inline
147 double
148 to_double(long long i)
149 { return (double)i; }
150 
151 inline
153 number_type_tag(long long)
154 { return Number_tag(); }
155 
156 inline
157 bool
158 is_finite(long long)
159 { return true; }
160 
161 inline
162 bool
163 is_valid(long long)
164 { return true; }
165 #endif // LONG_LONG
166 
167 // io_tags for unsigned types
168 inline
170 io_tag(unsigned char)
171 { return io_Operator(); }
172 
173 inline
175 io_tag(unsigned short)
176 { return io_Operator(); }
177 
178 inline
180 io_tag(unsigned int)
181 { return io_Operator(); }
182 
183 inline
185 io_tag(unsigned long)
186 { return io_Operator(); }
187 
189 
190 
191 #endif // CGAL_INT_H
io_Operator io_tag(double)
Definition: double.h:200
CGAL_BEGIN_NAMESPACE double to_double(double d)
Definition: double.h:68
blockLoc i
Definition: read.cpp:79
bool is_finite(double d)
Definition: double.h:190
bool is_valid(double d)
Definition: double.h:185
#define CGAL_BEGIN_NAMESPACE
Definition: kdtree_d.h:86
Number_tag number_type_tag(double)
Definition: double.h:83
#define CGAL_END_NAMESPACE
Definition: kdtree_d.h:87