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