|
CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
|
Represents the position of an element in a sequence. It wraps a reference to a segment object (usually held by a ReadOnlySequence) and an integer offset into that segment. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type. More...
#include <sequence_position.h>
Inherits System::Details::BoxableObjectBase.
Public Member Functions | |
| SequencePosition () noexcept | |
| Constructs a default SequencePosition that refers to no segment. More... | |
| SequencePosition (const SharedPtr< Object > &object) | |
| Constructs a SequencePosition that identifies the specified segment reference. More... | |
| SequencePosition (const SharedPtr< Object > &object, int32_t integer) | |
| Constructs a SequencePosition that identifies the specified segment reference and an integer offset within that segment. More... | |
| const SharedPtr< Object > & | GetObject () const noexcept |
| Gets the segment reference this position points into. More... | |
| int32_t | GetInteger () const noexcept |
| Gets the integer offset that accompanies the referenced segment. More... | |
| bool | Equals (const SequencePosition &other) const |
| Determines whether the current SequencePosition and the specified one represent the same position. More... | |
| int32_t | GetHashCode () const |
| Returns a hash code for the current SequencePosition. More... | |
Represents the position of an element in a sequence. It wraps a reference to a segment object (usually held by a ReadOnlySequence) and an integer offset into that segment. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type.
|
noexcept |
Constructs a default SequencePosition that refers to no segment.
Constructs a SequencePosition that identifies the specified segment reference.
| object | The reference to the segment this position points into. |
Constructs a SequencePosition that identifies the specified segment reference and an integer offset within that segment.
| object | The reference to the segment this position points into. |
| integer | The offset (in elements) within the referenced segment. |
| bool System::SequencePosition::Equals | ( | const SequencePosition & | other | ) | const |
Determines whether the current SequencePosition and the specified one represent the same position.
| other | The SequencePosition to compare with the current one. |
| int32_t System::SequencePosition::GetHashCode | ( | ) | const |
Returns a hash code for the current SequencePosition.
|
noexcept |
Gets the integer offset that accompanies the referenced segment.