SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches

Represents an l-value to the RWBitVec and RWTBitVec classes. More...

#include <rw/bitref.h>

Public Member Functions

 operator bool () const
 
void operator&= (bool i)
 
bool operator= (bool i)
 
void operator^= (bool i)
 
void operator|= (bool i)
 
void swap (RWBitRef &br)
 

Friends

class RWBitVec
 

Detailed Description

Class RWBitRef is used as an l-value to the RWBitVec and RWTBitVec classes. RWBitRef instances should not be constructed directly.

Member Function Documentation

◆ operator bool()

RWBitRef::operator bool ( ) const
inline

Returns the value of the bit.

◆ operator&=()

void RWBitRef::operator&= ( bool i)
inline

Logical assignment operator.

◆ operator=()

bool RWBitRef::operator= ( bool i)
inline

Set the bit to the value i

◆ operator^=()

void RWBitRef::operator^= ( bool i)
inline

Logical assignment operator.

◆ operator|=()

void RWBitRef::operator|= ( bool i)
inline

Logical assignment operator.

◆ swap()

void RWBitRef::swap ( RWBitRef & br)
inline

Swaps the data owned by self with the data owned by br.

Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.