示例#1
0
 public static ITypeWrapper CreateTypeWrapper(CppSharp.AST.Type rawType)
 {
     if (rawType is CppSharp.AST.FunctionType)
     {
         return new FunctionTypeWrapper(rawType);
     }
     else if (rawType is CppSharp.AST.BuiltinType)
     {
         return new BuildinTypeWrapper(rawType);
     }
     else if (rawType is CppSharp.AST.DecayedType)
     {
         return new DecayedTypeWrapper(rawType);
     }
     else if (rawType is CppSharp.AST.TagType)
     {
         return new TagedTypeWrapper(rawType);
     }
     else if (rawType is CppSharp.AST.TypedefType)
     {
         return new TypedefTypeWrapper(rawType);
     }
     else if (rawType is CppSharp.AST.PointerType)
     {
         return new PointerTypeWrapper(rawType);
     }
     else if (rawType is CppSharp.AST.ArrayType)
     {
         return new ArrayTypeWrapper(rawType);
     }
     else
     {
         return new UnknowTypeWrapper(rawType);
     }
 }
示例#2
0
 public SourceLocation(CppSharp.Parser.SourceLocation _0)
     : this()
 {
     var __arg0 = _0.__Instance;
     var arg0 = new global::System.IntPtr(&__arg0);
     fixed (Internal* __instancePtr = &__instance)
     {
         Internal.cctor_2(new global::System.IntPtr(__instancePtr), arg0);
     }
 }
示例#3
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public void addArguments(CppSharp.Parser.AST.BlockCommandComment.Argument s)
 {
     var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance;
     Internal.addArguments_0(__Instance, arg0);
 }
示例#4
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public void addParameters(CppSharp.Parser.AST.Parameter s)
 {
     var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance;
     Internal.addParameters_0(__Instance, arg0);
 }
示例#5
0
文件: AST.cs 项目: RainsSoft/CppSharp
 internal static extern void ctor_1(global::System.IntPtr instance, CppSharp.Parser.AST.CommentKind Kind);
示例#6
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public BlockContentComment(CppSharp.Parser.AST.BlockContentComment _0)
     : this((Internal*) null)
 {
     __Instance = Marshal.AllocHGlobal(4);
     __ownsNativeInstance = true;
     *((BlockContentComment.Internal*) __Instance) = *((BlockContentComment.Internal*) _0.__Instance);
     NativeToManagedMap[__Instance] = this;
 }
示例#7
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public Comment(CppSharp.Parser.AST.CommentKind kind)
 {
     __Instance = Marshal.AllocHGlobal(4);
     __ownsNativeInstance = true;
     var arg0 = kind;
     Internal.ctor_0(__Instance, arg0);
     NativeToManagedMap[__Instance] = this;
 }
示例#8
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public NativeLibrary(CppSharp.Parser.AST.NativeLibrary _0)
 {
     __Instance = Marshal.AllocHGlobal(80);
     __ownsNativeInstance = true;
     var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance;
     Internal.cctor_2(__Instance, arg0);
     NativeToManagedMap[__Instance] = this;
 }
示例#9
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public void addItems(CppSharp.Parser.AST.Enumeration.Item s)
 {
     var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance;
     Internal.addItems_0(__Instance, arg0);
 }
示例#10
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public QualifiedType(CppSharp.Parser.AST.QualifiedType _0)
 {
     __Instance = Marshal.AllocHGlobal(16);
     __ownsNativeInstance = true;
     *((QualifiedType.Internal*) __Instance) = *((QualifiedType.Internal*) _0.__Instance);
     NativeToManagedMap[__Instance] = this;
 }
示例#11
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public TypeQualifiers(CppSharp.Parser.AST.TypeQualifiers _0)
 {
     __Instance = Marshal.AllocHGlobal(3);
     __ownsNativeInstance = true;
     *((TypeQualifiers.Internal*) __Instance) = *((TypeQualifiers.Internal*) _0.__Instance);
     NativeToManagedMap[__Instance] = this;
 }
示例#12
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public void addPreprocessedEntities(CppSharp.Parser.AST.PreprocessedEntity s)
 {
     var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance;
     Internal.addPreprocessedEntities_0(__Instance, arg0);
 }
示例#13
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public Declaration(CppSharp.Parser.AST.DeclarationKind kind)
 {
     __Instance = Marshal.AllocHGlobal(168);
     __ownsNativeInstance = true;
     var arg0 = kind;
     Internal.ctor_0(__Instance, arg0);
     NativeToManagedMap[__Instance] = this;
 }
示例#14
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public void addComponents(CppSharp.Parser.AST.VTableComponent s)
 {
     var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance;
     Internal.addComponents_0(__Instance, arg0);
 }
示例#15
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public VTableComponent(CppSharp.Parser.AST.VTableComponent _0)
 {
     __Instance = Marshal.AllocHGlobal(16);
     __ownsNativeInstance = true;
     *((VTableComponent.Internal*) __Instance) = *((VTableComponent.Internal*) _0.__Instance);
     NativeToManagedMap[__Instance] = this;
 }
