mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 19:05:51 +00:00
59 lines
1.2 KiB
C#
59 lines
1.2 KiB
C#
/*++
|
|
Copyright (c) 2012 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
ConstructorList.cs
|
|
|
|
Abstract:
|
|
|
|
Z3 Managed API: Constructor Lists
|
|
|
|
Author:
|
|
|
|
Christoph Wintersteiger (cwinter) 2012-11-23
|
|
|
|
Notes:
|
|
|
|
--*/
|
|
|
|
using System.Diagnostics;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
|
|
namespace Microsoft.Z3
|
|
{
|
|
/// <summary>
|
|
/// Lists of constructors
|
|
/// </summary>
|
|
public class ConstructorList : Z3Object
|
|
{
|
|
/// <summary>
|
|
/// Destructor.
|
|
/// </summary>
|
|
~ConstructorList()
|
|
{
|
|
Native.Z3_del_constructor_list(Context.nCtx, NativeObject);
|
|
}
|
|
|
|
#region Internal
|
|
internal ConstructorList(Context ctx, IntPtr obj)
|
|
: base(ctx, obj)
|
|
{
|
|
Debug.Assert(ctx != null);
|
|
}
|
|
|
|
internal ConstructorList(Context ctx, Constructor[] constructors)
|
|
: base(ctx)
|
|
{
|
|
Debug.Assert(ctx != null);
|
|
Debug.Assert(constructors != null);
|
|
|
|
NativeObject = Native.Z3_mk_constructor_list(Context.nCtx, (uint)constructors.Length, Constructor.ArrayToNative(constructors));
|
|
}
|
|
#endregion
|
|
}
|
|
}
|