xrpld
Loading...
Searching...
No Matches
xrpl::FeatureBitset Class Reference

#include <Feature.h>

Inheritance diagram for xrpl::FeatureBitset:
Collaboration diagram for xrpl::FeatureBitset:

Public Member Functions

 FeatureBitset ()=default
 FeatureBitset (Base const &b)
template<class... Fs>
 FeatureBitset (UInt256 const &f, Fs &&... fs)
template<class Col>
 FeatureBitset (Col const &fs)
auto operator[] (UInt256 const &f)
auto operator[] (UInt256 const &f) const
FeatureBitset & set (UInt256 const &f, bool value=true)
FeatureBitset & reset (UInt256 const &f)
FeatureBitset & flip (UInt256 const &f)
FeatureBitset & operator&= (FeatureBitset const &rhs)
FeatureBitset & operator|= (FeatureBitset const &rhs)
FeatureBitset operator~ () const
T bitset (T... args)
T operator== (T... args)
T all (T... args)
T any (T... args)
T count (T... args)
T flip (T... args)
T none (T... args)
T reset (T... args)
T set (T... args)
T size (T... args)
T test (T... args)
T operator[] (T... args)
T to_string (T... args)
T to_ullong (T... args)
T to_ulong (T... args)

Private Types

using Base = std::bitset<detail::kNumFeatures>

Private Member Functions

template<class... Fs>
void initFromFeatures (UInt256 const &f, Fs &&... fs)
T operator!= (T... args)
T operator&= (T... args)
T operator<< (T... args)
T operator<<= (T... args)
T operator>> (T... args)
T operator>>= (T... args)
T operator^= (T... args)
T operator|= (T... args)
T operator~ (T... args)

Friends

FeatureBitset operator& (FeatureBitset const &lhs, FeatureBitset const &rhs)
FeatureBitset operator& (FeatureBitset const &lhs, UInt256 const &rhs)
FeatureBitset operator& (UInt256 const &lhs, FeatureBitset const &rhs)
FeatureBitset operator| (FeatureBitset const &lhs, FeatureBitset const &rhs)
FeatureBitset operator| (FeatureBitset const &lhs, UInt256 const &rhs)
FeatureBitset operator| (UInt256 const &lhs, FeatureBitset const &rhs)
FeatureBitset operator^ (FeatureBitset const &lhs, FeatureBitset const &rhs)
FeatureBitset operator^ (FeatureBitset const &lhs, UInt256 const &rhs)
FeatureBitset operator^ (UInt256 const &lhs, FeatureBitset const &rhs)
FeatureBitset operator- (FeatureBitset const &lhs, FeatureBitset const &rhs)
FeatureBitset operator- (FeatureBitset const &lhs, UInt256 const &rhs)
FeatureBitset operator- (UInt256 const &lhs, FeatureBitset const &rhs)

Detailed Description

Definition at line 195 of file Feature.h.

Member Typedef Documentation

◆ Base

Definition at line 197 of file Feature.h.

Constructor & Destructor Documentation

◆ FeatureBitset() [1/4]

xrpl::FeatureBitset::FeatureBitset ( )
default

◆ FeatureBitset() [2/4]

xrpl::FeatureBitset::FeatureBitset ( Base const & b)
explicit

Definition at line 228 of file Feature.h.

◆ FeatureBitset() [3/4]

template<class... Fs>
xrpl::FeatureBitset::FeatureBitset ( UInt256 const & f,
Fs &&... fs )
explicit

Definition at line 234 of file Feature.h.

◆ FeatureBitset() [4/4]

template<class Col>
xrpl::FeatureBitset::FeatureBitset ( Col const & fs)
explicit

Definition at line 244 of file Feature.h.

Member Function Documentation

◆ initFromFeatures()

template<class... Fs>
void xrpl::FeatureBitset::initFromFeatures ( UInt256 const & f,
Fs &&... fs )
private

Definition at line 201 of file Feature.h.

◆ operator[]() [1/3]

auto xrpl::FeatureBitset::operator[] ( UInt256 const & f)

Definition at line 255 of file Feature.h.

◆ operator[]() [2/3]

auto xrpl::FeatureBitset::operator[] ( UInt256 const & f) const

Definition at line 261 of file Feature.h.

◆ set() [1/2]

FeatureBitset & xrpl::FeatureBitset::set ( UInt256 const & f,
bool value = true )

