17 #include "vtkSystemIncludes.h" 
   18 #include "vtkDICOMModule.h"  
  440   vtkDICOMVM(EnumType vm) : Key(static_cast<unsigned short>(vm)) {}
 
  444   bool IsValid()
 const { 
return (this->Key != 0); }
 
  449     if ((this->Key & 0x8000) != 0) { 
return (this->Key & 0x7fff); }
 
  450     else { 
return (this->Key >> 8); } }
 
  454     if ((this->Key & 0x8000) != 0) { 
return (this->Key & 0x7fff); }
 
  455     else { 
return ((this->Key & 0x80) == 0 ? (this->Key & 0xff) : -1); } }
 
  459     if ((this->Key & 0x8000) != 0) { 
return 1; }
 
  460     else { 
return ((this->Key & 0x80) == 0 ? 1 : ((-this->Key) & 0xff)); } }
 
  464   bool operator==(
vtkDICOMVM b)
 const { 
return (this->Key == b.Key); }
 
  465   bool operator!=(
vtkDICOMVM b)
 const { 
return (this->Key != b.Key); }
 
  466   bool operator<=(
vtkDICOMVM a)
 const { 
return (this->Key <= a.Key); }
 
  467   bool operator>=(
vtkDICOMVM a)
 const { 
return (this->Key >= a.Key); }
 
  468   bool operator<(
vtkDICOMVM a)
 const { 
return (this->Key < a.Key); }
 
  469   bool operator>(
vtkDICOMVM a)
 const { 
return (this->Key > a.Key); }
 
  476 VTKDICOM_EXPORT ostream& operator<<(ostream& o, 
const vtkDICOMVM& a);
 
VMs (Value Multiplicities)
Definition: vtkDICOMVM.h:22
int GetMin() const
Get the minimum allowed number of values.
Definition: vtkDICOMVM.h:448
int GetMax() const
Get the maximum allowed number of values, -1 if unlimited.
Definition: vtkDICOMVM.h:453
int GetStep() const
Get the step between allowed values.
Definition: vtkDICOMVM.h:458
vtkDICOMVM(EnumType vm)
Construct a VM from a VM enum constant.
Definition: vtkDICOMVM.h:440