コード例 #1
0
 private static void* __CopyValue(DependentNameType.__Internal native)
 {
     var ret = Marshal.AllocHGlobal(16);
     global::CppSharp.Parser.AST.DependentNameType.__Internal.cctor_2(ret, new global::System.IntPtr(&native));
     return ret.ToPointer();
 }
コード例 #2
0
 public string VisitDependentNameType(DependentNameType dependent, TypeQualifiers quals)
 {
     return(string.Empty);
 }
コード例 #3
0
 public string VisitDependentNameType(DependentNameType dependent, TypeQualifiers quals)
 {
     throw new NotSupportedException( );
 }
コード例 #4
0
ファイル: AST.cs プロジェクト: RainsSoft/CppSharp
 private DependentNameType(DependentNameType.Internal native)
     : this(__CopyValue(native))
 {
     __ownsNativeInstance = true;
     NativeToManagedMap[__Instance] = this;
 }
コード例 #5
0
ファイル: CodeGenerator.cs プロジェクト: wushian/CppSharp
 public bool VisitDependentNameType(DependentNameType dependent, TypeQualifiers quals)
 {
     throw new NotImplementedException();
 }
コード例 #6
0
ファイル: AST.cs プロジェクト: CSRedRat/CppSharp
 protected DependentNameType(DependentNameType.Internal* native, bool skipVTables = false)
     : base((CppSharp.Parser.AST.Type.Internal*) null)
 {
     __PointerAdjustment = 0;
     if (native == null)
         return;
     __Instance = new global::System.IntPtr(native);
 }
コード例 #7
0
ファイル: AST.cs プロジェクト: RainsSoft/CppSharp
 public static DependentNameType __CreateInstance(DependentNameType.Internal native)
 {
     return new DependentNameType(native);
 }
コード例 #8
0
ファイル: AST.cs プロジェクト: kidleon/CppSharp
 internal DependentNameType(DependentNameType.Internal* native)
     : this(new global::System.IntPtr(native))
 {
 }
コード例 #9
0
ファイル: AST.cs プロジェクト: kidleon/CppSharp
 internal DependentNameType(DependentNameType.Internal native)
     : this(&native)
 {
 }
コード例 #10
0
ファイル: AST.cs プロジェクト: vovkasm/CppSharp
 internal DependentNameType(DependentNameType.Internal native)
     : this(__CopyValue(native))
 {
 }
コード例 #11
0
ファイル: AST.cs プロジェクト: KonajuGames/CppSharp
 private DependentNameType(DependentNameType.Internal native)
     : this(__CopyValue(native))
 {
     __ownsNativeInstance = true;
 }
コード例 #12
0
 public virtual TypePrinterResult VisitDependentNameType(
     DependentNameType dependent, TypeQualifiers quals)
 {
     throw new NotImplementedException();
 }
コード例 #13
0
 public bool VisitDependentNameType(DependentNameType dependent, TypeQualifiers quals)
 {
     return(false);
 }
コード例 #14
0
ファイル: CLITypePrinter.cs プロジェクト: CloudIDEaaS/hydra
 public string VisitDependentNameType(DependentNameType dependent, TypeQualifiers quals)
 {
     return(dependent.Desugared.Type != null?dependent.Desugared.Visit(this) : string.Empty);
 }
コード例 #15
0
ファイル: AST.cs プロジェクト: CSRedRat/CppSharp
 public static DependentNameType __CreateInstance(DependentNameType.Internal native, bool skipVTables = false)
 {
     return new DependentNameType(native, skipVTables);
 }
コード例 #16
0
 public string VisitDependentNameType(DependentNameType dependent, TypeQualifiers quals)
 {
     throw new System.NotImplementedException();
 }
コード例 #17
0
ファイル: AST.cs プロジェクト: CSRedRat/CppSharp
 private DependentNameType(DependentNameType.Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance = true;
     NativeToManagedMap[__Instance] = this;
 }
