@ -57,8 +57,9 @@ namespace CppSharp
MacroExpansion = 1 9 ,
MacroExpansion = 1 9 ,
TranslationUnit = 2 0 ,
TranslationUnit = 2 0 ,
Friend = 2 1 ,
Friend = 2 1 ,
TemplateTypeParm = 2 2 ,
TemplateTemplateParm = 2 2 ,
NonTypeTemplateParm = 2 3
TemplateTypeParm = 2 3 ,
NonTypeTemplateParm = 2 4
}
}
public enum AccessSpecifier
public enum AccessSpecifier
@ -8060,6 +8061,181 @@ namespace CppSharp
}
}
}
}
public unsafe partial class TemplateTemplateParameter : CppSharp . Parser . AST . Template , IDisposable
{
[StructLayout(LayoutKind.Explicit, Size = 148)]
public new partial struct Internal
{
[FieldOffset(0)]
public CppSharp . Parser . AST . DeclarationKind Kind ;
[FieldOffset(4)]
public CppSharp . Parser . AST . AccessSpecifier Access ;
[FieldOffset(8)]
public global :: System . IntPtr _ Namespace ;
[FieldOffset(12)]
public CppSharp . Parser . SourceLocation . Internal Location ;
[FieldOffset(16)]
public int LineNumberStart ;
[FieldOffset(20)]
public int LineNumberEnd ;
[FieldOffset(96)]
public byte IsIncomplete ;
[FieldOffset(97)]
public byte IsDependent ;
[FieldOffset(98)]
public byte IsImplicit ;
[FieldOffset(100)]
public global :: System . IntPtr CompleteDeclaration ;
[FieldOffset(104)]
public uint DefinitionOrder ;
[FieldOffset(120)]
public global :: System . IntPtr OriginalPtr ;
[FieldOffset(124)]
public global :: System . IntPtr Comment ;
[FieldOffset(128)]
public global :: System . IntPtr TemplatedDecl ;
[FieldOffset(144)]
public byte IsParameterPack ;
[FieldOffset(145)]
public byte IsPackExpansion ;
[FieldOffset(146)]
public byte IsExpandedParameterPack ;
[SuppressUnmanagedCodeSecurity]
[ DllImport ( "CppSharp.CppParser.dll" , CallingConvention = global :: System . Runtime . InteropServices . CallingConvention . ThisCall ,
EntryPoint = "??0TemplateTemplateParameter@AST@CppParser@CppSharp@@QAE@XZ" ) ]
internal static extern global :: System . IntPtr ctor_0 ( global :: System . IntPtr instance ) ;
[SuppressUnmanagedCodeSecurity]
[ DllImport ( "CppSharp.CppParser.dll" , CallingConvention = global :: System . Runtime . InteropServices . CallingConvention . ThisCall ,
EntryPoint = "??0TemplateTemplateParameter@AST@CppParser@CppSharp@@QAE@ABV0123@@Z" ) ]
internal static extern global :: System . IntPtr cctor_1 ( global :: System . IntPtr instance , global :: System . IntPtr _ 0 ) ;
[SuppressUnmanagedCodeSecurity]
[ DllImport ( "CppSharp.CppParser.dll" , CallingConvention = global :: System . Runtime . InteropServices . CallingConvention . ThisCall ,
EntryPoint = "??1TemplateTemplateParameter@AST@CppParser@CppSharp@@QAE@XZ" ) ]
internal static extern void dtor_0 ( global :: System . IntPtr instance , int delete ) ;
}
public static new TemplateTemplateParameter _ _ CreateInstance ( global :: System . IntPtr native , bool skipVTables = false )
{
return new TemplateTemplateParameter ( native . ToPointer ( ) , skipVTables ) ;
}
public static TemplateTemplateParameter _ _ CreateInstance ( TemplateTemplateParameter . Internal native , bool skipVTables = false )
{
return new TemplateTemplateParameter ( native , skipVTables ) ;
}
private static void * _ _ CopyValue ( TemplateTemplateParameter . Internal native )
{
var ret = Marshal . AllocHGlobal ( 1 4 8 ) ;
CppSharp . Parser . AST . TemplateTemplateParameter . Internal . cctor_1 ( ret , new global :: System . IntPtr ( & native ) ) ;
return ret . ToPointer ( ) ;
}
private TemplateTemplateParameter ( TemplateTemplateParameter . Internal native , bool skipVTables = false )
: this ( _ _ CopyValue ( native ) , skipVTables )
{
_ _ ownsNativeInstance = true ;
NativeToManagedMap [ _ _ Instance ] = this ;
}
protected TemplateTemplateParameter ( void * native , bool skipVTables = false )
: base ( ( void * ) null )
{
_ _ PointerAdjustment = 0 ;
if ( native = = null )
return ;
_ _ Instance = new global :: System . IntPtr ( native ) ;
}
public TemplateTemplateParameter ( )
: this ( ( void * ) null )
{
_ _ Instance = Marshal . AllocHGlobal ( 1 4 8 ) ;
_ _ ownsNativeInstance = true ;
NativeToManagedMap [ _ _ Instance ] = this ;
Internal . ctor_0 ( ( _ _ Instance + _ _ PointerAdjustment ) ) ;
}
public TemplateTemplateParameter ( CppSharp . Parser . AST . TemplateTemplateParameter _ 0 )
: this ( ( void * ) null )
{
_ _ Instance = Marshal . AllocHGlobal ( 1 4 8 ) ;
_ _ ownsNativeInstance = true ;
NativeToManagedMap [ _ _ Instance ] = this ;
if ( ReferenceEquals ( _ 0 , null ) )
throw new global :: System . ArgumentNullException ( "_0" , "Cannot be null because it is a C++ reference (&)." ) ;
var arg0 = _ 0. _ _ Instance ;
Internal . cctor_1 ( ( _ _ Instance + _ _ PointerAdjustment ) , arg0 ) ;
}
protected override void Dispose ( bool disposing )
{
CppSharp . Parser . AST . Declaration _ _d ummy ;
NativeToManagedMap . TryRemove ( _ _ Instance , out _ _d ummy ) ;
Internal . dtor_0 ( ( _ _ Instance + _ _ PointerAdjustment ) , 0 ) ;
if ( _ _ ownsNativeInstance )
Marshal . FreeHGlobal ( _ _ Instance ) ;
}
public bool IsParameterPack
{
get
{
return ( ( Internal * ) _ _ Instance ) - > IsParameterPack ! = 0 ;
}
set
{
( ( Internal * ) _ _ Instance ) - > IsParameterPack = ( byte ) ( value ? 1 : 0 ) ;
}
}
public bool IsPackExpansion
{
get
{
return ( ( Internal * ) _ _ Instance ) - > IsPackExpansion ! = 0 ;
}
set
{
( ( Internal * ) _ _ Instance ) - > IsPackExpansion = ( byte ) ( value ? 1 : 0 ) ;
}
}
public bool IsExpandedParameterPack
{
get
{
return ( ( Internal * ) _ _ Instance ) - > IsExpandedParameterPack ! = 0 ;
}
set
{
( ( Internal * ) _ _ Instance ) - > IsExpandedParameterPack = ( byte ) ( value ? 1 : 0 ) ;
}
}
}
public unsafe partial class TypeTemplateParameter : CppSharp . Parser . AST . TemplateParameter , IDisposable
public unsafe partial class TypeTemplateParameter : CppSharp . Parser . AST . TemplateParameter , IDisposable
{
{
[StructLayout(LayoutKind.Explicit, Size = 148)]
[StructLayout(LayoutKind.Explicit, Size = 148)]