4.6.0
Freundlich's C++ toolkit
|
The proxy class referencing a single bit in a bitfield.
This class is used as a reference type for fcppt::container::bitfield::object.
StoredType | The internal container type for the bitfield. |
Public Member Functions | |
proxy (proxy const &) | |
proxy (proxy &&) noexcept | |
proxy & | operator= (proxy const &) |
proxy & | operator= (proxy &&) noexcept |
~proxy () | |
proxy & | operator= (fcppt::container::bitfield::value_type rhs) |
Assigns a new value to the bit. | |
operator fcppt::container::bitfield::value_type () const | |
Provides conversion into a bool. | |
Friends | |
template<typename , typename > | |
class | fcppt::container::bitfield::object |
fcppt::container::bitfield::proxy< StoredType >::proxy | ( | proxy< StoredType > const & | ) |
|
noexcept |
fcppt::container::bitfield::proxy< StoredType >::~proxy | ( | ) |
fcppt::container::bitfield::proxy< StoredType >::operator fcppt::container::bitfield::value_type | ( | ) | const |
Provides conversion into a bool.
Converts into a boolean value. Depending on whether the bit referenced by this proxy is set or not, the value will be true
or false
.
proxy & fcppt::container::bitfield::proxy< StoredType >::operator= | ( | fcppt::container::bitfield::value_type | rhs | ) |
Assigns a new value to the bit.
Assign rhs to the bit referenced by this proxy.
|
noexcept |
proxy & fcppt::container::bitfield::proxy< StoredType >::operator= | ( | proxy< StoredType > const & | ) |
|
friend |