本文整理汇总了C#中TemplateSpecializationType类的典型用法代码示例。如果您正苦于以下问题:C# TemplateSpecializationType类的具体用法?C# TemplateSpecializationType怎么用?C# TemplateSpecializationType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TemplateSpecializationType类属于命名空间,在下文中一共展示了TemplateSpecializationType类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: VisitTemplateSpecializationType
public override bool VisitTemplateSpecializationType(TemplateSpecializationType template, TypeQualifiers quals)
{
if (AlreadyVisited(template) || template.Template.Access == AccessSpecifier.Private)
return false;
if (template.Arguments.Select(a => a.Type.Type.Desugar()).All(t => t.IsAddress() && !t.GetFinalPointee().IsDependent))
{
var cppTypePrinter = new CppTypePrinter { PrintScopeKind = CppTypePrintScopeKind.Qualified };
templateInstantiations.Add(string.Format("{0}<{1}>", template.Template.Name,
string.Join(", ", template.Arguments.Select(a => a.Type.Type.Visit(cppTypePrinter)))));
}
return true;
}
示例2: TemplateSpecializationType
protected TemplateSpecializationType(TemplateSpecializationType.Internal* native, bool isInternalImpl = false)
: base((CppSharp.Parser.AST.Type.Internal*) native)
{
}
示例3: __CopyValue
private static TemplateSpecializationType.Internal* __CopyValue(TemplateSpecializationType.Internal native)
{
var ret = Marshal.AllocHGlobal(48);
CppSharp.Parser.AST.TemplateSpecializationType.Internal.cctor_1(ret, new global::System.IntPtr(&native));
return (TemplateSpecializationType.Internal*) ret;
}
示例4: __CreateInstance
public static TemplateSpecializationType __CreateInstance(TemplateSpecializationType.Internal native)
{
return new TemplateSpecializationType(native);
}
示例5: TemplateSpecializationType
protected TemplateSpecializationType(TemplateSpecializationType.Internal* native, bool skipVTables = false)
: base((CppSharp.Parser.AST.Type.Internal*) null)
{
__PointerAdjustment = 0;
if (native == null)
return;
__Instance = new global::System.IntPtr(native);
}
示例6: __CreateInstance
public static TemplateSpecializationType __CreateInstance(TemplateSpecializationType.Internal native, bool skipVTables = false)
{
return new TemplateSpecializationType(native, skipVTables);
}
示例7: __CopyValue
private static void* __CopyValue(TemplateSpecializationType.__Internal native)
{
var ret = Marshal.AllocHGlobal(32);
global::CppSharp.Parser.AST.TemplateSpecializationType.__Internal.cctor_1(ret, new global::System.IntPtr(&native));
return ret.ToPointer();
}
示例8: TemplateSpecializationType
internal TemplateSpecializationType(TemplateSpecializationType.Internal native)
: this(&native)
{
}
示例9: TemplateSpecializationType
private TemplateSpecializationType(TemplateSpecializationType.Internal native)
: this(__CopyValue(native))
{
__ownsNativeInstance = true;
}
示例10: TemplateSpecializationType
internal TemplateSpecializationType(TemplateSpecializationType.Internal native)
: this(__CopyValue(native))
{
}
示例11: VisitTemplateSpecializationType
public override bool VisitTemplateSpecializationType(
TemplateSpecializationType template, TypeQualifiers quals)
{
TypeMap typeMap;
if (TypeMapDatabase.FindTypeMap(template, out typeMap))
{
if (typeMap.IsIgnored)
Ignore();
return false;
}
Ignore();
return base.VisitTemplateSpecializationType(template, quals);
}
示例12: VisitTemplateSpecializationType
public override bool VisitTemplateSpecializationType(TemplateSpecializationType template,
TypeQualifiers quals)
{
TypeMap typeMap;
if (Context.Driver.TypeDatabase.FindTypeMap(template, out typeMap) && typeMap.DoesMarshalling)
{
typeMap.Type = template;
typeMap.CLIMarshalToManaged(Context);
return true;
}
return template.Template.Visit(this);
}
示例13: VisitTemplateSpecializationType
public override bool VisitTemplateSpecializationType(
TemplateSpecializationType template, TypeQualifiers quals)
{
TypeMap typeMap;
if (TypeMapDatabase.FindTypeMap(template, out typeMap))
{
if (typeMap.IsIgnored)
Ignore();
return false;
}
var specialization = template.GetClassTemplateSpecialization();
if (specialization == null || specialization.Ignore)
Ignore();
return base.VisitTemplateSpecializationType(template, quals);
}