OpenMS  2.8.0
Public Member Functions | Public Attributes | List of all members
FASTAFile::FASTAEntry Struct Reference

FASTA entry type (identifier, description and sequence) The first 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 String &id, const String &desc, const 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

String identifier
 
String description
 
String sequence
 

Detailed Description

FASTA entry type (identifier, description and sequence) The first 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 String id,
const String desc,
const 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==()

bool operator== ( const FASTAEntry rhs) const
inline

◆ sequenceMatches()

bool sequenceMatches ( const FASTAEntry rhs) const
inline

Member Data Documentation

◆ description

String description

◆ identifier

String identifier

◆ sequence

String sequence