Definition at line 267 of file Feature.h.

◆ reset() [1/2]

FeatureBitset & xrpl::FeatureBitset::reset ( UInt256 const & f)

Definition at line 274 of file Feature.h.

◆ flip() [1/2]

FeatureBitset & xrpl::FeatureBitset::flip ( UInt256 const & f)

Definition at line 281 of file Feature.h.

◆ operator&=()

FeatureBitset & xrpl::FeatureBitset::operator&= ( FeatureBitset const & rhs)

Definition at line 288 of file Feature.h.

◆ operator|=()

FeatureBitset & xrpl::FeatureBitset::operator|= ( FeatureBitset const & rhs)

Definition at line 295 of file Feature.h.

◆ operator~()

FeatureBitset xrpl::FeatureBitset::operator~ ( ) const

Definition at line 302 of file Feature.h.

◆ bitset()

T std::bitset< detail::kNumFeatures >::bitset ( T... args)

◆ operator==()

T std::bitset< detail::kNumFeatures >::operator== ( T... args)

◆ all()

T std::bitset< detail::kNumFeatures >::all ( T... args)

◆ any()

T std::bitset< detail::kNumFeatures >::any ( T... args)

◆ count()

T std::bitset< detail::kNumFeatures >::count ( T... args)

◆ flip() [2/2]

T std::bitset< detail::kNumFeatures >::flip ( T... args)

◆ none()

T std::bitset< detail::kNumFeatures >::none ( T... args)

◆ reset() [2/2]

T std::bitset< detail::kNumFeatures >::reset ( T... args)

◆ set() [2/2]

T std::bitset< detail::kNumFeatures >::set ( T... args)

◆ size()

T std::bitset< detail::kNumFeatures >::size ( T... args)

◆ test()

T std::bitset< detail::kNumFeatures >::test ( T... args)

◆ operator[]() [3/3]

T std::bitset< detail::kNumFeatures >::operator[] ( T... args)

◆ to_string()

T std::bitset< detail::kNumFeatures >::to_string ( T... args)

◆ to_ullong()

T std::bitset< detail::kNumFeatures >::to_ullong ( T... args)

◆ to_ulong()

T std::bitset< detail::kNumFeatures >::to_ulong ( T... args)

◆ operator& [1/3]

FeatureBitset operator& ( FeatureBitset const & lhs,
FeatureBitset const & rhs )
friend

Definition at line 308 of file Feature.h.

◆ operator& [2/3]

FeatureBitset operator& ( FeatureBitset const & lhs,
UInt256 const & rhs )
friend

Definition at line 314 of file Feature.h.

◆ operator& [3/3]

FeatureBitset operator& ( UInt256 const & lhs,
FeatureBitset const & rhs )
friend

Definition at line 320 of file Feature.h.

◆ operator| [1/3]

FeatureBitset operator| ( FeatureBitset const & lhs,
FeatureBitset const & rhs )
friend

Definition at line 326 of file Feature.h.

◆ operator| [2/3]

FeatureBitset operator| ( FeatureBitset const & lhs,
UInt256 const & rhs )
friend

Definition at line 332 of file Feature.h.

◆ operator| [3/3]

FeatureBitset operator| ( UInt256 const & lhs,
FeatureBitset const & rhs )
friend

Definition at line 338 of file Feature.h.

◆ operator^ [1/3]

FeatureBitset operator^ ( FeatureBitset const & lhs,
FeatureBitset const & rhs )
friend

Definition at line 344 of file Feature.h.

◆ operator^ [2/3]

FeatureBitset operator^ ( FeatureBitset const & lhs,
UInt256 const & rhs )
friend

Definition at line 350 of file Feature.h.

◆ operator^ [3/3]

FeatureBitset operator^ ( UInt256 const & lhs,
FeatureBitset const & rhs )
friend

Definition at line 356 of file Feature.h.

◆ operator- [1/3]

FeatureBitset operator- ( FeatureBitset const & lhs,
FeatureBitset const & rhs )
friend

Definition at line 363 of file Feature.h.

◆ operator- [2/3]

FeatureBitset operator- ( FeatureBitset const & lhs,
UInt256 const & rhs )
friend

Definition at line 369 of file Feature.h.

◆ operator- [3/3]

FeatureBitset operator- ( UInt256 const & lhs,
FeatureBitset const & rhs )
friend

Definition at line 375 of file Feature.h.