本文整理汇总了C#中FunctionTemplate类的典型用法代码示例。如果您正苦于以下问题:C# FunctionTemplate类的具体用法?C# FunctionTemplate怎么用?C# FunctionTemplate使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FunctionTemplate类属于命名空间,在下文中一共展示了FunctionTemplate类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FunctionTemplate
private FunctionTemplate(FunctionTemplate.Internal native)
: this(__CopyValue(native))
{
__ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this;
}
示例2: __CreateInstance
public static FunctionTemplate __CreateInstance(FunctionTemplate.Internal native)
{
return new FunctionTemplate(native);
}
示例3: __CopyValue
private static FunctionTemplate.Internal* __CopyValue(FunctionTemplate.Internal native)
{
var ret = Marshal.AllocHGlobal(224);
CppSharp.Parser.AST.FunctionTemplate.Internal.cctor_2(ret, new global::System.IntPtr(&native));
return (FunctionTemplate.Internal*) ret;
}
示例4: FunctionTemplate
private FunctionTemplate(FunctionTemplate.Internal native, bool skipVTables = false)
: this(__CopyValue(native), skipVTables)
{
__ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this;
}
示例5: __CopyValue
private static void* __CopyValue(FunctionTemplate.__Internal native)
{
var ret = Marshal.AllocHGlobal(156);
global::CppSharp.Parser.AST.FunctionTemplate.__Internal.cctor_1(ret, new global::System.IntPtr(&native));
return ret.ToPointer();
}
示例6: __CreateInstance
public static FunctionTemplate __CreateInstance(FunctionTemplate.Internal native, bool skipVTables = false)
{
return new FunctionTemplate(native, skipVTables);
}
示例7: FunctionTemplate
internal FunctionTemplate(FunctionTemplate.Internal native)
: this(&native)
{
}
示例8: VisitFunctionTemplateDecl
public override bool VisitFunctionTemplateDecl(FunctionTemplate template)
{
var expansions = template.PreprocessedEntities.OfType<MacroExpansion>();
var expansion = expansions.FirstOrDefault(e => e.Text.StartsWith(Prefix + "_CONSTRAINT"));
if (expansion != null)
{
var args = GetArguments(expansion.Text);
for (var i = 0; i < template.Parameters.Count && i < args.Length; ++i)
{
var param = template.Parameters[i];
param.Constraint = args[i];
template.Parameters[i] = param;
}
}
return base.VisitFunctionTemplateDecl(template);
}
示例9: FunctionTemplate
private FunctionTemplate(FunctionTemplate.Internal native)
: this(__CopyValue(native))
{
__ownsNativeInstance = true;
}
示例10: FunctionTemplate
internal FunctionTemplate(FunctionTemplate.Internal native)
: this(__CopyValue(native))
{
}
示例11: VisitFunctionTemplateDecl
public override bool VisitFunctionTemplateDecl(FunctionTemplate template)
{
return template.TemplatedFunction.Visit(this);
}
示例12: VisitFunctionTemplateDecl
public override bool VisitFunctionTemplateDecl(FunctionTemplate template)
{
CheckForTemplateConstraints(template);
return base.VisitFunctionTemplateDecl(template);
}