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