GLPK for C#/CLI  1.10.0
All Classes Namespaces Functions Properties Pages
glp_vertex.cs
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.8
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 
11 namespace org.gnu.glpk {
12 
13 public class glp_vertex : global::System.IDisposable {
14  private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15  protected bool swigCMemOwn;
16 
17  internal glp_vertex(global::System.IntPtr cPtr, bool cMemoryOwn) {
18  swigCMemOwn = cMemoryOwn;
19  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
20  }
21 
22  internal static global::System.Runtime.InteropServices.HandleRef getCPtr(glp_vertex obj) {
23  return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24  }
25 
26  ~glp_vertex() {
27  Dispose();
28  }
29 
30  public virtual void Dispose() {
31  lock(this) {
32  if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33  if (swigCMemOwn) {
34  swigCMemOwn = false;
35  GLPKPINVOKE.delete_glp_vertex(swigCPtr);
36  }
37  swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38  }
39  global::System.GC.SuppressFinalize(this);
40  }
41  }
42 
43  public int i {
44  set {
45  GLPKPINVOKE.glp_vertex_i_set(swigCPtr, value);
47  }
48  get {
49  int ret = GLPKPINVOKE.glp_vertex_i_get(swigCPtr);
51  return ret;
52  }
53  }
54 
55  public string name {
56  set {
57  GLPKPINVOKE.glp_vertex_name_set(swigCPtr, value);
59  }
60  get {
61  string ret = GLPKPINVOKE.glp_vertex_name_get(swigCPtr);
63  return ret;
64  }
65  }
66 
67  public SWIGTYPE_p_void entry {
68  set {
69  GLPKPINVOKE.glp_vertex_entry_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value));
71  }
72  get {
73  global::System.IntPtr cPtr = GLPKPINVOKE.glp_vertex_entry_get(swigCPtr);
74  SWIGTYPE_p_void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false);
76  return ret;
77  }
78  }
79 
80  public SWIGTYPE_p_void data {
81  set {
82  GLPKPINVOKE.glp_vertex_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value));
84  }
85  get {
86  global::System.IntPtr cPtr = GLPKPINVOKE.glp_vertex_data_get(swigCPtr);
87  SWIGTYPE_p_void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false);
89  return ret;
90  }
91  }
92 
93  public SWIGTYPE_p_void temp {
94  set {
95  GLPKPINVOKE.glp_vertex_temp_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value));
97  }
98  get {
99  global::System.IntPtr cPtr = GLPKPINVOKE.glp_vertex_temp_get(swigCPtr);
100  SWIGTYPE_p_void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false);
102  return ret;
103  }
104  }
105 
106  public glp_arc in_ {
107  set {
108  GLPKPINVOKE.glp_vertex_in__set(swigCPtr, global::System.Runtime.InteropServices.HandleRef.ToIntPtr(glp_arc.getCPtr(value)));
110  }
111  get {
112  global::System.IntPtr cPtr = GLPKPINVOKE.glp_vertex_in__get(swigCPtr);
114  return (cPtr == global::System.IntPtr.Zero) ? null : new glp_arc(cPtr, false);
115  }
116 
117  }
118 
119  public glp_arc out_ {
120  set {
121  GLPKPINVOKE.glp_vertex_out__set(swigCPtr, global::System.Runtime.InteropServices.HandleRef.ToIntPtr(glp_arc.getCPtr(value)));
123  }
124  get {
125  global::System.IntPtr cPtr = GLPKPINVOKE.glp_vertex_out__get(swigCPtr);
127  return (cPtr == global::System.IntPtr.Zero) ? null : new glp_arc(cPtr, false);
128  }
129 
130  }
131 
132  public glp_vertex() : this(GLPKPINVOKE.new_glp_vertex(), true) {
134  }
135 
136 }
137 
138 }