• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# CppSharp类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中CppSharp的典型用法代码示例。如果您正苦于以下问题:C# CppSharp类的具体用法?C# CppSharp怎么用?C# CppSharp使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



CppSharp类属于命名空间,在下文中一共展示了CppSharp类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: CreateTypeWrapper

 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);
     }
 }
开发者ID:crazyender,项目名称:FFMPEG.net,代码行数:35,代码来源:TypeHeloer.cs


示例2: SourceLocation

 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);
     }
 }
开发者ID:acklinr,项目名称:CppSharp,代码行数:10,代码来源:Sources.cs


示例3: addArguments

 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);
 }
开发者ID:RainsSoft,项目名称:CppSharp,代码行数:5,代码来源:AST.cs


示例4: addParameters

 public void addParameters(CppSharp.Parser.AST.Parameter s)
 {
     var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance;
     Internal.addParameters_0(__Instance, arg0);
 }
开发者ID:RainsSoft,项目名称:CppSharp,代码行数:5,代码来源:AST.cs


示例5: ctor_1

 internal static extern void ctor_1(global::System.IntPtr instance, CppSharp.Parser.AST.CommentKind Kind);
开发者ID:RainsSoft,项目名称:CppSharp,代码行数:1,代码来源:AST.cs


示例6: BlockContentComment

 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;
 }
开发者ID:RainsSoft,项目名称:CppSharp,代码行数:8,代码来源:AST.cs


示例7: Comment

 public Comment(CppSharp.Parser.AST.CommentKind kind)
 {
     __Instance = Marshal.AllocHGlobal(4);
     __ownsNativeInstance = true;
     var arg0 = kind;
     Internal.ctor_0(__Instance, arg0);
     NativeToManagedMap[__Instance] = this;
 }
开发者ID:RainsSoft,项目名称:CppSharp,代码行数:8,代码来源:AST.cs


示例8: NativeLibrary

 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;
 }
开发者ID:RainsSoft,项目名称:CppSharp,代码行数:8,代码来源:AST.cs


示例9: addItems

 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);
 }
开发者ID:RainsSoft,项目名称:CppSharp,代码行数:5,代码来源:AST.cs


示例10: QualifiedType

 public QualifiedType(CppSharp.Parser.AST.QualifiedType _0)
 {
     __Instance = Marshal.AllocHGlobal(16);
     __ownsNativeInstance = true;
     *((QualifiedType.Internal*) __Instance) = *((QualifiedType.Internal*) _0.__Instance);
     NativeToManagedMap[__Instance] = this;
 }
开发者ID:RainsSoft,项目名称:CppSharp,代码行数:7,代码来源:AST.cs


示例11: TypeQualifiers

 public TypeQualifiers(CppSharp.Parser.AST.TypeQualifiers _0)
 {
     __Instance = Marshal.AllocHGlobal(3);
     __ownsNativeInstance = true;
     *((TypeQualifiers.Internal*) __Instance) = *((TypeQualifiers.Internal*) _0.__Instance);
     NativeToManagedMap[__Instance] = this;
 }
开发者ID:RainsSoft,项目名称:CppSharp,代码行数:7,代码来源:AST.cs


示例12: addPreprocessedEntities

 public void addPreprocessedEntities(CppSharp.Parser.AST.PreprocessedEntity s)
 {
     var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance;
     Internal.addPreprocessedEntities_0(__Instance, arg0);
 }
开发者ID:RainsSoft,项目名称:CppSharp,代码行数:5,代码来源:AST.cs


示例13: Declaration

 public Declaration(CppSharp.Parser.AST.DeclarationKind kind)
 {
     __Instance = Marshal.AllocHGlobal(168);
     __ownsNativeInstance = true;
     var arg0 = kind;
     Internal.ctor_0(__Instance, arg0);
     NativeToManagedMap[__Instance] = this;
 }
开发者ID:RainsSoft,项目名称:CppSharp,代码行数:8,代码来源:AST.cs


示例14: addComponents

 public void addComponents(CppSharp.Parser.AST.VTableComponent s)
 {
     var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance;
     Internal.addComponents_0(__Instance, arg0);
 }
开发者ID:RainsSoft,项目名称:CppSharp,代码行数:5,代码来源:AST.cs


示例15: VTableComponent

 public VTableComponent(CppSharp.Parser.AST.VTableComponent _0)
 {
     __Instance = Marshal.AllocHGlobal(16);
     __ownsNativeInstance = true;
     *((VTableComponent.Internal*) __Instance) = *((VTableComponent.Internal*) _0.__Instance);
     NativeToManagedMap[__Instance] = this;
 }
开发者ID:RainsSoft,项目名称:CppSharp,代码行数:7,代码来源:AST.cs


示例16: FunctionTemplateSpecialization

 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;
 }
开发者ID:RainsSoft,项目名称:CppSharp,代码行数:8,代码来源:AST.cs


示例17: addMacros

 public void addMacros(CppSharp.Parser.AST.MacroDefinition s)
 {
     var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance;
     Internal.addMacros_0(__Instance, arg0);
 }
开发者ID:RainsSoft,项目名称:CppSharp,代码行数:5,代码来源:AST.cs


示例18: BaseClassSpecifier

 public BaseClassSpecifier(CppSharp.Parser.AST.BaseClassSpecifier _0)
 {
     __Instance = Marshal.AllocHGlobal(24);
     __ownsNativeInstance = true;
     *((BaseClassSpecifier.Internal*) __Instance) = *((BaseClassSpecifier.Internal*) _0.__Instance);
     NativeToManagedMap[__Instance] = this;
 }
开发者ID:RainsSoft,项目名称:CppSharp,代码行数:7,代码来源:AST.cs


示例19: addTranslationUnits

 public void addTranslationUnits(CppSharp.Parser.AST.TranslationUnit s)
 {
     var arg0 = ReferenceEquals(s, null) ? global::System.IntPtr.Zero : s.__Instance;
     Internal.addTranslationUnits_0(__Instance, arg0);
 }
开发者ID:RainsSoft,项目名称:CppSharp,代码行数:5,代码来源:AST.cs


示例20: AccessSpecifierDecl

 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;
 }
开发者ID:RainsSoft,项目名称:CppSharp,代码行数:9,代码来源:AST.cs



注:本文中的CppSharp类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# TemplateArgument.Internal类代码示例发布时间:2022-05-24
下一篇:
C# Course类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap