forked from shangerxin/BookNotes
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathC++ common library; Note = Erxin.txt
53 lines (44 loc) · 1.81 KB
/
C++ common library; Note = Erxin.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
C++ common library; Note = Erxin
:GTL Geometry Template Library
>for stl-like polygon manipulation
>features
- Benchmark Comparisons
* Manhattan
* 45-degree
* Arbitrary Angle (XOR)
* exp.
void clip_and_subtract(polygon_set& d,
polygon a, polygon b, rectangle c) {
d = (a & c) - b;
}
- Generic Sweep-line, Booleans Algorithm
Rectangle query tree
Maximum enclosed rectangle in
Manhattan polygon
Connectivity Extraction
Property Merge/Map Overlay
- Numerical Robustness
- Geometry Concepts, Type System
- Booleans Operator Syntax
:STL
:ATL
:WTL
:Boost
:Other microsoft compiler features
>calling conventions
- __cdecl, This is the default calling convention for C and C++ programs.
// Example of the __cdecl keyword on function
int __cdecl system(const char *);
- __clrcall, Specifies that a function can only be called from managed code.
// clrcall2.cpp
// compile with: /clr
using namespace System;
int __clrcall Func1() {
Console::WriteLine("in Func1");
return 0;
}
- __stdcall, The __stdcall calling convention is used to call Win32 API functions.
void __stdcall CMyClass::mymethod() { return; }
- __fastcall, The __fastcall calling convention specifies that arguments to functions are to be passed in registers, when possible.
- __thiscall, The __thiscall calling convention is used on member functions and is the default calling convention used by C++ member functions that do not use variable arguments.
>MIDL, The Microsoft Interface Definition Language (MIDL) defines interfaces between client and server programs. Microsoft includes the MIDL compiler with the Platform Software Development Kit (SDK) to enable developers to create the interface definition language (IDL) files and application configuration files (ACF) required for remote procedure call (RPC) interfaces and COM/DCOM interfaces.