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

FASTA entry type (identifier, description and sequence) More...

#include <OpenMS/FORMAT/FASTAFile.h>

Public Member Functions

 FASTAEntry ()
 
 FASTAEntry (String id, String desc, String seq)
 
 FASTAEntry (const FASTAEntry &rhs)
 
 FASTAEntry (FASTAEntry &&rhs) noexcept
 
FASTAEntryoperator= (const FASTAEntry &rhs)
 
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 ( )
inline

◆ FASTAEntry() [2/4]

FASTAEntry ( String  id,
String  desc,
String  seq 
)
inline

◆ FASTAEntry() [3/4]

FASTAEntry ( const FASTAEntry rhs)
inline

◆ FASTAEntry() [4/4]

FASTAEntry ( FASTAEntry &&  rhs)
inlinenoexcept

Member Function Documentation

◆ headerMatches()

bool headerMatches ( const FASTAEntry rhs) const
inline

◆ operator=()

FASTAEntry& operator= ( const FASTAEntry rhs)
inline

◆ 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