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