19 #ifndef OST_SEQ_SEQUENCE_HANDLE_HH
20 #define OST_SEQ_SEQUENCE_HANDLE_HH
36 namespace ost {
namespace seq {
39 class AlignmentHandle;
63 int GetResidueIndex(
int pos)
const;
67 int GetPos(
int residue_index)
const;
70 int GetFirstNonGap()
const;
73 int GetLastNonGap()
const;
78 const String& GetName()
const;
83 const String& GetString()
const;
86 String GetGaplessString()
const;
91 int GetOffset()
const;
94 int GetLength()
const;
97 char GetOneLetterCode(
int position)
const;
117 bool HasAttachedView()
const;
122 char operator[](
int index)
const;
128 bool IsValid()
const;
138 void CheckValidity()
const;
177 int GetResidueIndex(
int pos)
const;
181 int GetPos(
int residue_index)
const;
184 int GetFirstNonGap()
const;
187 int GetLastNonGap()
const;
192 const String& GetName()
const;
197 const String& GetString()
const;
200 String GetGaplessString()
const;
205 int GetOffset()
const;
208 int GetLength()
const;
211 char GetOneLetterCode(
int position)
const;
231 bool HasAttachedView()
const;
237 bool IsValid()
const;
245 void SetName(
const String& name);
248 void SetString(
const String& seq);
255 void SetOffset(
int offset);
262 void SetOneLetterCode(
int position,
char new_char);
265 char operator[](
size_t index)
const;
285 void CheckValidity()
const;
300 const ConstSequenceHandle& sequence);