コード例 #18
0
ファイル: ASTConverter.cs プロジェクト: gpetrou/CppSharp
 public abstract TRet VisitDependentName(DependentNameType type);
コード例 #19
0
 public override TypePrinterResult VisitDependentNameType(
     DependentNameType dependent, TypeQualifiers quals)
 {
     return(dependent.Qualifier.Type != null?
            dependent.Qualifier.Visit(this) : string.Empty);
 }
コード例 #20
0
ファイル: ASTConverter.cs プロジェクト: gpetrou/CppSharp
        public TRet Visit(Parser.AST.Type type)
        {
            if (type.__Instance == IntPtr.Zero)
            {
                return(default(TRet));
            }

            switch (type.Kind)
            {
            case TypeKind.Tag:
            {
                var _type = new TagType(type.__Instance);
                return(VisitTag(_type));
            }

            case TypeKind.Array:
            {
                var _type = new ArrayType(type.__Instance);
                return(VisitArray(_type));
            }

            case TypeKind.Function:
            {
                var _type = new FunctionType(type.__Instance);
                return(VisitFunction(_type));
            }

            case TypeKind.Pointer:
            {
                var _type = new PointerType(type.__Instance);
                return(VisitPointer(_type));
            }

            case TypeKind.MemberPointer:
            {
                var _type = new MemberPointerType(type.__Instance);
                return(VisitMemberPointer(_type));
            }

            case TypeKind.Typedef:
            {
                var _type = new TypedefType(type.__Instance);
                return(VisitTypedef(_type));
            }

            case TypeKind.Attributed:
            {
                var _type = new AttributedType(type.__Instance);
                return(VisitAttributed(_type));
            }

            case TypeKind.Decayed:
            {
                var _type = new DecayedType(type.__Instance);
                return(VisitDecayed(_type));
            }

            case TypeKind.TemplateSpecialization:
            {
                var _type = new TemplateSpecializationType(type.__Instance);
                return(VisitTemplateSpecialization(_type));
            }

            case TypeKind.TemplateParameter:
            {
                var _type = new TemplateParameterType(type.__Instance);
                return(VisitTemplateParameter(_type));
            }

            case TypeKind.TemplateParameterSubstitution:
            {
                var _type = new TemplateParameterSubstitutionType(type.__Instance);
                return(VisitTemplateParameterSubstitution(_type));
            }

            case TypeKind.InjectedClassName:
            {
                var _type = new InjectedClassNameType(type.__Instance);
                return(VisitInjectedClassName(_type));
            }

            case TypeKind.DependentName:
            {
                var _type = new DependentNameType(type.__Instance);
                return(VisitDependentName(_type));
            }

            case TypeKind.Builtin:
            {
                var _type = new BuiltinType(type.__Instance);
                return(VisitBuiltin(_type));
            }
            }

            throw new ArgumentOutOfRangeException();
        }
コード例 #21
0
ファイル: AST.cs プロジェクト: RainsSoft/CppSharp
 private static DependentNameType.Internal* __CopyValue(DependentNameType.Internal native)
 {
     var ret = Marshal.AllocHGlobal(8);
     CppSharp.Parser.AST.DependentNameType.Internal.cctor_2(ret, new global::System.IntPtr(&native));
     return (DependentNameType.Internal*) ret;
 }
コード例 #22
0
 public override bool VisitDependentNameType(DependentNameType dependent, TypeQualifiers quals)
 {
     return(dependent.Qualifier.Visit(this));
 }
コード例 #23
0
ファイル: AST.cs プロジェクト: RainsSoft/CppSharp
 protected DependentNameType(DependentNameType.Internal* native, bool isInternalImpl = false)
     : base((CppSharp.Parser.AST.Type.Internal*) native)
 {
 }
コード例 #24
0
 public override bool VisitDependentNameType(DependentNameType dependent, TypeQualifiers quals)
 {
     Ignore();
     return(false);
 }