コード例 #1
0
 public static IEnumerable <Expression> GetArguments(this CXXConstructExpr constructorExpr)
 {
     for (var x = 0; x < constructorExpr.ArgumentsCount; x++)
     {
         var argument = constructorExpr.getArguments((uint)x);
         yield return(argument);
     }
 }
コード例 #2
0
ファイル: StmtVisitor.cs プロジェクト: tornado12345/CppSharp
        public virtual bool VisitCXXConstructExpr(CXXConstructExpr stmt)
        {
            if (!VisitExpr(stmt))
            {
                return(false);
            }

            return(true);
        }
コード例 #3
0
ファイル: AST.cs プロジェクト: RainsSoft/CppSharp
 protected CXXConstructExpr(CXXConstructExpr.Internal* native, bool isInternalImpl = false)
     : base((CppSharp.Parser.AST.Expression.Internal*) native)
 {
 }
コード例 #4
0
ファイル: AST.cs プロジェクト: RainsSoft/CppSharp
 private CXXConstructExpr(CXXConstructExpr.Internal native)
     : this(__CopyValue(native))
 {
     __ownsNativeInstance = true;
     NativeToManagedMap[__Instance] = this;
 }
コード例 #5
0
ファイル: AST.cs プロジェクト: RainsSoft/CppSharp
 private static CXXConstructExpr.Internal* __CopyValue(CXXConstructExpr.Internal native)
 {
     var ret = Marshal.AllocHGlobal(64);
     CppSharp.Parser.AST.CXXConstructExpr.Internal.cctor_2(ret, new global::System.IntPtr(&native));
     return (CXXConstructExpr.Internal*) ret;
 }
コード例 #6
0
ファイル: AST.cs プロジェクト: RainsSoft/CppSharp
 public static CXXConstructExpr __CreateInstance(CXXConstructExpr.Internal native)
 {
     return new CXXConstructExpr(native);
 }
コード例 #7
0
 public bool VisitCXXConstructExpr(CXXConstructExpr stmt)
 {
     throw new NotImplementedException();
 }
コード例 #8
0
ファイル: AST.cs プロジェクト: CSRedRat/CppSharp
 protected CXXConstructExpr(CXXConstructExpr.Internal* native, bool skipVTables = false)
     : base((CppSharp.Parser.AST.Expression.Internal*) null)
 {
     __PointerAdjustment = 0;
     if (native == null)
         return;
     __Instance = new global::System.IntPtr(native);
 }
コード例 #9
0
ファイル: AST.cs プロジェクト: CSRedRat/CppSharp
 private CXXConstructExpr(CXXConstructExpr.Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance = true;
     NativeToManagedMap[__Instance] = this;
 }
コード例 #10
0
ファイル: AST.cs プロジェクト: CSRedRat/CppSharp
 public static CXXConstructExpr __CreateInstance(CXXConstructExpr.Internal native, bool skipVTables = false)
 {
     return new CXXConstructExpr(native, skipVTables);
 }
コード例 #11
0
 private static void* __CopyValue(CXXConstructExpr.__Internal native)
 {
     var ret = Marshal.AllocHGlobal(44);
     global::CppSharp.Parser.AST.CXXConstructExpr.__Internal.cctor_1(ret, new global::System.IntPtr(&native));
     return ret.ToPointer();
 }