11 namespace org.gnu.glpk {
13 public class glp_arc : global::System.IDisposable {
14 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15 protected bool swigCMemOwn;
17 internal glp_arc(global::System.IntPtr cPtr,
bool cMemoryOwn) {
18 swigCMemOwn = cMemoryOwn;
19 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(
this, cPtr);
22 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(
glp_arc obj) {
23 return (obj == null) ?
new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
30 public virtual void Dispose() {
32 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
37 swigCPtr =
new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
39 global::System.GC.SuppressFinalize(
this);
45 GLPKPINVOKE.glp_arc_tail_set(swigCPtr, global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_vertex.getCPtr(value)));
49 global::System.IntPtr cPtr =
GLPKPINVOKE.glp_arc_tail_get(swigCPtr);
51 return (cPtr == global::System.IntPtr.Zero) ? null :
new glp_vertex(cPtr,
false);
58 GLPKPINVOKE.glp_arc_head_set(swigCPtr, global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_vertex.getCPtr(value)));
62 global::System.IntPtr cPtr =
GLPKPINVOKE.glp_arc_head_get(swigCPtr);
64 return (cPtr == global::System.IntPtr.Zero) ? null :
new glp_vertex(cPtr,
false);
75 global::System.IntPtr cPtr =
GLPKPINVOKE.glp_arc_data_get(swigCPtr);
88 global::System.IntPtr cPtr =
GLPKPINVOKE.glp_arc_temp_get(swigCPtr);
97 GLPKPINVOKE.glp_arc_t_prev_set(swigCPtr, global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_arc.getCPtr(value)));
101 global::System.IntPtr cPtr =
GLPKPINVOKE.glp_arc_t_prev_get(swigCPtr);
103 return (cPtr == global::System.IntPtr.Zero) ? null :
new glp_arc(cPtr,
false);
110 GLPKPINVOKE.glp_arc_t_next_set(swigCPtr, global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_arc.getCPtr(value)));
114 global::System.IntPtr cPtr =
GLPKPINVOKE.glp_arc_t_next_get(swigCPtr);
116 return (cPtr == global::System.IntPtr.Zero) ? null :
new glp_arc(cPtr,
false);
123 GLPKPINVOKE.glp_arc_h_prev_set(swigCPtr, global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_arc.getCPtr(value)));
127 global::System.IntPtr cPtr =
GLPKPINVOKE.glp_arc_h_prev_get(swigCPtr);
129 return (cPtr == global::System.IntPtr.Zero) ? null :
new glp_arc(cPtr,
false);
136 GLPKPINVOKE.glp_arc_h_next_set(swigCPtr, global::System.Runtime.InteropServices.HandleRef.ToIntPtr(
glp_arc.getCPtr(value)));
140 global::System.IntPtr cPtr =
GLPKPINVOKE.glp_arc_h_next_get(swigCPtr);
142 return (cPtr == global::System.IntPtr.Zero) ? null :
new glp_arc(cPtr,
false);