4.6.0
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
fcppt::container::bitfield::proxy< StoredType > Class Template Reference

Detailed Description

template<typename StoredType>
class fcppt::container::bitfield::proxy< StoredType >

The proxy class referencing a single bit in a bitfield.

This class is used as a reference type for fcppt::container::bitfield::object.

Template Parameters
StoredTypeThe internal container type for the bitfield.

Public Member Functions

 proxy (proxy const &)
 
 proxy (proxy &&) noexcept
 
proxyoperator= (proxy const &)
 
proxyoperator= (proxy &&) noexcept
 
 ~proxy ()
 
proxyoperator= (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
 

Constructor & Destructor Documentation

◆ proxy() [1/2]

template<typename StoredType >
fcppt::container::bitfield::proxy< StoredType >::proxy ( proxy< StoredType > const & )

◆ proxy() [2/2]

template<typename StoredType >
fcppt::container::bitfield::proxy< StoredType >::proxy ( proxy< StoredType > && )
noexcept

◆ ~proxy()

template<typename StoredType >
fcppt::container::bitfield::proxy< StoredType >::~proxy ( )

Member Function Documentation

◆ operator fcppt::container::bitfield::value_type()

template<typename StoredType >
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.

◆ operator=() [1/3]

template<typename StoredType >
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.

◆ operator=() [2/3]

template<typename StoredType >
proxy & fcppt::container::bitfield::proxy< StoredType >::operator= ( proxy< StoredType > && )
noexcept

◆ operator=() [3/3]

template<typename StoredType >
proxy & fcppt::container::bitfield::proxy< StoredType >::operator= ( proxy< StoredType > const & )

Friends And Related Symbol Documentation

◆ fcppt::container::bitfield::object

template<typename StoredType >
template<typename , typename >
friend class fcppt::container::bitfield::object
friend