Loading [MathJax]/extensions/ams.js
ALMaSS  1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ALMaSS_Setup.h
Go to the documentation of this file.
1 /*
2 *******************************************************************************************************
3 Copyright (c) 2011, Christopher John Topping, Aarhus University
4 All rights reserved.
5 
6 Redistribution and use in source and binary forms, with or without modification, are permitted provided
7 that the following conditions are met:
8 
9 Redistributions of source code must retain the above copyright notice, this list of conditions and the
10 following disclaimer.
11 Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
12 the following disclaimer in the documentation and/or other materials provided with the distribution.
13 
14 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
15 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
16 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
17 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
18 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
19 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
20 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
21 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22 ********************************************************************************************************
23 */
24 
25 #ifndef __ALMASSSETUP_H
26 #define __ALMASSSETUP_H
27 
28 #define __UNIX
29 #define __64bit
30 
31 //#define __GITVERSION
32 
33 #ifdef __UNIX
34 typedef unsigned int uint32;
35 typedef unsigned long long uint64;
36 #else
37 // Do nothing for the moment - Windows way to do things is standard
38 typedef __int64 uint64;
39 typedef __int32 uint32;
40 #endif
41 
42 #ifdef __64bit
44 #else
45 typedef uint32 PointerInt;
46 #endif
47 
52 class APoint
53 {
54 public:
55  int m_x;
56  int m_y;
57 
59  {
60  m_x = -1;
61  m_y = -1;
62  }
63  APoint(int a_x, int a_y)
64  {
65  m_x = a_x;
66  m_y = a_y;
67  }
68 };
69 
70 
71 
72 #endif
uint64
unsigned long long uint64
Definition: ALMaSS_Setup.h:35
uint32
unsigned int uint32
Definition: ALMaSS_Setup.h:34
PointerInt
uint64 PointerInt
Definition: ALMaSS_Setup.h:43
APoint
A simple class defining an x,y coordinate set.
Definition: ALMaSS_Setup.h:52
APoint::APoint
APoint(int a_x, int a_y)
Definition: ALMaSS_Setup.h:63
APoint::APoint
APoint()
Definition: ALMaSS_Setup.h:58
APoint::m_x
int m_x
Definition: ALMaSS_Setup.h:55
APoint::m_y
int m_y
Definition: ALMaSS_Setup.h:56