Z3
ConstructorList.cs
Go to the documentation of this file.
1 /*++
2 Copyright (c) 2012 Microsoft Corporation
3 
4 Module Name:
5 
6  ConstructorList.cs
7 
8 Abstract:
9 
10  Z3 Managed API: Constructor Lists
11 
12 Author:
13 
14  Christoph Wintersteiger (cwinter) 2012-11-23
15 
16 Notes:
17 
18 --*/
19 
20 using System;
21 using System.Collections.Generic;
22 using System.Linq;
23 using System.Text;
24 
25 using System.Diagnostics.Contracts;
26 
27 namespace Microsoft.Z3
28 {
32  public class ConstructorList : Z3Object
33  {
38  {
39  Native.Z3_del_constructor_list(Context.nCtx, NativeObject);
40  }
41 
42  #region Internal
43  internal ConstructorList(Context ctx, IntPtr obj)
44  : base(ctx, obj)
45  {
46  Contract.Requires(ctx != null);
47  }
48 
49  internal ConstructorList(Context ctx, Constructor[] constructors)
50  : base(ctx)
51  {
52  Contract.Requires(ctx != null);
53  Contract.Requires(constructors != null);
54 
55  NativeObject = Native.Z3_mk_constructor_list(Context.nCtx, (uint)constructors.Length, Constructor.ArrayToNative(constructors));
56  }
57  #endregion
58  }
59 }
Lists of constructors
using System
static void Z3_del_constructor_list(Z3_context a0, Z3_constructor_list a1)
Definition: Native.cs:2265
Constructors are used for datatype sorts.
Definition: Constructor.cs:29
static Z3_constructor_list Z3_mk_constructor_list(Z3_context a0, uint a1, [In] Z3_constructor[] a2)
Definition: Native.cs:2257
The main interaction with Z3 happens via the Context.
Definition: Context.cs:31
Internal base class for interfacing with native Z3 objects. Should not be used externally.
Definition: Z3Object.cs:31