NCBI C++ ToolKit
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ScoreMatrix Class Reference

Search Toolkit Book for ScoreMatrix

#include <algo/structure/cd_utils/cuScoringMatrix.hpp>

+ Collaboration diagram for ScoreMatrix:

Public Member Functions

 ScoreMatrix (EScoreMatrixType type)
 ~ScoreMatrix ()
EScoreMatrixType GetType () const
string GetName () const
int GetScore (char i, char j)
bool IsValid () const

Private Member Functions

void initialize (EScoreMatrixType type)

Private Attributes

EScoreMatrixType m_type
string m_name
int m_numLetters
const char * m_alphabet
SNCBIFullScoreMatrix m_scoreMatrix

Detailed Description

Definition at line 131 of file cuScoringMatrix.hpp.

Constructor & Destructor Documentation

◆ ScoreMatrix()

ScoreMatrix::ScoreMatrix ( EScoreMatrixType  type)

Definition at line 72 of file cuScoringMatrix.cpp.

References initialize().

◆ ~ScoreMatrix()

ScoreMatrix::~ScoreMatrix ( )

Definition at line 138 of file cuScoringMatrix.hpp.

References m_alphabet, and NULL.

Member Function Documentation

◆ GetName()

string ScoreMatrix::GetName ( void  ) const

Definition at line 146 of file cuScoringMatrix.hpp.

References m_name.

Referenced by DistanceMatrix::GetMatrixName().

◆ GetScore()

int ScoreMatrix::GetScore ( char  i,
char  j 

◆ GetType()

EScoreMatrixType ScoreMatrix::GetType ( void  ) const

◆ initialize()

void ScoreMatrix::initialize ( EScoreMatrixType  type)

◆ IsValid()

bool ScoreMatrix::IsValid ( ) const

Definition at line 152 of file cuScoringMatrix.hpp.

References eInvalidMatrixType, and m_type.

Member Data Documentation

◆ m_alphabet

const char* ScoreMatrix::m_alphabet

Definition at line 164 of file cuScoringMatrix.hpp.

Referenced by initialize(), and ~ScoreMatrix().

◆ m_name

string ScoreMatrix::m_name

Definition at line 162 of file cuScoringMatrix.hpp.

Referenced by GetName(), and initialize().

◆ m_numLetters

int ScoreMatrix::m_numLetters

Definition at line 163 of file cuScoringMatrix.hpp.

Referenced by initialize().

◆ m_scoreMatrix

SNCBIFullScoreMatrix ScoreMatrix::m_scoreMatrix

Definition at line 165 of file cuScoringMatrix.hpp.

Referenced by GetScore(), and initialize().

◆ m_type

EScoreMatrixType ScoreMatrix::m_type

Definition at line 161 of file cuScoringMatrix.hpp.

Referenced by GetType(), initialize(), and IsValid().

The documentation for this class was generated from the following files:
Modified on Sun Jul 14 04:57:16 2024 by rev. 669887