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.
97 lines
1.0 KiB
97 lines
1.0 KiB
#include "CSharpTemp.h" |
|
|
|
Foo::Foo() |
|
{ |
|
A = 10; |
|
P = 50; |
|
} |
|
|
|
int Foo::method() |
|
{ |
|
return 1; |
|
} |
|
|
|
int Foo::operator[](int i) const |
|
{ |
|
return 5; |
|
} |
|
|
|
int Foo::operator[](unsigned int i) |
|
{ |
|
return 15; |
|
} |
|
|
|
int& Foo::operator[](int i) |
|
{ |
|
return P; |
|
} |
|
|
|
const Foo& Bar::operator[](int i) const |
|
{ |
|
return m_foo; |
|
} |
|
|
|
int Qux::farAwayFunc() const |
|
{ |
|
return 20; |
|
} |
|
|
|
int Bar::method() |
|
{ |
|
return 2; |
|
} |
|
|
|
Foo& Bar::operator[](int i) |
|
{ |
|
return m_foo; |
|
} |
|
|
|
Baz::Nested::operator int() const |
|
{ |
|
return 300; |
|
} |
|
|
|
int Baz::takesQux(const Qux& qux) |
|
{ |
|
return qux.farAwayFunc(); |
|
} |
|
|
|
Qux Baz::returnQux() |
|
{ |
|
return Qux(); |
|
} |
|
|
|
Baz::operator int() const |
|
{ |
|
return 500; |
|
} |
|
|
|
int AbstractProprietor::getValue() |
|
{ |
|
return m_value; |
|
} |
|
|
|
void AbstractProprietor::setProp(long property) |
|
{ |
|
m_property = property; |
|
} |
|
|
|
void Proprietor::setValue(int value) |
|
{ |
|
m_value = value; |
|
} |
|
|
|
long Proprietor::prop() |
|
{ |
|
return m_property; |
|
} |
|
|
|
void P::setValue(int value) |
|
{ |
|
m_value = value + 10; |
|
} |
|
|
|
long P::prop() |
|
{ |
|
return m_property + 100; |
|
}
|
|
|