| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- /* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.1
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
- namespace RakNet {
- using System;
- using System.Runtime.InteropServices;
- public class RakNetListColumnDescriptor : IDisposable {
- private HandleRef swigCPtr;
- protected bool swigCMemOwn;
- internal RakNetListColumnDescriptor(IntPtr cPtr, bool cMemoryOwn) {
- swigCMemOwn = cMemoryOwn;
- swigCPtr = new HandleRef(this, cPtr);
- }
- internal static HandleRef getCPtr(RakNetListColumnDescriptor obj) {
- return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
- }
- ~RakNetListColumnDescriptor() {
- Dispose();
- }
- public virtual void Dispose() {
- lock(this) {
- if (swigCPtr.Handle != IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- RakNetPINVOKE.delete_RakNetListColumnDescriptor(swigCPtr);
- }
- swigCPtr = new HandleRef(null, IntPtr.Zero);
- }
- GC.SuppressFinalize(this);
- }
- }
- public ColumnDescriptor this[int index]
- {
- get
- {
- return Get((uint)index); // use indexto retrieve and return another value.
- }
- set
- {
- Replace(value, value, (uint)index, "Not used", 0);// use index and value to set the value somewhere.
- }
- }
- public RakNetListColumnDescriptor() : this(RakNetPINVOKE.new_RakNetListColumnDescriptor__SWIG_0(), true) {
- }
- public RakNetListColumnDescriptor(RakNetListColumnDescriptor original_copy) : this(RakNetPINVOKE.new_RakNetListColumnDescriptor__SWIG_1(RakNetListColumnDescriptor.getCPtr(original_copy)), true) {
- if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
- }
- public RakNetListColumnDescriptor CopyData(RakNetListColumnDescriptor original_copy) {
- RakNetListColumnDescriptor ret = new RakNetListColumnDescriptor(RakNetPINVOKE.RakNetListColumnDescriptor_CopyData(swigCPtr, RakNetListColumnDescriptor.getCPtr(original_copy)), false);
- if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- public ColumnDescriptor Get(uint position) {
- ColumnDescriptor ret = new ColumnDescriptor(RakNetPINVOKE.RakNetListColumnDescriptor_Get(swigCPtr, position), false);
- return ret;
- }
- public void Push(ColumnDescriptor input, string file, uint line) {
- RakNetPINVOKE.RakNetListColumnDescriptor_Push(swigCPtr, ColumnDescriptor.getCPtr(input), file, line);
- if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
- }
- public ColumnDescriptor Pop() {
- ColumnDescriptor ret = new ColumnDescriptor(RakNetPINVOKE.RakNetListColumnDescriptor_Pop(swigCPtr), false);
- return ret;
- }
- public void Insert(ColumnDescriptor input, uint position, string file, uint line) {
- RakNetPINVOKE.RakNetListColumnDescriptor_Insert__SWIG_0(swigCPtr, ColumnDescriptor.getCPtr(input), position, file, line);
- if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
- }
- public void Insert(ColumnDescriptor input, string file, uint line) {
- RakNetPINVOKE.RakNetListColumnDescriptor_Insert__SWIG_1(swigCPtr, ColumnDescriptor.getCPtr(input), file, line);
- if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
- }
- public void Replace(ColumnDescriptor input, ColumnDescriptor filler, uint position, string file, uint line) {
- RakNetPINVOKE.RakNetListColumnDescriptor_Replace__SWIG_0(swigCPtr, ColumnDescriptor.getCPtr(input), ColumnDescriptor.getCPtr(filler), position, file, line);
- if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
- }
- public void Replace(ColumnDescriptor input) {
- RakNetPINVOKE.RakNetListColumnDescriptor_Replace__SWIG_1(swigCPtr, ColumnDescriptor.getCPtr(input));
- if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve();
- }
- public void RemoveAtIndex(uint position) {
- RakNetPINVOKE.RakNetListColumnDescriptor_RemoveAtIndex(swigCPtr, position);
- }
- public void RemoveAtIndexFast(uint position) {
- RakNetPINVOKE.RakNetListColumnDescriptor_RemoveAtIndexFast(swigCPtr, position);
- }
- public void RemoveFromEnd(uint num) {
- RakNetPINVOKE.RakNetListColumnDescriptor_RemoveFromEnd__SWIG_0(swigCPtr, num);
- }
- public void RemoveFromEnd() {
- RakNetPINVOKE.RakNetListColumnDescriptor_RemoveFromEnd__SWIG_1(swigCPtr);
- }
- public uint Size() {
- uint ret = RakNetPINVOKE.RakNetListColumnDescriptor_Size(swigCPtr);
- return ret;
- }
- public void Clear(bool doNotDeallocateSmallBlocks, string file, uint line) {
- RakNetPINVOKE.RakNetListColumnDescriptor_Clear(swigCPtr, doNotDeallocateSmallBlocks, file, line);
- }
- public void Preallocate(uint countNeeded, string file, uint line) {
- RakNetPINVOKE.RakNetListColumnDescriptor_Preallocate(swigCPtr, countNeeded, file, line);
- }
- public void Compress(string file, uint line) {
- RakNetPINVOKE.RakNetListColumnDescriptor_Compress(swigCPtr, file, line);
- }
- }
- }
|