Example #1
0
 public static ITypeWrapper CreateTypeWrapper(CppSharp.AST.Type rawType)
 {
     if (rawType is CppSharp.AST.FunctionType)
     {
         return(new FunctionTypeWrapper(rawType));
     }
     else if (rawType is CppSharp.AST.BuiltinType)
     {
         return(new BuildinTypeWrapper(rawType));
     }
     else if (rawType is CppSharp.AST.DecayedType)
     {
         return(new DecayedTypeWrapper(rawType));
     }
     else if (rawType is CppSharp.AST.TagType)
     {
         return(new TagedTypeWrapper(rawType));
     }
     else if (rawType is CppSharp.AST.TypedefType)
     {
         return(new TypedefTypeWrapper(rawType));
     }
     else if (rawType is CppSharp.AST.PointerType)
     {
         return(new PointerTypeWrapper(rawType));
     }
     else if (rawType is CppSharp.AST.ArrayType)
     {
         return(new ArrayTypeWrapper(rawType));
     }
     else
     {
         return(new UnknowTypeWrapper(rawType));
     }
 }
Example #2
0
 public DecayedTypeWrapper(CppSharp.AST.Type rawType)
 {
     this.rawType = rawType;
     type = rawType as CppSharp.AST.DecayedType;
 }
Example #3
0
 public BuildinTypeWrapper(CppSharp.AST.Type rawType)
 {
     this.rawType = rawType;
     type = rawType as CppSharp.AST.BuiltinType;
 }
Example #4
0
 void VisitType(Parser.AST.Type origType, CppSharp.AST.Type type)
 {
     type.IsDependent = origType.IsDependent;
 }
Example #5
0
 public FunctionTypeWrapper(CppSharp.AST.Type rawType)
 {
     this.rawType = rawType;
     type         = rawType as CppSharp.AST.FunctionType;
 }
Example #6
0
 public UnknowTypeWrapper(CppSharp.AST.Type rawType)
 {
     this.rawType = rawType;
 }
Example #7
0
 public static string GetRawTypeName(CppSharp.AST.Type type)
 {
     return(TypeWrapperFactory.CreateTypeWrapper(type).GetRawTypeName());
 }
Example #8
0
 public PointerTypeWrapper(CppSharp.AST.Type rawType)
 {
     this.rawType = rawType;
     type = rawType as CppSharp.AST.PointerType;
 }
Example #9
0
 public PointerTypeWrapper(CppSharp.AST.Type rawType)
 {
     this.rawType = rawType;
     type         = rawType as CppSharp.AST.PointerType;
 }
Example #10
0
 public ArrayTypeWrapper(CppSharp.AST.Type rawType)
 {
     this.rawType = rawType;
     type         = rawType as CppSharp.AST.ArrayType;
 }
Example #11
0
 public TypedefTypeWrapper(CppSharp.AST.Type rawType)
 {
     this.rawType = rawType;
     type         = rawType as CppSharp.AST.TypedefType;
 }
Example #12
0
 public TagedTypeWrapper(CppSharp.AST.Type rawType)
 {
     this.rawType = rawType;
     type         = rawType as CppSharp.AST.TagType;
 }
Example #13
0
 public DecayedTypeWrapper(CppSharp.AST.Type rawType)
 {
     this.rawType = rawType;
     type         = rawType as CppSharp.AST.DecayedType;
 }
Example #14
0
 public TagedTypeWrapper(CppSharp.AST.Type rawType)
 {
     this.rawType = rawType;
     type = rawType as CppSharp.AST.TagType;
 }
Example #15
0
 public static string GetSystemTypeName(CppSharp.AST.Type type, bool addComment = false)
 {
     return(TypeWrapperFactory.CreateTypeWrapper(type).GetSystemTypeName(addComment));
 }
Example #16
0
 public TypedefTypeWrapper(CppSharp.AST.Type rawType)
 {
     this.rawType = rawType;
     type = rawType as CppSharp.AST.TypedefType;
 }
Example #17
0
 public static string GetMarshalTag(CppSharp.AST.Type type)
 {
     return(TypeWrapperFactory.CreateTypeWrapper(type).GetMarshalTag());
 }
Example #18
0
 public ArrayTypeWrapper(CppSharp.AST.Type rawType)
 {
     this.rawType = rawType;
     type = rawType as CppSharp.AST.ArrayType;
 }
Example #19
0
 public UnknowTypeWrapper(CppSharp.AST.Type rawType)
 {
     this.rawType = rawType;
 }
Example #20
0
 public FunctionTypeWrapper(CppSharp.AST.Type rawType)
 {
     this.rawType = rawType;
     type = rawType as CppSharp.AST.FunctionType;
 }
Example #21
0
 public BuildinTypeWrapper(CppSharp.AST.Type rawType)
 {
     this.rawType = rawType;
     type         = rawType as CppSharp.AST.BuiltinType;
 }