forked from Macad3D/Macad3D
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTemplates.cs
More file actions
42 lines (37 loc) · 1.46 KB
/
Templates.cs
File metadata and controls
42 lines (37 loc) · 1.46 KB
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
using System.Collections.Generic;
namespace Macad.Occt.Generator;
public partial class Configuration
{
/*
* Template based collections must be declared in a special way when
* compiling with CastXML, so they need to be declared here.
*/
public struct TemplateDefinition
{
public string Name { get; init; }
public int TemplateParameterCount { get; init; }
public bool IncludeIterator { get; init; }
public TemplateDefinition(string name, int paramCount, bool includeIterator)
{
Name = name;
TemplateParameterCount = paramCount;
IncludeIterator = includeIterator;
}
}
public static List<TemplateDefinition> Templates = new()
{
new ("NCollection_Array1", 1, true),
new ("NCollection_Array2", 1, true),
new ("NCollection_TListIterator", 1, false),
new ("NCollection_List", 1, true),
new ("NCollection_Map", 2, true),
new ("NCollection_IndexedMap", 2, true),
new ("NCollection_DataMap", 3, true),
new ("NCollection_IndexedDataMap", 3, true),
new ("NCollection_Sequence", 1, true),
new ("NCollection_Vec2", 1, false),
new ("NCollection_DefaultHasher", 1, false),
new ("NCollection_Lerp", 1, false),
new ("NCollection_Vector", 1, true)
};
}