DotNet Reference

.Net Reference

RevPartialSequence.cs
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 4.0.2
6 //
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
10 
12 
13 using System;
14 using System.Runtime.InteropServices;
15 using System.Collections;
16 using System.Collections.Generic;
17 
18 public partial class RevPartialSequence : global::System.IDisposable {
19  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
20  protected bool swigCMemOwn;
21 
22  internal RevPartialSequence(global::System.IntPtr cPtr, bool cMemoryOwn) {
23  swigCMemOwn = cMemoryOwn;
24  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
25  }
26 
27  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(RevPartialSequence obj) {
28  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
29  }
30 
31  ~RevPartialSequence() {
32  Dispose(false);
33  }
34 
35  public void Dispose() {
36  Dispose(true);
37  global::System.GC.SuppressFinalize(this);
38  }
39 
40  protected virtual void Dispose(bool disposing) {
41  lock(this) {
42  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
43  if (swigCMemOwn) {
44  swigCMemOwn = false;
46  }
47  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
48  }
49  }
50  }
51 
52  public RevPartialSequence( int[] items) : this(operations_research_constraint_solverPINVOKE.new_RevPartialSequence__SWIG_0( items.Length, items ), true) {
53  }
54 
55  public RevPartialSequence(int size) : this(operations_research_constraint_solverPINVOKE.new_RevPartialSequence__SWIG_1(size), true) {
56  }
57 
58  public int NumFirstRanked() {
60  return ret;
61  }
62 
63  public int NumLastRanked() {
65  return ret;
66  }
67 
68  public int Size() {
70  return ret;
71  }
72 
73  public void RankFirst(Solver solver, int elt) {
75  }
76 
77  public void RankLast(Solver solver, int elt) {
79  }
80 
81  public bool IsRanked(int elt) {
83  return ret;
84  }
85 
86  public string ToString() {
88  return ret;
89  }
90 
91 }
92 
93 }
static bool RevPartialSequence_IsRanked(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2)
static string RevPartialSequence_ToString(global::System.Runtime.InteropServices.HandleRef jarg1)
int NumLastRanked()
bool swigCMemOwn
static void RevPartialSequence_RankLast(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3)
static int RevPartialSequence_NumLastRanked(global::System.Runtime.InteropServices.HandleRef jarg1)
void RankLast(Solver solver, int elt)
void Dispose()
int Size()
static int RevPartialSequence_Size(global::System.Runtime.InteropServices.HandleRef jarg1)
void RankFirst(Solver solver, int elt)
using System
Definition: Program.cs:14
static void delete_RevPartialSequence(global::System.Runtime.InteropServices.HandleRef jarg1)
int NumFirstRanked()
RevPartialSequence(int[] items)
virtual void Dispose(bool disposing)
static void RevPartialSequence_RankFirst(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3)
RevPartialSequence(int size)
static int RevPartialSequence_NumFirstRanked(global::System.Runtime.InteropServices.HandleRef jarg1)
string ToString()
bool IsRanked(int elt)