OpenMS
Loading...
Searching...
No Matches
FASTAFile::FASTAEntry Struct Reference

FASTA entry type (identifier, description and sequence) The first std::string corresponds to the identifier that is written after the > in the FASTA file. The part after the first whitespace is stored in description and the text from the next line until the next > (exclusive) is stored in sequence. More...

#include <OpenMS/FORMAT/FASTAFile.h>

Collaboration diagram for FASTAFile::FASTAEntry:
[legend]

Public Member Functions

 FASTAEntry ()=default
 
 FASTAEntry (const std::string &id, const std::string &desc, const std::string &seq)
 
 FASTAEntry (const FASTAEntry &rhs)=default
 
 FASTAEntry (FASTAEntry &&rhs) noexcept
 
FASTAEntryoperator= (const FASTAEntry &rhs)=default
 
bool operator== (const FASTAEntry &rhs) const
 
bool headerMatches (const FASTAEntry &rhs) const
 
bool sequenceMatches (const FASTAEntry &rhs) const
 

Public Attributes

std::string identifier
 
std::string description
 
std::string sequence
 

Detailed Description

FASTA entry type (identifier, description and sequence) The first std::string corresponds to the identifier that is written after the > in the FASTA file. The part after the first whitespace is stored in description and the text from the next line until the next > (exclusive) is stored in sequence.

Constructor & Destructor Documentation

◆ FASTAEntry() [1/4]

FASTAEntry ( )
default

◆ FASTAEntry() [2/4]

FASTAEntry ( const std::string &  id,
const std::string &  desc,
const std::string &  seq 
)
inline

◆ FASTAEntry() [3/4]

FASTAEntry ( const FASTAEntry rhs)
default

◆ FASTAEntry() [4/4]

FASTAEntry ( FASTAEntry &&  rhs)
inlinenoexcept

Member Function Documentation

◆ headerMatches()

bool headerMatches ( const FASTAEntry rhs) const
inline

◆ operator=()

FASTAEntry & operator= ( const FASTAEntry rhs)
default

◆ operator==()

◆ sequenceMatches()

bool sequenceMatches ( const FASTAEntry rhs) const
inline

Member Data Documentation

◆ description

◆ identifier

◆ sequence