Mask Class Reference
[Matrix Characteristics]

This class collects masks of each characteristic type for representing sets of accceptable characteristics. More...

#include <MatrixCharacteristics.h>

List of all members.

Public Types

typedef unsigned int SizeMask

Public Member Functions

 Mask ()
bool isResizable () const
bool isFullyResizable () const
bool isNumRowsLocked () const
bool isNumColsLocked () const
unsigned int getNumRowsMask () const
unsigned int getNumColsMask () const
unsigned int getLowerBandwidthMask () const
unsigned int getUpperBandwidthMask () const
int getDefaultNumRows () const
int getDefaultNumCols () const
bool isLowerBandwidthLocked () const
bool isUpperBandwidthLocked () const
int getDefaultLowerBandwidth () const
int getDefaultUpperBandwidth () const
MasksetToUncommitted ()
 Set all bits to one ("Uncommitted").
bool isUncommitted () const
 Return if all fields are set to "Uncommitted" (all bits are one).
bool isSatisfiedBy (const MatrixCharacter &actual) const
 Check whether an actual matrix character satisfies this matrix commitment.
bool isSizeOK (int m, int n) const
 Check whether an actual size satisfies the size commitment.
bool isBandwidthOK (int lower, int upper) const
 Check whether an actual bandwidth satisfies the bandwidth commitment.

Public Attributes

SizeMask nr
 number of rows
SizeMask nc
 number of columns
SizeMask lband
 lower bandwidth, if banded
SizeMask uband
 upper bandwidth, if banded
MatrixStructure::Mask structure
MatrixStorage::Mask storage
MatrixOutline::Mask outline
MatrixCondition::Mask condition

Static Public Attributes

static const SizeMask SizeUncommitted = 0xffffffffU

Friends

class MatrixCommitment

Detailed Description

This class collects masks of each characteristic type for representing sets of accceptable characteristics.


Member Typedef Documentation

typedef unsigned int SizeMask

Constructor & Destructor Documentation

Mask (  )  [inline]

Member Function Documentation

int getDefaultLowerBandwidth (  )  const [inline]
int getDefaultNumCols (  )  const [inline]
int getDefaultNumRows (  )  const [inline]
int getDefaultUpperBandwidth (  )  const [inline]
unsigned int getLowerBandwidthMask (  )  const [inline]

References Mask::lband.

unsigned int getNumColsMask (  )  const [inline]

References Mask::nc.

unsigned int getNumRowsMask (  )  const [inline]

References Mask::nr.

unsigned int getUpperBandwidthMask (  )  const [inline]

References Mask::uband.

bool isBandwidthOK ( int  lower,
int  upper 
) const [inline]

Check whether an actual bandwidth satisfies the bandwidth commitment.

(If the matrix isn't banded any bandwidth will be OK.)

References Mask::lband, and Mask::uband.

Referenced by Mask::isSatisfiedBy().

bool isFullyResizable (  )  const [inline]
bool isLowerBandwidthLocked (  )  const [inline]
bool isNumColsLocked (  )  const [inline]

References Mask::nc, and Mask::SizeUncommitted.

Referenced by Mask::getDefaultNumCols().

bool isNumRowsLocked (  )  const [inline]

References Mask::nr, and Mask::SizeUncommitted.

Referenced by Mask::getDefaultNumRows().

bool isResizable (  )  const [inline]
bool isSatisfiedBy ( const MatrixCharacter actual  )  const [inline]
bool isSizeOK ( int  m,
int  n 
) const [inline]

Check whether an actual size satisfies the size commitment.

References Mask::nc, and Mask::nr.

Referenced by Mask::isSatisfiedBy().

bool isUncommitted (  )  const [inline]

Return if all fields are set to "Uncommitted" (all bits are one).

References Mask::condition, Mask::isUncommitted(), Mask::lband, Mask::nc, Mask::nr, Mask::outline, Mask::SizeUncommitted, Mask::storage, Mask::structure, and Mask::uband.

bool isUpperBandwidthLocked (  )  const [inline]
Mask& setToUncommitted (  )  [inline]

Friends And Related Function Documentation

friend class MatrixCommitment [friend]

Member Data Documentation

const SizeMask SizeUncommitted = 0xffffffffU [static]

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

Generated on Wed Dec 30 11:05:26 2009 for SimTKcore by  doxygen 1.6.1