PageRenderTime 65ms CodeModel.GetById 40ms app.highlight 0ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-25/SWIG/Lib/ruby/rubyopers.swg

#
Unknown | 52 lines | 47 code | 5 blank | 0 comment | 0 complexity | 7c084c09c3195cd6f27d460a9dd07618 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
 1/* ------------------------------------------------------------
 2 * Overloaded operator support
 3 * ------------------------------------------------------------ */
 4
 5#ifdef __cplusplus
 6
 7%rename(__add__)      *::operator+;
 8%rename(__pos__)      *::operator+();
 9%rename(__pos__)      *::operator+() const;
10%rename(__sub__)      *::operator-;
11%rename(__neg__)      *::operator-();
12%rename(__neg__)      *::operator-() const;
13%rename(__mul__)      *::operator*;
14%rename(__div__)      *::operator/;
15%rename(__mod__)      *::operator%;
16%rename(__lshift__)   *::operator<<;
17%rename(__rshift__)   *::operator>>;
18%rename(__and__)      *::operator&;
19%rename(__or__)       *::operator|;
20%rename(__xor__)      *::operator^;
21%rename(__invert__)   *::operator~;
22%rename(__lt__)       *::operator<;
23%rename(__le__)       *::operator<=;
24%rename(__gt__)       *::operator>;
25%rename(__ge__)       *::operator>=;
26%rename(__eq__)       *::operator==;
27
28/* Special cases */
29%rename(__call__)     *::operator();
30
31/* Ignored operators */
32%ignorewarn("378:operator!= ignored")  operator!=;
33%ignorewarn("365:operator+= ignored")  operator+=;
34%ignorewarn("366:operator-= ignored")  operator-=;
35%ignorewarn("367:operator*= ignored")  operator*=;
36%ignorewarn("368:operator/= ignored")  operator/=;
37%ignorewarn("369:operator%= ignored")  operator%=;
38%ignorewarn("375:operator<<= ignored") operator<<=;
39%ignorewarn("376:operator>>= ignored") operator>>=;
40%ignorewarn("371:operator&= ignored")  operator&=;
41%ignorewarn("372:operator|= ignored")  operator|=;
42%ignorewarn("370:operator^= ignored")  operator^=;
43%ignorewarn("362:operator= ignored")   operator=;
44%ignorewarn("383:operator++ ignored")  operator++;
45%ignorewarn("384:operator-- ignored")  operator--;
46%ignorewarn("381:operator&& ignored")  operator&&;
47%ignorewarn("382:operator|| ignored")  operator||;
48// %ignorewarn("387:operator-> ignored")  operator->;
49%ignorewarn("386:operator->* ignored") operator->*;
50%ignorewarn("389:operator[] ignored (consider using %extend)") operator[];
51
52#endif /* __cplusplus */