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 ( )
inline

Definition at line 138 of file cuScoringMatrix.hpp.

References m_alphabet, and NULL.

Member Function Documentation

◆ GetName()

string ScoreMatrix::GetName ( void  ) const
inline

Definition at line 146 of file cuScoringMatrix.hpp.

References m_name.

Referenced by DistanceMatrix::GetMatrixName().

◆ GetScore()

int ScoreMatrix::GetScore ( char  i,
char  j 
)
inline

◆ GetType()

EScoreMatrixType ScoreMatrix::GetType ( void  ) const
inline

◆ initialize()

void ScoreMatrix::initialize ( EScoreMatrixType  type)
private

◆ IsValid()

bool ScoreMatrix::IsValid ( ) const
inline

Definition at line 152 of file cuScoringMatrix.hpp.

References eInvalidMatrixType, and m_type.

Member Data Documentation

◆ m_alphabet

const char* ScoreMatrix::m_alphabet
private

Definition at line 164 of file cuScoringMatrix.hpp.

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

◆ m_name

string ScoreMatrix::m_name
private

Definition at line 162 of file cuScoringMatrix.hpp.

Referenced by GetName(), and initialize().

◆ m_numLetters

int ScoreMatrix::m_numLetters
private

Definition at line 163 of file cuScoringMatrix.hpp.

Referenced by initialize().

◆ m_scoreMatrix

SNCBIFullScoreMatrix ScoreMatrix::m_scoreMatrix
private

Definition at line 165 of file cuScoringMatrix.hpp.

Referenced by GetScore(), and initialize().

◆ m_type

EScoreMatrixType ScoreMatrix::m_type
private

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 Mon Feb 26 04:01:49 2024 by modify_doxy.py rev. 669887