#include <corenodes_conversion.h>
A ConversionSequence is a sequence of conversions (implemented by ConversionNode and registered by MAXON_CORENODE_REGISTER_CONVERSION) which are needed to convert from a source type to a destination type. It is created by CoreNodesLib::GetConversion().
◆ PartiallyOrdered
◆ ~ConversionSequence()
◆ ConversionSequence()
◆ Convert()
◆ operator[]() [1/2]
const CoreNode& operator[] |
( |
Int |
index | ) |
const |
Returns the conversion node at index. The conversion sequence applies conversion nodes in ascending order.
- Parameters
-
[in] | index | Index within this sequence. |
- Returns
- Conversion node at index.
◆ operator[]() [2/2]
CoreNode& operator[] |
( |
Int |
index | ) |
|
◆ GetCount()
Returns the number of conversions of this sequence.
- Returns
- Number of conversions.
◆ ToBlock()
Block<const CoreNode> ToBlock |
( |
| ) |
const |
Returns this conversion sequence as a block. The conversion sequence applies conversion nodes in ascending order.
- Returns
- Conversion sequence as a block.
◆ operator Block< const CoreNode >()
operator Block< const CoreNode > |
( |
| ) |
const |
Returns this conversion sequence as a block. The conversion sequence applies conversion nodes in ascending order.
- Returns
- Conversion sequence as a block.
◆ GetFlags()
Returns the conversion flags of this sequence. They are the combination of the flags of the individual conversion nodes.
- Returns
- Conversion flags of this sequence.
◆ operator==()
Checks if this @CLASS equals other.
- Parameters
-
- Returns
- True if this equals other, false otherwise.
◆ operator!=()
Checks if this @CLASS is not equal to other.
- Parameters
-
- Returns
- True if this is not equal to other, false otherwise.
◆ operator>()
Checks if this conversion sequence is better than other. For example a shorter sequence is better than a longer one, or the sequence Vec3<Float> → Float → Int is better than Vec3<Float> → Vec3<Int> → Int. This implements a partial ordering, i.e., there are pairs of sequences where one sequence is neither better nor worse than the other one.
- Parameters
-
[in] | other | Another conversion sequence. |
- Returns
- True if this sequence is better than other, false otherwise.
◆ operator>=()
Checks if this conversion sequence is better than other or the same. This implements a partial ordering. See operator> for more details.
- Parameters
-
[in] | other | Another conversion sequence. |
- Returns
- True if this sequence is better than other or the same, false otherwise.
◆ operator<()
Checks if this conversion sequence is worse than other. This implements a partial ordering. See operator> for more details.
- Parameters
-
[in] | other | Another conversion sequence. |
- Returns
- True if this sequence is worse than other, false otherwise.
◆ operator<=()
Checks if this conversion sequence is worse than other or the same. This implements a partial ordering. See operator> for more details.
- Parameters
-
[in] | other | Another conversion sequence. |
- Returns
- True if this sequence is worse than other or the same, false otherwise.
◆ ToString()
Returns a String representation of this @CLASS.
- Parameters
-
[in] | formatStatement | Nullptr or additional formatting instruction. |
- Returns
- String representation of this @CLASS.
◆ CoreNodesLibImpl
friend class CoreNodesLibImpl |
|
friend |
◆ _flags
◆ _count
◆ _sequence