bpp-seq3  3.0.0
bpp::AAVolumeIndex Class Reference

Volume (Angström^3) of each amino acid, according to http://www.imb-jena.de/IMAGE_AA.html (Note: original webpage is not available anymore) More...

#include <Bpp/Seq/AlphabetIndex/AAVolumeIndex.h>

+ Inheritance diagram for bpp::AAVolumeIndex:
+ Collaboration diagram for bpp::AAVolumeIndex:

Public Member Functions

 AAVolumeIndex ()
 
virtual ~AAVolumeIndex ()
 
AAVolumeIndexclone () const override
 
double getIndex (int state) const override
 Get the index associated to a state. More...
 
double getIndex (const std::string &state) const override
 Get the index associated to a state. More...
 
const std::vector< double > & indexVector () const override
 
std::shared_ptr< const AlphabetgetAlphabet () const override
 Get the alphabet associated to this index. More...
 
const Alphabetalphabet () const override
 Get the alphabet associated to this index. More...
 

Private Attributes

std::vector< double > volume_
 
std::shared_ptr< const ProteicAlphabetalpha_
 

Detailed Description

Volume (Angström^3) of each amino acid, according to http://www.imb-jena.de/IMAGE_AA.html (Note: original webpage is not available anymore)

Definition at line 18 of file AAVolumeIndex.h.

Constructor & Destructor Documentation

◆ AAVolumeIndex()

bpp::AAVolumeIndex::AAVolumeIndex ( )
inline

Definition at line 25 of file AAVolumeIndex.h.

References volume_.

Referenced by clone().

◆ ~AAVolumeIndex()

virtual bpp::AAVolumeIndex::~AAVolumeIndex ( )
inlinevirtual

Definition at line 52 of file AAVolumeIndex.h.

Member Function Documentation

◆ alphabet()

const Alphabet& bpp::ProteicAlphabetIndex1::alphabet ( ) const
inlineoverridevirtualinherited

Get the alphabet associated to this index.

Returns
Alphabet The alphabet associated to this index.

Implements bpp::AlphabetIndex1.

Definition at line 99 of file AlphabetIndex1.h.

References bpp::ProteicAlphabetIndex1::alpha_.

◆ clone()

AAVolumeIndex* bpp::AAVolumeIndex::clone ( ) const
inlineoverridevirtual

Implements bpp::ProteicAlphabetIndex1.

Definition at line 54 of file AAVolumeIndex.h.

References AAVolumeIndex().

◆ getAlphabet()

◆ getIndex() [1/2]

double bpp::AAVolumeIndex::getIndex ( const std::string &  state) const
inlineoverridevirtual

Get the index associated to a state.

Parameters
stateThe state to consider, as a string value.
Returns
The index associated to the state

Implements bpp::AlphabetIndex1.

Definition at line 62 of file AAVolumeIndex.h.

References bpp::ProteicAlphabetIndex1::getAlphabet(), and volume_.

◆ getIndex() [2/2]

double bpp::AAVolumeIndex::getIndex ( int  state) const
inlineoverridevirtual

Get the index associated to a state.

Parameters
stateThe state to consider, as a int value.
Returns
The index associated to the state

Implements bpp::AlphabetIndex1.

Definition at line 57 of file AAVolumeIndex.h.

References bpp::ProteicAlphabetIndex1::getAlphabet(), and volume_.

◆ indexVector()

const std::vector<double>& bpp::AAVolumeIndex::indexVector ( ) const
inlineoverridevirtual
Returns
A vector object with all indices.

Implements bpp::AlphabetIndex1.

Definition at line 67 of file AAVolumeIndex.h.

References volume_.

Member Data Documentation

◆ alpha_

std::shared_ptr<const ProteicAlphabet> bpp::ProteicAlphabetIndex1::alpha_
privateinherited

◆ volume_

std::vector<double> bpp::AAVolumeIndex::volume_
private

Definition at line 22 of file AAVolumeIndex.h.

Referenced by AAVolumeIndex(), getIndex(), and indexVector().


The documentation for this class was generated from the following file: