
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Compound Members File Members
gnFilter Class Reference#include <gnFilter.h>
Inheritance diagram for gnFilter::
List of all members.
Public Types |
| enum | gnFilterType {
alphabetCharacterFilterType,
numberCharacterFilterType,
proteinSeqFilterType,
basicDNASeqFilterType,
fullDNASeqFilterType,
basicRNASeqFilterType,
fullRNASeqFilterType,
DNAtoRNAFilterType,
RNAtoDNAFilterType,
DNAComplementFilterType,
RNAComplementFilterType
} |
Public Methods |
| | gnFilter () |
| | gnFilter (const gnFilterType f_type) |
| | Creates a gnFilter for a predefined filter type. More...
|
| | gnFilter (const gnSeqC defaultChar, const gnSeqC rdefaultChar) |
| | gnFilter (const gnFilter &sf) |
| | ~gnFilter () |
| gnFilter* | Clone () const |
| boolean | IsValid (const gnSeqC ch) const |
| gnSeqC | MakeValid (const gnSeqC ch) const |
| gnSeqC | Filter (const gnSeqC ch) const |
| | Filter the given character. More...
|
| uint32 | IsValid (const gnSeqC *seq, const uint32 len) const |
| | IsValid() scans the supplied character array for invalid characters. More...
|
| void | MakeValid (gnSeqC *seq, const uint32 len) const |
| void | Filter (gnSeqC **seq, uint32 &len) const |
| | Filter the given character array. More...
|
| void | ReverseFilter (gnSeqC **seq, uint32 &len) const |
| uint32 | IsValid (const string &seq) const |
| void | MakeValid (string &seq) const |
| void | Filter (string &seq) const |
| | Filters the given string. More...
|
| void | ReverseFilter (string &seq) const |
| void | SetDefaultChar (const gnSeqC ch1, const gnSeqC ch2) |
| gnSeqC | GetDefaultChar () const |
| gnSeqC | GetRDefaultChar () const |
| void | SetSingle (const gnSeqC ch) |
| void | SetPair (const gnSeqC ch1, const gnSeqC ch2) |
| boolean | RemovePair (const gnSeqC ch) |
| boolean | RemoveSingle (const gnSeqC ch) |
Static Public Methods |
| const gnFilter* | alphabetCharacterFilter () |
| const gnFilter* | numberCharacterFilter () |
| const gnFilter* | proteinSeqFilter () |
| const gnFilter* | basicDNASeqFilter () |
| const gnFilter* | fullDNASeqFilter () |
| const gnFilter* | basicRNASeqFilter () |
| const gnFilter* | fullRNASeqFilter () |
| const gnFilter* | DNAtoRNAFilter () |
| const gnFilter* | RNAtoDNAFilter () |
| const gnFilter* | DNAComplementFilter () |
| const gnFilter* | RNAComplementFilter () |
Private Methods |
| void | CreateAlphabetCharacterFilter () |
| void | CreateNumberCharacterFilter () |
| void | CreateProteinFilter () |
| void | CreateBasicDNAFilter () |
| void | CreateFullDNAFilter () |
| void | CreateBasicRNAFilter () |
| void | CreateFullRNAFilter () |
| void | CreateDNAtoRNAFilter () |
| void | CreateRNAtoDNAFilter () |
| void | CreateDNAComplementFilter () |
| void | CreateRNAComplementFilter () |
Private Attributes |
| string | m_name |
| gnSeqC | m_pairArray [GNSEQC_MAX] |
| gnSeqC | m_defaultChar |
| gnSeqC | m_rDefaultChar |
Member Enumeration Documentation
|
enum gnFilter::gnFilterType
|
|
|
|
-
Enumeration values:
-
| alphabetCharacterFilterType
|
|
| numberCharacterFilterType
|
|
| proteinSeqFilterType
|
|
| basicDNASeqFilterType
|
|
| fullDNASeqFilterType
|
|
| basicRNASeqFilterType
|
|
| fullRNASeqFilterType
|
|
| DNAtoRNAFilterType
|
|
| RNAtoDNAFilterType
|
|
| DNAComplementFilterType
|
|
| RNAComplementFilterType
|
|
Definition at line 42 of file gnFilter.h. |
Constructor & Destructor Documentation
|
|
Definition at line 76 of file gnFilter.cpp.
Referenced by Clone(), DNAComplementFilter(), DNAtoRNAFilter(), RNAComplementFilter(), RNAtoDNAFilter(), alphabetCharacterFilter(), basicDNASeqFilter(), basicRNASeqFilter(), fullDNASeqFilter(), fullRNASeqFilter(), numberCharacterFilter(), and proteinSeqFilter().
|
|
|
Creates a gnFilter for a predefined filter type.
Used by the static sequence constructors to avoid the "static initialization order fiasco" -
Parameters:
-
| f_type
|
The type of filter to create. |
-
See also:
-
gnFilterType
Definition at line 100 of file gnFilter.cpp. |
|
gnFilter::gnFilter (
|
const gnSeqC defaultChar,
|
|
const gnSeqC rdefaultChar )
|
|
|
gnFilter::gnFilter (
|
const gnFilter & sf )
|
|
Member Function Documentation
|
gnFilter * gnFilter::Clone (
|
) const [inline, virtual]
|
|
|
void gnFilter::CreateAlphabetCharacterFilter (
|
) [private]
|
|
|
void gnFilter::CreateBasicDNAFilter (
|
) [private]
|
|
|
void gnFilter::CreateBasicRNAFilter (
|
) [private]
|
|
|
void gnFilter::CreateDNAComplementFilter (
|
) [private]
|
|
|
void gnFilter::CreateDNAtoRNAFilter (
|
) [private]
|
|
|
void gnFilter::CreateFullDNAFilter (
|
) [private]
|
|
|
void gnFilter::CreateFullRNAFilter (
|
) [private]
|
|
|
void gnFilter::CreateNumberCharacterFilter (
|
) [private]
|
|
|
void gnFilter::CreateProteinFilter (
|
) [private]
|
|
|
void gnFilter::CreateRNAComplementFilter (
|
) [private]
|
|
|
void gnFilter::CreateRNAtoDNAFilter (
|
) [private]
|
|
|
const gnFilter * gnFilter::DNAComplementFilter (
|
) [static]
|
|
|
const gnFilter * gnFilter::DNAtoRNAFilter (
|
) [static]
|
|
|
void gnFilter::Filter (
|
string & seq ) const [virtual]
|
|
|
void gnFilter::Filter (
|
gnSeqC ** seq,
|
|
uint32 & len ) const [inline, virtual]
|
|
|
|
Filter the given character array.
-
Parameters:
-
| seq
|
A pointer to the character array |
| len
|
the length of the character array to filter |
-
Returns:
-
The filtered character
Reimplemented from gnBaseFilter.
Definition at line 146 of file gnFilter.cpp. |
|
gnSeqC gnFilter::Filter (
|
const gnSeqC ch ) const [inline, virtual]
|
|
|
|
Filter the given character.
-
Parameters:
-
| ch
|
The character to filter |
-
Returns:
-
The filtered character
Reimplemented from gnBaseFilter.
Definition at line 148 of file gnFilter.h. |
|
gnSeqC gnFilter::GetDefaultChar (
|
) const [inline]
|
|
|
gnSeqC gnFilter::GetRDefaultChar (
|
) const [inline]
|
|
|
uint32 gnFilter::IsValid (
|
const string & seq ) const [inline]
|
|
|
|
IsValid() scans the supplied character array for invalid characters.
-
Parameters:
-
| seq
|
The sequence to scan. This is a generic character array. |
| len
|
The length of the sequence to scan. |
-
Returns:
-
The index of the first invalid character, or len if none exists
Definition at line 155 of file gnFilter.h. |
|
void gnFilter::MakeValid (
|
string & seq ) const [inline]
|
|
|
void gnFilter::MakeValid (
|
gnSeqC * seq,
|
|
const uint32 len ) const [inline]
|
|
|
gnSeqC gnFilter::MakeValid (
|
const gnSeqC ch ) const [inline]
|
|
|
const gnFilter * gnFilter::RNAComplementFilter (
|
) [static]
|
|
|
const gnFilter * gnFilter::RNAtoDNAFilter (
|
) [static]
|
|
|
void gnFilter::ReverseFilter (
|
string & seq ) const
|
|
|
void gnFilter::ReverseFilter (
|
gnSeqC ** seq,
|
|
uint32 & len ) const
|
|
|
void gnFilter::SetDefaultChar (
|
const gnSeqC ch1,
|
|
const gnSeqC ch2 ) [inline]
|
|
|
|
Definition at line 187 of file gnFilter.h.
Referenced by CreateAlphabetCharacterFilter(), CreateBasicDNAFilter(), CreateBasicRNAFilter(), CreateDNAComplementFilter(), CreateDNAtoRNAFilter(), CreateFullDNAFilter(), CreateFullRNAFilter(), CreateNumberCharacterFilter(), CreateProteinFilter(), CreateRNAComplementFilter(), and CreateRNAtoDNAFilter().
|
|
void gnFilter::SetPair (
|
const gnSeqC ch1,
|
|
const gnSeqC ch2 ) [inline]
|
|
|
void gnFilter::SetSingle (
|
const gnSeqC ch ) [inline]
|
|
|
const gnFilter * gnFilter::alphabetCharacterFilter (
|
) [static]
|
|
|
const gnFilter * gnFilter::basicDNASeqFilter (
|
) [static]
|
|
|
const gnFilter * gnFilter::basicRNASeqFilter (
|
) [static]
|
|
|
const gnFilter * gnFilter::fullDNASeqFilter (
|
) [static]
|
|
|
const gnFilter * gnFilter::fullRNASeqFilter (
|
) [static]
|
|
|
const gnFilter * gnFilter::numberCharacterFilter (
|
) [static]
|
|
|
const gnFilter * gnFilter::proteinSeqFilter (
|
) [static]
|
|
Member Data Documentation
gnSeqC gnFilter::m_defaultChar [private]
|
|
string gnFilter::m_name [private]
|
|
gnSeqC gnFilter::m_pairArray [private]
|
|
gnSeqC gnFilter::m_rDefaultChar [private]
|
|
The documentation for this class was generated from the following files:
Generated at Fri Nov 30 15:36:55 2001 for libGenome by
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001
|