Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
rfc_basic.h
Go to the documentation of this file.
1 /* *******************************************************************
2  * Rocstar Simulation Suite *
3  * Copyright@2015, Illinois Rocstar LLC. All rights reserved. *
4  * *
5  * Illinois Rocstar LLC *
6  * Champaign, IL *
7  * www.illinoisrocstar.com *
8  * sales@illinoisrocstar.com *
9  * *
10  * License: See LICENSE file in top level of distribution package or *
11  * http://opensource.org/licenses/NCSA *
12  *********************************************************************/
13 /* *******************************************************************
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, *
15  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES *
16  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND *
17  * NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR *
18  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
19  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *
20  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE *
21  * USE OR OTHER DEALINGS WITH THE SOFTWARE. *
22  *********************************************************************/
23 // $Id: rfc_basic.h,v 1.15 2008/12/06 08:43:26 mtcampbe Exp $
24 
25 #ifndef RFC_BASIC_H
26 #define RFC_BASIC_H
27 
28 #define RFC_BEGIN_NAME_SPACE namespace RFC {
29 #define RFC_END_NAME_SPACE }
30 
31 #define USE_RFC_NAME_SPACE using namespace RFC;
32 
33 #include <CGAL/Simple_cartesian.h>
34 #include "../Rocsurf/include/surfbasic.h"
35 #include "../Rocsurf/include/Generic_element_2.h"
36 #include <vector>
37 
39 
40 typedef double Real;
41 typedef SURF::Point_3<Real> Point_3;
42 typedef SURF::Vector_3<Real> Vector_3;
43 typedef SURF::Vector_2<Real> Point_2;
44 typedef SURF::Vector_2<Real> Vector_2;
45 typedef SURF::Point_2<float> Point_2S;
46 typedef SURF::Generic_element_2 Generic_element;
47 
48 enum Color { NONE=-1, BLUE=0, GREEN=1, OVERLAY=2 };
51 
52 template <class _TT>
53 inline void
54 free_vector( std::vector< _TT> &v) { std::vector<_TT> t; v.swap(t); }
55 
56 using CGAL::Bbox_3;
57 using CGAL::IO;
60 using CGAL::Tag_false;
61 using CGAL::Tag_true;
62 
63 #define RFC_precondition CGAL_precondition
64 #define RFC_postcondition CGAL_postcondition
65 #define RFC_assertion CGAL_assertion
66 #define RFC_postcondition CGAL_postcondition
67 #define RFC_assertion_msg CGAL_assertion_msg
68 #define RFC_assertion_code CGAL_assertion_code
69 
71 
72 #endif // RFC_BASIC_H
73 
74 
75 
76 
77 
78 
SURF::Vector_2< Real > Vector_2
Definition: rfc_basic.h:44
void free_vector(std::vector< _TT > &v)
Definition: rfc_basic.h:54
SURF::Point_2< float > Point_2S
Definition: rfc_basic.h:45
double Real
Definition: mapbasic.h:322
SURF::Vector_3< Real > Vector_3
Definition: rfc_basic.h:42
SURF::Generic_element_2 Generic_element
Definition: rfc_basic.h:46
const Color GREEN
Definition: Color.C:59
*********************************************************************Illinois Open Source License ****University of Illinois NCSA **Open Source License University of Illinois All rights reserved ****Developed free of to any person **obtaining a copy of this software and associated documentation to deal with the Software without including without limitation the rights to and or **sell copies of the and to permit persons to whom the **Software is furnished to do subject to the following this list of conditions and the following disclaimers ****Redistributions in binary form must reproduce the above **copyright this list of conditions and the following **disclaimers in the documentation and or other materials **provided with the distribution ****Neither the names of the Center for Simulation of Advanced the University of nor the names of its **contributors may be used to endorse or promote products derived **from this Software without specific prior written permission ****THE SOFTWARE IS PROVIDED AS WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **ARISING OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE v
Definition: roccomf90.h:20
IO::Mode set_binary_mode(std::ios &i)
Definition: io.C:79
#define RFC_END_NAME_SPACE
Definition: rfc_basic.h:29
Parent_type
Definition: rfc_basic.h:49
Definition: rfc_basic.h:48
#define RFC_BEGIN_NAME_SPACE
Definition: rfc_basic.h:28
const Color BLUE
Definition: Color.C:62
Definition: Color.h:58
SURF::Point_3< Real > Point_3
Definition: rfc_basic.h:41
IO::Mode set_ascii_mode(std::ios &i)
Definition: io.C:70
SURF::Vector_2< Real > Point_2
Definition: rfc_basic.h:43