Cigar::CigarOperator Struct Reference

List of all members.

Public Member Functions

 CigarOperator (Operation operation, uint32_t count)
 Set the cigar operator with the specified operation and count length.
char getChar () const
 Get the character code (M, I, D, N, S, H, or P) associated with this operation.
bool operator== (const CigarOperator &rhs) const
 Compare only on the operator, true if they are the same, false if not. Match and mismatch are considered the same for CIGAR strings.
bool operator!= (const CigarOperator &rhs) const
 Compare only on the operator, false if they are the same, true if not. Match and mismatch are considered the same for CIGAR strings.

Public Attributes

Operation operation
uint32_t count

Detailed Description

Definition at line 107 of file Cigar.h.


Constructor & Destructor Documentation

Cigar::CigarOperator::CigarOperator ( Operation  operation,
uint32_t  count 
) [inline]

Set the cigar operator with the specified operation and count length.

Definition at line 118 of file Cigar.h.

00119             : operation(operation), count(count) {};


Member Function Documentation

char Cigar::CigarOperator::getChar (  )  const [inline]

Get the character code (M, I, D, N, S, H, or P) associated with this operation.

Definition at line 127 of file Cigar.h.

References Cigar::del, Cigar::hardClip, Cigar::insert, Cigar::match, Cigar::mismatch, Cigar::none, Cigar::pad, Cigar::skip, and Cigar::softClip.

00128         {
00129             switch (operation)
00130             {
00131                 case none:
00132                     return '?';  // error
00133                 case match:
00134                 case mismatch:
00135                     return'M';
00136                 case insert:
00137                     return 'I';
00138                 case del:
00139                     return'D';
00140                 case skip:
00141                     return 'N';
00142                 case softClip:
00143                     return 'S';
00144                 case hardClip:
00145                     return 'H';
00146                 case pad:
00147                     return 'P';
00148             }
00149             return '?'; // actually it is an error to get here
00150         }


The documentation for this struct was generated from the following file:
Generated on Tue Sep 6 17:52:01 2011 for libStatGen Software by  doxygen 1.6.3