OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Protected Attributes | List of all members
ControlWord Class Reference

#include <controlw.h>

Inheritance diagram for ControlWord:
LoadAndStoreFlag

Public Member Functions

 ControlWord ()
 
 ControlWord (int i)
 
ControlWord operator* (ControlWord i) const
 
void operator*= (ControlWord i)
 
ControlWord operator+ (ControlWord i) const
 
void operator+= (ControlWord i)
 
ControlWord operator- (ControlWord i) const
 
void operator-= (ControlWord i)
 
bool operator>= (ControlWord i) const
 
bool operator<= (ControlWord i) const
 
ControlWord operator^ (ControlWord i) const
 
ControlWord operator~ () const
 
int operator+ () const
 
int operator! () const
 

Protected Attributes

int cw
 

Detailed Description

Definition at line 9 of file controlw.h.

Constructor & Destructor Documentation

◆ ControlWord() [1/2]

ControlWord::ControlWord ( )
inline

Definition at line 14 of file controlw.h.

Referenced by operator*(), operator+(), operator-(), operator^(), and operator~().

14 : cw(0) {} // do nothing

◆ ControlWord() [2/2]

ControlWord::ControlWord ( int  i)
inline

Definition at line 15 of file controlw.h.

15 : cw(i) {} // load an integer

Member Function Documentation

◆ operator!()

int ControlWord::operator! ( ) const
inline

Definition at line 43 of file controlw.h.

References cw.

43 { return cw==0; }

◆ operator*()

ControlWord ControlWord::operator* ( ControlWord  i) const
inline

Definition at line 18 of file controlw.h.

References ControlWord(), and cw.

19  { return ControlWord(cw & i.cw); }
ControlWord()
Definition: controlw.h:14

◆ operator*=()

void ControlWord::operator*= ( ControlWord  i)
inline

Definition at line 20 of file controlw.h.

References cw.

20 { cw &= i.cw; }

◆ operator+() [1/2]

ControlWord ControlWord::operator+ ( ControlWord  i) const
inline

Definition at line 23 of file controlw.h.

References ControlWord(), and cw.

24  { return ControlWord(cw | i.cw); }
ControlWord()
Definition: controlw.h:14

◆ operator+() [2/2]

int ControlWord::operator+ ( ) const
inline

Definition at line 42 of file controlw.h.

References cw.

42 { return cw; }

◆ operator+=()

void ControlWord::operator+= ( ControlWord  i)
inline

Definition at line 25 of file controlw.h.

References cw.

25 { cw |= i.cw; }

◆ operator-()

ControlWord ControlWord::operator- ( ControlWord  i) const
inline

Definition at line 28 of file controlw.h.

References ControlWord(), and cw.

29  { return ControlWord(cw - (cw & i.cw)); }
ControlWord()
Definition: controlw.h:14

◆ operator-=()

void ControlWord::operator-= ( ControlWord  i)
inline

Definition at line 30 of file controlw.h.

References cw.

30 { cw -= (cw & i.cw); }

◆ operator<=()

bool ControlWord::operator<= ( ControlWord  i) const
inline

Definition at line 34 of file controlw.h.

References cw.

34 { return (cw & i.cw) == cw; }

◆ operator>=()

bool ControlWord::operator>= ( ControlWord  i) const
inline

Definition at line 33 of file controlw.h.

References cw.

33 { return (cw & i.cw) == i.cw; }

◆ operator^()

ControlWord ControlWord::operator^ ( ControlWord  i) const
inline

Definition at line 37 of file controlw.h.

References ControlWord(), and cw.

38  { return ControlWord(cw ^ i.cw); }
ControlWord()
Definition: controlw.h:14

◆ operator~()

ControlWord ControlWord::operator~ ( ) const
inline

Definition at line 39 of file controlw.h.

References ControlWord(), and cw.

39 { return ControlWord(~cw); }
ControlWord()
Definition: controlw.h:14

Member Data Documentation

◆ cw

int ControlWord::cw
protected

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