Gemmi C++ API
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
gemmi::SeqId Struct Reference

#include <seqid.hpp>

Public Types

using OptionalNum = OptionalInt< INT_MIN >
 

Public Member Functions

 SeqId ()=default
 
 SeqId (int num_, char icode_)
 
 SeqId (OptionalNum num_, char icode_)
 
 SeqId (const std::string &str)
 
bool operator== (const SeqId &o) const
 
bool operator!= (const SeqId &o) const
 
bool operator< (const SeqId &o) const
 
char has_icode () const
 
std::string str () const
 

Public Attributes

OptionalNum num
 
char icode = ' '
 

Detailed Description

Definition at line 52 of file seqid.hpp.

Member Typedef Documentation

◆ OptionalNum

Definition at line 53 of file seqid.hpp.

Constructor & Destructor Documentation

◆ SeqId() [1/4]

gemmi::SeqId::SeqId ( )
default

◆ SeqId() [2/4]

gemmi::SeqId::SeqId ( int  num_,
char  icode_ 
)
inline

Definition at line 59 of file seqid.hpp.

◆ SeqId() [3/4]

gemmi::SeqId::SeqId ( OptionalNum  num_,
char  icode_ 
)
inline

Definition at line 60 of file seqid.hpp.

◆ SeqId() [4/4]

gemmi::SeqId::SeqId ( const std::string &  str)
inlineexplicit

Definition at line 61 of file seqid.hpp.

Member Function Documentation

◆ operator==()

bool gemmi::SeqId::operator== ( const SeqId o) const
inline

Definition at line 69 of file seqid.hpp.

◆ operator!=()

bool gemmi::SeqId::operator!= ( const SeqId o) const
inline

Definition at line 72 of file seqid.hpp.

◆ operator<()

bool gemmi::SeqId::operator< ( const SeqId o) const
inline

Definition at line 73 of file seqid.hpp.

◆ has_icode()

char gemmi::SeqId::has_icode ( ) const
inline

Definition at line 77 of file seqid.hpp.

◆ str()

std::string gemmi::SeqId::str ( ) const
inline

Definition at line 79 of file seqid.hpp.

Member Data Documentation

◆ num

OptionalNum gemmi::SeqId::num

Definition at line 55 of file seqid.hpp.

◆ icode

char gemmi::SeqId::icode = ' '

Definition at line 56 of file seqid.hpp.


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