UE2:Object operators (UT2004): Difference between revisions
From Unreal Wiki, The Unreal Engine Documentation Site
Auto-generated page |
m grouped operators by type |
||
Line 3: | Line 3: | ||
| part = operators | | part = operators | ||
}} | }} | ||
{{ | Operators below are grouped by type and sorted by precedence. | ||
== | |||
Apart from the operators listed here, there are also a few implicitly declared [[operators]], like assignment and generic struct (in)equality. | |||
{{todo| | |||
*fix OR operator declaration display | |||
*add descriptions. | |||
}} | |||
==Bool operators== | |||
====!bool==== | ====!bool==== | ||
{{code|native(129) static final preoperator [[bool]] '''!''' ([[bool]] '''A''')}} | {{code|native(129) static final preoperator [[bool]] '''!''' ([[bool]] '''A''')}} | ||
Line 10: | Line 16: | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====bool == bool==== | ||
{{code|native( | {{code|native(242) static final operator(24) [[bool]] '''==''' ([[bool]] '''A''', [[bool]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====bool != bool==== | ||
{{code|native( | {{code|native(243) static final operator(26) [[bool]] '''!=''' ([[bool]] '''A''', [[bool]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====bool && bool==== | ||
{{code|native( | {{code|native(130) static final operator(30) [[bool]] '''&&''' ([[bool]] '''A''', skip [[bool]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====bool ^^ bool==== | ||
{{code|native( | {{code|native(131) static final operator(30) [[bool]] '''^^''' ([[bool]] '''A''', [[bool]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====bool || bool==== | ||
{{code|native( | {{code|native(132) static final operator(32) [[bool]] '''||''' ([[bool]] '''A''', skip [[bool]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ==Byte operators== | ||
{{code|native( | ====++byte==== | ||
{{code|native(137) static final preoperator [[byte]] '''++''' (out [[byte]] '''A''')}} | |||
<!-- enter operator description --> | <!-- enter operator description --> | ||
====-- | ====--byte==== | ||
{{code|native( | {{code|native(138) static final preoperator [[byte]] '''--''' (out [[byte]] '''A''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
Line 55: | Line 57: | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====byte--==== | ||
{{code|native( | {{code|native(140) static final postoperator [[byte]] '''--''' (out [[byte]] '''A''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
====byte | ====byte *= byte==== | ||
{{code|native( | {{code|native(133) static final operator(34) [[byte]] '''*=''' (out [[byte]] '''A''', [[byte]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====byte += byte==== | ||
{{code|native( | {{code|native(135) static final operator(34) [[byte]] '''+=''' (out [[byte]] '''A''', [[byte]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====byte -= byte==== | ||
{{code|native( | {{code|native(136) static final operator(34) [[byte]] '''-=''' (out [[byte]] '''A''', [[byte]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====byte /= byte==== | ||
{{code|native( | {{code|native(134) static final operator(34) [[byte]] '''/=''' (out [[byte]] '''A''', [[byte]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ==Int operators== | ||
{{code|native( | ====++int==== | ||
{{code|native(163) static final preoperator [[int]] '''++''' (out [[int]] '''A''')}} | |||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====-int==== | ||
{{code|native( | {{code|native(143) static final preoperator [[int]] '''-''' ([[int]] '''A''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====--int==== | ||
{{code|native( | {{code|native(164) static final preoperator [[int]] '''--''' (out [[int]] '''A''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====~int==== | ||
{{code|native( | {{code|native(141) static final preoperator [[int]] '''~''' ([[int]] '''A''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====int++==== | ||
{{code|native( | {{code|native(165) static final postoperator [[int]] '''++''' (out [[int]] '''A''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====int--==== | ||
{{code|native( | {{code|native(166) static final postoperator [[int]] '''--''' (out [[int]] '''A''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====int * int==== | ||
{{code|native( | {{code|native(144) static final operator(16) [[int]] '''*''' ([[int]] '''A''', [[int]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
Line 120: | Line 123: | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====int + int==== | ||
{{code|native( | {{code|native(146) static final operator(20) [[int]] '''+''' ([[int]] '''A''', [[int]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====int - int==== | ||
{{code|native( | {{code|native(147) static final operator(20) [[int]] '''-''' ([[int]] '''A''', [[int]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====int << int==== | ||
{{code|native( | {{code|native(148) static final operator(22) [[int]] '''<<''' ([[int]] '''A''', [[int]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====int >> int==== | ||
{{code|native( | {{code|native(149) static final operator(22) [[int]] '''>>''' ([[int]] '''A''', [[int]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====int >>> int==== | ||
{{code|native( | {{code|native(196) static final operator(22) [[int]] '''>>>''' ([[int]] '''A''', [[int]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====int < int==== | ||
{{code|native( | {{code|native(150) static final operator(24) [[bool]] '''<''' ([[int]] '''A''', [[int]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
====int | ====int <= int==== | ||
{{code|native( | {{code|native(152) static final operator(24) [[bool]] '''<=''' ([[int]] '''A''', [[int]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====int == int==== | ||
{{code|native( | {{code|native(154) static final operator(24) [[bool]] '''==''' ([[int]] '''A''', [[int]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====int > int==== | ||
{{code|native( | {{code|native(151) static final operator(24) [[bool]] '''>''' ([[int]] '''A''', [[int]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====int >= int==== | ||
{{code|native( | {{code|native(153) static final operator(24) [[bool]] '''>=''' ([[int]] '''A''', [[int]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
====int | ====int != int==== | ||
{{code|native( | {{code|native(155) static final operator(26) [[bool]] '''!=''' ([[int]] '''A''', [[int]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====int & int==== | ||
{{code|native( | {{code|native(156) static final operator(28) [[int]] '''&''' ([[int]] '''A''', [[int]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====int ^ int==== | ||
{{code|native( | {{code|native(157) static final operator(28) [[int]] '''^''' ([[int]] '''A''', [[int]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
====int | ====int | int==== | ||
{{code|native( | {{code|native(158) static final operator(28) [[int]] '''|''' ([[int]] '''A''', [[int]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====int *= float==== | ||
{{code|native( | {{code|native(159) static final operator(34) [[int]] '''*=''' (out [[int]] '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
====int | ====int += int==== | ||
{{code|native( | {{code|native(161) static final operator(34) [[int]] '''+=''' (out [[int]] '''A''', [[int]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====int -= int==== | ||
{{code|native( | {{code|native(162) static final operator(34) [[int]] '''-=''' (out [[int]] '''A''', [[int]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
====int | ====int /= float==== | ||
{{code|native( | {{code|native(160) static final operator(34) [[int]] '''/=''' (out [[int]] '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ==Float operators== | ||
{{code|native( | ====-float==== | ||
{{code|native(169) static final preoperator [[float]] '''-''' ([[float]] '''A''')}} | |||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====float ** float==== | ||
{{code|native( | {{code|native(170) static final operator(12) [[float]] '''**''' ([[float]] '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====float * float==== | ||
{{code|native( | {{code|native(171) static final operator(16) [[float]] '''*''' ([[float]] '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
====float | ====float / float==== | ||
{{code|native( | {{code|native(172) static final operator(16) [[float]] '''/''' ([[float]] '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====float % float==== | ||
{{code|native( | {{code|native(173) static final operator(18) [[float]] '''%''' ([[float]] '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====float + float==== | ||
{{code|native( | {{code|native(174) static final operator(20) [[float]] '''+''' ([[float]] '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====float - float==== | ||
{{code|native( | {{code|native(175) static final operator(20) [[float]] '''-''' ([[float]] '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
====float | ====float < float==== | ||
{{code|native( | {{code|native(176) static final operator(24) [[bool]] '''<''' ([[float]] '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====float <= float==== | ||
{{code|native( | {{code|native(178) static final operator(24) [[bool]] '''<=''' ([[float]] '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====float == float==== | ||
{{code|native( | {{code|native(180) static final operator(24) [[bool]] '''==''' ([[float]] '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====float > float==== | ||
{{code|native( | {{code|native(177) static final operator(24) [[bool]] '''>''' ([[float]] '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====float >= float==== | ||
{{code|native( | {{code|native(179) static final operator(24) [[bool]] '''>=''' ([[float]] '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====float ~= float==== | ||
{{code|native( | {{code|native(210) static final operator(24) [[bool]] '''~=''' ([[float]] '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====float != float==== | ||
{{code|native( | {{code|native(181) static final operator(26) [[bool]] '''!=''' ([[float]] '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
====float | ====float *= float==== | ||
{{code|native( | {{code|native(182) static final operator(34) [[float]] '''*=''' (out [[float]] '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====float += float==== | ||
{{code|native( | {{code|native(184) static final operator(34) [[float]] '''+=''' (out [[float]] '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====float -= float==== | ||
{{code|native( | {{code|native(185) static final operator(34) [[float]] '''-=''' (out [[float]] '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
====float | ====float /= float==== | ||
{{code|native( | {{code|native(183) static final operator(34) [[float]] '''/=''' (out [[float]] '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ==Vector operators== | ||
{{code|native( | ====-vector==== | ||
{{code|native(211) static final preoperator {{tl|Vector||Object structs}} '''-''' ({{tl|Vector||Object structs}} '''A''')}} | |||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====float * vector==== | ||
{{code|native( | {{code|native(213) static final operator(16) {{tl|Vector||Object structs}} '''*''' ([[float]] '''A''', {{tl|Vector||Object structs}} '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====vector * float==== | ||
{{code|native static final operator( | {{code|native(212) static final operator(16) {{tl|Vector||Object structs}} '''*''' ({{tl|Vector||Object structs}} '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====vector * vector==== | ||
{{code|native( | {{code|native(296) static final operator(16) {{tl|Vector||Object structs}} '''*''' ({{tl|Vector||Object structs}} '''A''', {{tl|Vector||Object structs}} '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====vector / float==== | ||
{{code|native( | {{code|native(214) static final operator(16) {{tl|Vector||Object structs}} '''/''' ({{tl|Vector||Object structs}} '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====vector Cross vector==== | ||
{{code|native( | {{code|native(220) static final operator(16) {{tl|Vector||Object structs}} '''Cross''' ({{tl|Vector||Object structs}} '''A''', {{tl|Vector||Object structs}} '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====vector Dot vector==== | ||
{{code|native( | {{code|native(219) static final operator(16) [[float]] '''Dot''' ({{tl|Vector||Object structs}} '''A''', {{tl|Vector||Object structs}} '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====vector + vector==== | ||
{{code|native( | {{code|native(215) static final operator(20) {{tl|Vector||Object structs}} '''+''' ({{tl|Vector||Object structs}} '''A''', {{tl|Vector||Object structs}} '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====vector - vector==== | ||
{{code|native( | {{code|native(216) static final operator(20) {{tl|Vector||Object structs}} '''-''' ({{tl|Vector||Object structs}} '''A''', {{tl|Vector||Object structs}} '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====vector << rotator==== | ||
{{code|native( | {{code|native(275) static final operator(22) {{tl|Vector||Object structs}} '''<<''' ({{tl|Vector||Object structs}} '''A''', {{tl|Rotator||Object structs}} '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====vector >> rotator==== | ||
{{code|native( | {{code|native(276) static final operator(22) {{tl|Vector||Object structs}} '''>>''' ({{tl|Vector||Object structs}} '''A''', {{tl|Rotator||Object structs}} '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====vector == vector==== | ||
{{code|native( | {{code|native(217) static final operator(24) [[bool]] '''==''' ({{tl|Vector||Object structs}} '''A''', {{tl|Vector||Object structs}} '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
Line 365: | Line 370: | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====vector *= float==== | ||
{{code|native( | {{code|native(221) static final operator(34) {{tl|Vector||Object structs}} '''*=''' (out {{tl|Vector||Object structs}} '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====vector *= vector==== | ||
{{code|native( | {{code|native(297) static final operator(34) {{tl|Vector||Object structs}} '''*=''' (out {{tl|Vector||Object structs}} '''A''', {{tl|Vector||Object structs}} '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====vector += vector==== | ||
{{code|native( | {{code|native(223) static final operator(34) {{tl|Vector||Object structs}} '''+=''' (out {{tl|Vector||Object structs}} '''A''', {{tl|Vector||Object structs}} '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====vector -= vector==== | ||
{{code|native( | {{code|native(224) static final operator(34) {{tl|Vector||Object structs}} '''-=''' (out {{tl|Vector||Object structs}} '''A''', {{tl|Vector||Object structs}} '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====vector /= float==== | ||
{{code|native( | {{code|native(222) static final operator(34) {{tl|Vector||Object structs}} '''/=''' (out {{tl|Vector||Object structs}} '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ==Rotator operators== | ||
{{code|native( | ====float * rotator==== | ||
{{code|native(288) static final operator(16) {{tl|Rotator||Object structs}} '''*''' ([[float]] '''A''', {{tl|Rotator||Object structs}} '''B''')}} | |||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====rotator * float==== | ||
{{code|native( | {{code|native(287) static final operator(16) {{tl|Rotator||Object structs}} '''*''' ({{tl|Rotator||Object structs}} '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====rotator / float==== | ||
{{code|native( | {{code|native(289) static final operator(16) {{tl|Rotator||Object structs}} '''/''' ({{tl|Rotator||Object structs}} '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====rotator + rotator==== | ||
{{code|native( | {{code|native(316) static final operator(20) {{tl|Rotator||Object structs}} '''+''' ({{tl|Rotator||Object structs}} '''A''', {{tl|Rotator||Object structs}} '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
====rotator | ====rotator - rotator==== | ||
{{code|native( | {{code|native(317) static final operator(20) {{tl|Rotator||Object structs}} '''-''' ({{tl|Rotator||Object structs}} '''A''', {{tl|Rotator||Object structs}} '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====rotator == rotator==== | ||
{{code|native( | {{code|native(142) static final operator(24) [[bool]] '''==''' ({{tl|Rotator||Object structs}} '''A''', {{tl|Rotator||Object structs}} '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====int ClockwiseFrom int==== | ||
{{code|native | {{code|native static final operator(24) [[bool]] '''ClockwiseFrom''' ([[int]] '''A''', [[int]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====rotator != rotator==== | ||
{{code|native( | {{code|native(203) static final operator(26) [[bool]] '''!=''' ({{tl|Rotator||Object structs}} '''A''', {{tl|Rotator||Object structs}} '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====rotator *= float==== | ||
{{code|native( | {{code|native(290) static final operator(34) {{tl|Rotator||Object structs}} '''*=''' (out {{tl|Rotator||Object structs}} '''A''', [[float]] '''B''')}} | ||
{{ | |||
<!-- enter operator description --> | <!-- enter operator description --> | ||
Line 445: | Line 446: | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====rotator -= rotator==== | ||
{{code|native( | {{code|native(319) static final operator(34) {{tl|Rotator||Object structs}} '''-=''' (out {{tl|Rotator||Object structs}} '''A''', {{tl|Rotator||Object structs}} '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====rotator /= float==== | ||
{{code|native( | {{code|native(291) static final operator(34) {{tl|Rotator||Object structs}} '''/=''' (out {{tl|Rotator||Object structs}} '''A''', [[float]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ==String operators== | ||
{{code|native( | ====string < string==== | ||
{{code|native(115) static final operator(24) [[bool]] '''<''' ([[string]] '''A''', [[string]] '''B''')}} | |||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====string <= string==== | ||
{{code|native( | {{code|native(120) static final operator(24) [[bool]] '''<=''' ([[string]] '''A''', [[string]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====string == string==== | ||
{{code|native( | {{code|native(122) static final operator(24) [[bool]] '''==''' ([[string]] '''A''', [[string]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====string > string==== | ||
{{code|native( | {{code|native(116) static final operator(24) [[bool]] '''>''' ([[string]] '''A''', [[string]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====string >= string==== | ||
{{code|native( | {{code|native(121) static final operator(24) [[bool]] '''>=''' ([[string]] '''A''', [[string]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====string ~= string==== | ||
{{code|native( | {{code|native(124) static final operator(24) [[bool]] '''~=''' ([[string]] '''A''', [[string]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
==== | ====string != string==== | ||
{{code|native( | {{code|native(123) static final operator(26) [[bool]] '''!=''' ([[string]] '''A''', [[string]] '''B''')}} | ||
<!-- enter operator description --> | <!-- enter operator description --> | ||
Line 522: | Line 514: | ||
====string -= string==== | ====string -= string==== | ||
{{code|native(324) static final operator(45) [[string]] '''-=''' (out [[string]] '''A''', coerce [[string]] '''B''')}} | {{code|native(324) static final operator(45) [[string]] '''-=''' (out [[string]] '''A''', coerce [[string]] '''B''')}} | ||
<!-- enter operator description --> | |||
==Name operators== | |||
====name == name==== | |||
{{code|native(254) static final operator(24) [[bool]] '''==''' ([[name]] '''A''', [[name]] '''B''')}} | |||
<!-- enter operator description --> | |||
====name != name==== | |||
{{code|native(255) static final operator(26) [[bool]] '''!=''' ([[name]] '''A''', [[name]] '''B''')}} | |||
<!-- enter operator description --> | |||
==Object operators== | |||
====Object == Object==== | |||
{{code|native(114) static final operator(24) [[bool]] '''==''' ({{cl|Object}} '''A''', {{cl|Object}} '''B''')}} | |||
<!-- enter operator description --> | |||
====Object != Object==== | |||
{{code|native(119) static final operator(26) [[bool]] '''!=''' ({{cl|Object}} '''A''', {{cl|Object}} '''B''')}} | |||
<!-- enter operator description --> | <!-- enter operator description --> |
Revision as of 06:59, 1 December 2008
Object (operators) |
- Object operators in other games:
- Other member categories for this class:
Operators below are grouped by type and sorted by precedence.
Apart from the operators listed here, there are also a few implicitly declared operators, like assignment and generic struct (in)equality.
The following things need to be done on this page or in this section:
|
Bool operators
!bool
bool == bool
{{{1}}}
bool != bool
{{{1}}}
bool && bool
bool ^^ bool
bool || bool
native(132) static final operator(32) bool
Byte operators
++byte
--byte
byte++
byte--
byte *= byte
{{{1}}}
byte += byte
{{{1}}}
byte -= byte
{{{1}}}
byte /= byte
{{{1}}}
Int operators
++int
-int
--int
~int
int++
int--
int * int
int / int
int + int
int - int
int << int
int >> int
int >>> int
int < int
int <= int
{{{1}}}
int == int
{{{1}}}
int > int
int >= int
{{{1}}}
int != int
{{{1}}}
int & int
int ^ int
int | int
native(158) static final operator(28) int
int *= float
{{{1}}}
int += int
{{{1}}}
int -= int
{{{1}}}
int /= float
{{{1}}}
Float operators
-float
float ** float
float * float
float / float
float % float
float + float
float - float
float < float
float <= float
{{{1}}}
float == float
{{{1}}}
float > float
float >= float
{{{1}}}
float ~= float
{{{1}}}
float != float
{{{1}}}
float *= float
{{{1}}}
float += float
{{{1}}}
float -= float
{{{1}}}
float /= float
{{{1}}}
Vector operators
-vector
float * vector
vector * float
vector * vector
vector / float
vector Cross vector
vector Dot vector
vector + vector
vector - vector
vector << rotator
vector >> rotator
vector == vector
{{{1}}}
vector != vector
{{{1}}}
vector *= float
{{{1}}}
vector *= vector
{{{1}}}
vector += vector
{{{1}}}
vector -= vector
{{{1}}}
vector /= float
{{{1}}}
Rotator operators
float * rotator
rotator * float
rotator / float
rotator + rotator
rotator - rotator
rotator == rotator
{{{1}}}
int ClockwiseFrom int
rotator != rotator
{{{1}}}
rotator *= float
{{{1}}}
rotator += rotator
{{{1}}}
rotator -= rotator
{{{1}}}
rotator /= float
{{{1}}}
String operators
string < string
string <= string
{{{1}}}
string == string
{{{1}}}
string > string
string >= string
{{{1}}}
string ~= string
{{{1}}}
string != string
{{{1}}}
string $ string
string @ string
string $= string
{{{1}}}
string @= string
{{{1}}}
string -= string
{{{1}}}
Name operators
name == name
{{{1}}}
name != name
{{{1}}}
Object operators
Object == Object
{{{1}}}
Object != Object
{{{1}}}