示例#16
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public FunctionTemplateSpecialization(CppSharp.Parser.AST.FunctionTemplateSpecialization _0)
 {
     __Instance = Marshal.AllocHGlobal(48);
     __ownsNativeInstance = true;
     var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance;
     Internal.cctor_2(__Instance, arg0);
     NativeToManagedMap[__Instance] = this;
 }
示例#17
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public void addMacros(CppSharp.Parser.AST.MacroDefinition s)
 {
     var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance;
     Internal.addMacros_0(__Instance, arg0);
 }
示例#18
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public BaseClassSpecifier(CppSharp.Parser.AST.BaseClassSpecifier _0)
 {
     __Instance = Marshal.AllocHGlobal(24);
     __ownsNativeInstance = true;
     *((BaseClassSpecifier.Internal*) __Instance) = *((BaseClassSpecifier.Internal*) _0.__Instance);
     NativeToManagedMap[__Instance] = this;
 }
示例#19
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public void addTranslationUnits(CppSharp.Parser.AST.TranslationUnit s)
 {
     var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance;
     Internal.addTranslationUnits_0(__Instance, arg0);
 }
示例#20
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public AccessSpecifierDecl(CppSharp.Parser.AST.AccessSpecifierDecl _0)
     : this((Internal*) null)
 {
     __Instance = Marshal.AllocHGlobal(168);
     __ownsNativeInstance = true;
     var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance;
     Internal.cctor_2(__Instance, arg0);
     NativeToManagedMap[__Instance] = this;
 }
示例#21
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public Comment(CppSharp.Parser.AST.Comment _0)
 {
     __Instance = Marshal.AllocHGlobal(4);
     __ownsNativeInstance = true;
     *((Comment.Internal*) __Instance) = *((Comment.Internal*) _0.__Instance);
     NativeToManagedMap[__Instance] = this;
 }
示例#22
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public void addBases(CppSharp.Parser.AST.BaseClassSpecifier s)
 {
     var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance;
     Internal.addBases_0(__Instance, arg0);
 }
示例#23
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public FunctionType(CppSharp.Parser.AST.FunctionType _0)
     : this((Internal*) null)
 {
     __Instance = Marshal.AllocHGlobal(56);
     __ownsNativeInstance = true;
     var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance;
     Internal.cctor_2(__Instance, arg0);
     NativeToManagedMap[__Instance] = this;
 }
示例#24
0
文件: AST.cs 项目: RainsSoft/CppSharp
 internal static extern void ctor_0(global::System.IntPtr instance, CppSharp.Parser.AST.DeclarationKind kind);
示例#25
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public Argument(CppSharp.Parser.AST.BlockCommandComment.Argument _0)
 {
     __Instance = Marshal.AllocHGlobal(24);
     __ownsNativeInstance = true;
     var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance;
     Internal.cctor_2(__Instance, arg0);
     NativeToManagedMap[__Instance] = this;
 }
示例#26
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public Template(CppSharp.Parser.AST.DeclarationKind kind)
     : this((Internal*) null)
 {
     __Instance = Marshal.AllocHGlobal(200);
     __ownsNativeInstance = true;
     var arg0 = kind;
     Internal.ctor_0(__Instance, arg0);
     NativeToManagedMap[__Instance] = this;
 }
示例#27
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public BlockCommandComment(CppSharp.Parser.AST.CommentKind Kind)
     : this((Internal*) null)
 {
     __Instance = Marshal.AllocHGlobal(32);
     __ownsNativeInstance = true;
     var arg0 = Kind;
     Internal.ctor_1(__Instance, arg0);
     NativeToManagedMap[__Instance] = this;
 }
示例#28
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public ClassTemplatePartialSpecialization(CppSharp.Parser.AST.ClassTemplatePartialSpecialization _0)
     : this((Internal*) null)
 {
     __Instance = Marshal.AllocHGlobal(552);
     __ownsNativeInstance = true;
     var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance;
     Internal.cctor_1(__Instance, arg0);
     NativeToManagedMap[__Instance] = this;
 }
示例#29
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public VerbatimBlockLineComment(CppSharp.Parser.AST.VerbatimBlockLineComment _0)
     : this((Internal*) null)
 {
     __Instance = Marshal.AllocHGlobal(32);
     __ownsNativeInstance = true;
     var arg0 = ReferenceEquals(_0, null) ? global::System.IntPtr.Zero : _0.__Instance;
     Internal.cctor_2(__Instance, arg0);
     NativeToManagedMap[__Instance] = this;
 }
示例#30
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public void addSpecializations(CppSharp.Parser.AST.FunctionTemplateSpecialization s)
 {
     var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance;
     Internal.addSpecializations_0(__Instance, arg0);
 }