mirror of https://github.com/mono/CppSharp.git
c-sharpdotnetmonobindingsbridgecclangcpluspluscppsharpglueinteropparserparsingpinvokeswigsyntax-treevisitorsxamarinxamarin-bindings
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
780 B
73 lines
780 B
|
|
class ClassWithCopyCtor { |
|
int x; |
|
|
|
public: |
|
ClassWithCopyCtor(int xarg) { |
|
x = xarg; |
|
} |
|
|
|
ClassWithCopyCtor(const ClassWithCopyCtor& f); |
|
|
|
static ClassWithCopyCtor Return (int x); |
|
|
|
int GetX (); |
|
}; |
|
|
|
class ClassWithDtor { |
|
int x; |
|
|
|
public: |
|
ClassWithDtor(int xarg) { |
|
x = xarg; |
|
} |
|
|
|
~ClassWithDtor () { |
|
} |
|
|
|
static ClassWithDtor Return (int x); |
|
|
|
int GetX (); |
|
}; |
|
|
|
|
|
class ClassWithoutCopyCtor { |
|
int x; |
|
|
|
public: |
|
ClassWithoutCopyCtor(int xarg) { |
|
x = xarg; |
|
} |
|
|
|
static ClassWithoutCopyCtor Return (int x); |
|
|
|
int GetX (); |
|
}; |
|
|
|
class Class { |
|
int x; |
|
|
|
public: |
|
Class (int xarg) { |
|
x = xarg; |
|
} |
|
|
|
void CopyFromValue (Class c) { |
|
x = c.x; |
|
} |
|
|
|
void CopyTo (Class *c) { |
|
c->x = x; |
|
} |
|
|
|
bool IsNull (Class *c) { |
|
return !c ? true : false; |
|
} |
|
|
|
int GetX () { |
|
return x; |
|
} |
|
}; |
|
|
|
|
|
|
|
|