Пример #1
0
        public virtual bool VisitTypeAliasTemplateDecl(TypeAliasTemplate template)
        {
            if (!VisitDeclaration(template))
            {
                return(false);
            }

            foreach (var templateParameter in template.Parameters)
            {
                templateParameter.Visit(this);
            }

            return(true);
        }
Пример #2
0
        public static CppSharp.Parser.AST.Template GetRealTemplate(this CppSharp.Parser.AST.Template template)
        {
            switch (template.Kind)
            {
            case DeclarationKind.TemplateTemplateParm:
                return(TemplateTemplateParameter.__CreateInstance(template.__Instance));

            case DeclarationKind.TypeAliasTemplate:
                return(TypeAliasTemplate.__CreateInstance(template.__Instance));

            case DeclarationKind.ClassTemplate:
                return(ClassTemplate.__CreateInstance(template.__Instance));

            case DeclarationKind.FunctionTemplate:
                return(FunctionTemplate.__CreateInstance(template.__Instance));

            case DeclarationKind.VarTemplate:
                return(VarTemplate.__CreateInstance(template.__Instance));

            default:
                Debugger.Break();
                return(null);
            }
        }
Пример #3
0
 public virtual bool VisitTypeAliasTemplateDecl(TypeAliasTemplate typeAliasTemplate)
 {
     throw new NotImplementedException();
 }
Пример #4
0
 public CSharpTypePrinterResult VisitTypeAliasTemplateDecl(TypeAliasTemplate typeAliasTemplate)
 {
     throw new NotImplementedException();
 }
Пример #5
0
 private TypeAliasTemplate(TypeAliasTemplate.__Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance = true;
     NativeToManagedMap[__Instance] = this;
 }
Пример #6
0
 private static void* __CopyValue(TypeAliasTemplate.__Internal native)
 {
     var ret = Marshal.AllocHGlobal(144);
     global::CppSharp.Parser.AST.TypeAliasTemplate.__Internal.cctor_1(ret, new global::System.IntPtr(&native));
     return ret.ToPointer();
 }
Пример #7
0
 public static TypeAliasTemplate __CreateInstance(TypeAliasTemplate.__Internal native, bool skipVTables = false)
 {
     return new TypeAliasTemplate(native, skipVTables);
 }
Пример #8
0
 public override TypePrinterResult VisitTypeAliasTemplateDecl(TypeAliasTemplate typeAliasTemplate)
 {
     return(VisitDeclaration(typeAliasTemplate));
 }
 public bool VisitTypeAliasTemplateDecl(TypeAliasTemplate typeAliasTemplate)
 {
     return(false);
 }
Пример #10
0
 public string VisitTypeAliasTemplateDecl(TypeAliasTemplate typeAliasTemplate)
 {
     throw new NotImplementedException();
 }