#include <gnFastTranslator.h>
Inheritance diagram for gnFastTranslator:
Public Types | |
enum | gnTranslatorType { ProteinDNATranslatorType, DNAProteinTranslatorType } |
Public Member Functions | |
gnFastTranslator () | |
gnFastTranslator (gnTranslatorType t_type) | |
gnFastTranslator (const gnFastTranslator &sf) | |
gnFastTranslator & | operator= (const gnFastTranslator &sf) |
gnFastTranslator * | Clone () const |
virtual void | CacheTranslator (const gnTranslator *tranny, string inputs, const gnSeqI input_width) |
Queries the specified gnTranslator for every possible combination translation of the characters specified in the inputs string. | |
virtual gnSeqC | Filter (const gnSeqC ch) const |
Filter the given character. | |
virtual void | Filter (gnSeqC **seq, uint32 &len) const |
Filter the given character array. | |
virtual void | Filter (string &seq) const |
Filters the given string. | |
void | SetDefaultChar (const gnSeqC ch1) |
gnSeqC | GetDefaultChar () const |
void | UseDefaultChar (const boolean use=true) |
void | SetPair (const string &ch1, const string &ch2) |
void | RemovePair (const string &ch) |
virtual string | GetName () const |
Gets the name of this filter. | |
virtual void | SetName (string name) |
Sets the name of this filter. | |
Static Public Member Functions | |
const gnFastTranslator * | ProteinDNATranslator () |
const gnFastTranslator * | DNAProteinTranslator () |
Protected Attributes | |
string | m_name |
Private Member Functions | |
void | CreateProteinDNATranslator () |
void | CreateDNAProteinTranslator () |
Private Attributes | |
map< string, string > | m_transCache |
const gnTranslator * | m_translator |
boolean | use_default |
gnSeqC | m_defaultChar |
|
Definition at line 32 of file gnFastTranslator.h. |
|
Definition at line 26 of file gnFastTranslator.cpp. References m_defaultChar, and use_default. Referenced by Clone(), DNAProteinTranslator(), and ProteinDNATranslator(). |
|
Definition at line 39 of file gnFastTranslator.cpp. References CacheTranslator(), DNAProteinTranslatorType, m_defaultChar, ProteinDNATranslatorType, and use_default. |
|
Definition at line 32 of file gnFastTranslator.cpp. References m_defaultChar, gnBaseFilter::m_name, m_transCache, and use_default. |
|
Queries the specified gnTranslator for every possible combination translation of the characters specified in the inputs string. An input_width may be specified so that every possible combination of "input_width" characters in "inputs" will be cached. This is useful for DNA to protein translations, for example.
Definition at line 125 of file gnFastTranslator.cpp. References gnTranslator::Filter(), gnSeqI, and m_transCache. Referenced by gnFastTranslator(). |
|
Implements gnBaseFilter. Definition at line 83 of file gnFastTranslator.h. References gnFastTranslator(). |
|
|
|
|
|
Definition at line 20 of file gnFastTranslator.cpp. References gnFastTranslator(). Referenced by gnPosSpecificTranslator::gnPosSpecificTranslator(). |
|
Filters the given string.
Implements gnBaseFilter. Definition at line 94 of file gnFastTranslator.cpp. References gnSeqC, m_defaultChar, m_transCache, and uint32. |
|
Filter the given character array.
Implements gnBaseFilter. Definition at line 63 of file gnFastTranslator.cpp. |
|
Filter the given character.
Implements gnBaseFilter. Definition at line 54 of file gnFastTranslator.cpp. References gnSeqC, and m_defaultChar. |
|
Definition at line 95 of file gnFastTranslator.h. References gnSeqC, and m_defaultChar. |
|
Gets the name of this filter.
Definition at line 65 of file gnBaseFilter.h. References gnBaseFilter::m_name. |
|
|
|
Definition at line 16 of file gnFastTranslator.cpp. References gnFastTranslator(). Referenced by gnPosSpecificTranslator::gnPosSpecificTranslator(). |
|
|
|
Definition at line 89 of file gnFastTranslator.h. References m_defaultChar, and use_default. |
|
Sets the name of this filter.
Definition at line 70 of file gnBaseFilter.h. References gnBaseFilter::m_name. Referenced by gnFilter::CreateAlphabetCharacterFilter(), gnFilter::CreateBasicDNAFilter(), gnFilter::CreateBasicRNAFilter(), gnFilter::CreateDNAComplementFilter(), gnTranslator::CreateDNAProteinTranslator(), gnFilter::CreateDNAtoRNAFilter(), gnFilter::CreateFullDNAFilter(), gnFilter::CreateFullRNAFilter(), gnFilter::CreateNumberCharacterFilter(), gnTranslator::CreateProteinDNATranslator(), gnFilter::CreateProteinFilter(), gnTranslator::CreateProteinRNATranslator(), gnFilter::CreateRNAComplementFilter(), gnTranslator::CreateRNAProteinTranslator(), and gnFilter::CreateRNAtoDNAFilter(). |
|
|
|
Definition at line 101 of file gnFastTranslator.h. References use_default. |
|
Definition at line 79 of file gnFastTranslator.h. Referenced by Filter(), GetDefaultChar(), gnFastTranslator(), and SetDefaultChar(). |
|
Definition at line 60 of file gnBaseFilter.h. Referenced by gnBaseFilter::GetName(), gnFastTranslator(), gnFilter::gnFilter(), gnPosSpecificTranslator::gnPosSpecificTranslator(), gnTranslator::gnTranslator(), and gnBaseFilter::SetName(). |
|
Definition at line 75 of file gnFastTranslator.h. Referenced by CacheTranslator(), Filter(), and gnFastTranslator(). |
|
Definition at line 76 of file gnFastTranslator.h. |
|
Definition at line 78 of file gnFastTranslator.h. Referenced by gnFastTranslator(), SetDefaultChar(), and UseDefaultChar(). |