Accessors¶
This page contains information about accessing values in an instance of the Bipartition class.
-
inline uint32_t &libsemigroups::Bipartition::at(size_t i)¶
Returns a reference to the index of the block containing a value.
- Complexity
Constant.
- Parameters:
i – an integer
- Throws:
(None) – This function guarantees not to throw a
LibsemigroupsException.std::out_of_range – if the parameter
iis out of range.
- Returns:
A reference to the index of the block containing
i.
-
inline uint32_t const &libsemigroups::Bipartition::at(size_t i) const¶
Returns a const reference to the index of the block containing a value.
- Complexity
Constant.
- Parameters:
i – an integer
- Throws:
(None) – This function guarantees not to throw a
LibsemigroupsException.std::out_of_range – if the parameter
iis out of range.
- Returns:
A const reference to the index of the block containing
i.
-
inline uint32_t &libsemigroups::Bipartition::operator[](size_t i)¶
Returns the index of the block containing a value.
No bound checks are performed on the parameter
i.- Complexity
Constant.
- Parameters:
i – an integer
- Throws:
(None) – This function guarantees not to throw a
LibsemigroupsException.- Returns:
A reference to the index of the block containing
i.
-
inline uint32_t const &libsemigroups::Bipartition::operator[](size_t i) const¶
Returns the index of the block containing a value.
No bound checks are performed on the parameter
i.- Complexity
Constant.
- Parameters:
i – an integer
- Throws:
(None) – This function guarantees not to throw a
LibsemigroupsException.- Returns:
A const reference to the index of the block containing
i.