casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
casacore::BitVectorHelper Class Reference

Helper class for BitVector. More...

#include <BitVector.h>

Public Member Functions

 BitVectorHelper (const BitVectorHelper &that)
 Copy constructor has to be public. More...
 
const BitVectorHelperoperator= (const BitVectorHelper &that) const
 Set the bit to the state of the bit in the other BitVector. More...
 
const BitVectorHelperoperator= (Bool state) const
 Set to a state. More...
 
 operator Bool () const
 Defines the conversion from BitVectorHelper to Bool. More...
 

Private Member Functions

 BitVectorHelper (uInt bitNumber, BitVector *vector)
 The constructor we actually use. More...
 

Private Attributes

uInt bitNumber_p
 
BitVectorvecPtr_p
 Pointer back to the original vector. More...
 

Friends

class BitVector
 

Detailed Description

Helper class for BitVector.

Intended use:

Internal

Review Status

Reviewed By:
Friso Olnon
Date Reviewed:
1995/03/13
Test programs:
tBitVector

Prerequisite

Synopsis

Helper class for class BitVector. For all practical purposes a BitVectorHelper object is the individual bit in a bit vector. It is the object returned by the index operator of BitVector.

Definition at line 251 of file BitVector.h.

Constructor & Destructor Documentation

casacore::BitVectorHelper::BitVectorHelper ( const BitVectorHelper that)
inline

Copy constructor has to be public.

Definition at line 318 of file BitVector.h.

casacore::BitVectorHelper::BitVectorHelper ( uInt  bitNumber,
BitVector vector 
)
inlineprivate

The constructor we actually use.

Definition at line 308 of file BitVector.h.

Member Function Documentation

casacore::BitVectorHelper::operator Bool ( ) const
inline

Defines the conversion from BitVectorHelper to Bool.

Definition at line 329 of file BitVector.h.

const BitVectorHelper & casacore::BitVectorHelper::operator= ( const BitVectorHelper that) const
inline

Set the bit to the state of the bit in the other BitVector.

Thus assignment has not the usual copy semantics, but affects the underlying BitVector bit.

Definition at line 335 of file BitVector.h.

const BitVectorHelper & casacore::BitVectorHelper::operator= ( Bool  state) const
inline

Set to a state.

Definition at line 323 of file BitVector.h.

References bitNumber_p, casacore::BitVector::putBit(), and vecPtr_p.

Friends And Related Function Documentation

friend class BitVector
friend

Definition at line 253 of file BitVector.h.

Member Data Documentation

uInt casacore::BitVectorHelper::bitNumber_p
private

Definition at line 272 of file BitVector.h.

Referenced by operator=().

BitVector* casacore::BitVectorHelper::vecPtr_p
private

Pointer back to the original vector.

Definition at line 275 of file BitVector.h.

Referenced by operator=().


The documentation for this class was generated from the following file: