public static IEnumerable <TemplateArgument> GetArguments(this DependentTemplateSpecializationType type) { for (var x = 0; x < type.ArgumentsCount; x++) { var argument = type.getArguments((uint)x); yield return(argument); } }
public CSharpTypePrinterResult VisitDependentTemplateSpecializationType( DependentTemplateSpecializationType template, TypeQualifiers quals) { if (template.Desugared.Type != null) { return(template.Desugared.Visit(this)); } return(string.Empty); }
public bool VisitDependentTemplateSpecializationType( DependentTemplateSpecializationType template, TypeQualifiers quals) { if (!VisitType(template, quals)) { return(false); } if (VisitOptions.VisitTemplateArguments) { foreach (var arg in template.Arguments) { switch (arg.Kind) { case TemplateArgument.ArgumentKind.Type: var type = arg.Type.Type; if (type != null) { type.Visit(this, arg.Type.Qualifiers); } break; case TemplateArgument.ArgumentKind.Declaration: arg.Declaration.Visit(this); break; } } } if (template.Desugared.Type != null) { return(template.Desugared.Visit(this)); } return(false); }
public bool VisitDependentTemplateSpecializationType(DependentTemplateSpecializationType template, TypeQualifiers quals) { throw new NotImplementedException(); }
private DependentTemplateSpecializationType(DependentTemplateSpecializationType.__Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; }
private static void* __CopyValue(DependentTemplateSpecializationType.__Internal native) { var ret = Marshal.AllocHGlobal(28); global::CppSharp.Parser.AST.DependentTemplateSpecializationType.__Internal.cctor_1(ret, new global::System.IntPtr(&native)); return ret.ToPointer(); }
public static DependentTemplateSpecializationType __CreateInstance(DependentTemplateSpecializationType.__Internal native, bool skipVTables = false) { return new DependentTemplateSpecializationType(native, skipVTables); }
public string VisitDependentTemplateSpecializationType(DependentTemplateSpecializationType template, TypeQualifiers quals) { throw new NotSupportedException( ); }
public virtual TypePrinterResult VisitDependentTemplateSpecializationType( DependentTemplateSpecializationType template, TypeQualifiers quals) { throw new NotImplementedException(); }
public bool VisitDependentTemplateSpecializationType(DependentTemplateSpecializationType template, TypeQualifiers quals) { return(false); }