bpp-seq3  3.0.0
bpp::AlphabetIndex1 Class Referenceabstract

One dimensionnal alphabet index interface. More...

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

+ Inheritance diagram for bpp::AlphabetIndex1:
+ Collaboration diagram for bpp::AlphabetIndex1:

Public Member Functions

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

Detailed Description

One dimensionnal alphabet index interface.

Derivatives of this interface implement properties for a single state.

Definition at line 24 of file AlphabetIndex1.h.

Constructor & Destructor Documentation

◆ AlphabetIndex1()

bpp::AlphabetIndex1::AlphabetIndex1 ( )
inline

Definition at line 28 of file AlphabetIndex1.h.

◆ ~AlphabetIndex1()

virtual bpp::AlphabetIndex1::~AlphabetIndex1 ( )
inlinevirtual

Definition at line 29 of file AlphabetIndex1.h.

Member Function Documentation

◆ alphabet()

virtual const Alphabet& bpp::AlphabetIndex1::alphabet ( ) const
pure virtual

Get the alphabet associated to this index.

Returns
Alphabet The alphabet associated to this index.

Implemented in bpp::CodonFromProteicAlphabetIndex1, bpp::ProteicAlphabetIndex1, and bpp::UserAlphabetIndex1.

◆ clone()

◆ getAlphabet()

virtual std::shared_ptr<const Alphabet> bpp::AlphabetIndex1::getAlphabet ( ) const
pure virtual

Get the alphabet associated to this index.

Returns
Alphabet The alphabet associated to this index.

Implemented in bpp::CodonFromProteicAlphabetIndex1, bpp::ProteicAlphabetIndex1, and bpp::UserAlphabetIndex1.

◆ getIndex() [1/2]

virtual double bpp::AlphabetIndex1::getIndex ( const std::string &  state) const
pure virtual

◆ getIndex() [2/2]

◆ indexVector()


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