19 #ifndef OST_SEQ_SEQUENCE_HANDLE_HH
20 #define OST_SEQ_SEQUENCE_HANDLE_HH
30 #include <ost/info/info_fw.hh>
39 namespace ost {
namespace seq {
42 class AlignmentHandle;
66 int GetResidueIndex(
int pos)
const;
70 int GetPos(
int residue_index)
const;
73 int GetFirstNonGap()
const;
76 int GetLastNonGap()
const;
81 const String& GetName()
const;
86 const String& GetString()
const;
89 String GetGaplessString()
const;
94 int GetOffset()
const;
97 int GetLength()
const;
100 int GetIndex(
const String& substr)
const;
103 char GetOneLetterCode(
int position)
const;
123 bool HasAttachedView()
const;
125 const String& GetRole()
const;
130 char operator[](
int index)
const;
136 bool IsValid()
const;
146 void CheckValidity()
const;
185 int GetResidueIndex(
int pos)
const;
189 int GetPos(
int residue_index)
const;
192 int GetFirstNonGap()
const;
195 int GetLastNonGap()
const;
200 const String& GetName()
const;
205 const String& GetString()
const;
208 String GetGaplessString()
const;
213 int GetOffset()
const;
216 int GetLength()
const;
219 char GetOneLetterCode(
int position)
const;
222 int GetIndex(
const String& substr)
const;
246 bool HasAttachedView()
const;
252 bool IsValid()
const;
260 void SetName(
const String& name);
263 void SetString(
const String& seq);
270 void SetOffset(
int offset);
277 void SetOneLetterCode(
int position,
char new_char);
279 char operator[](
size_t index)
const;
284 void Append(
char olc);
295 const String& GetRole()
const;
297 void SetRole(
const String& role)
const;
305 void CheckValidity()
const;
311 const String& role=
"UNKNOWN");
312 #if(OST_INFO_ENABLED)
315 info::InfoGroup& group);
323 const ConstSequenceHandle& sequence);
326 const ConstSequenceHandle& s2);
#define DLLEXPORT_OST_SEQ
bool DLLEXPORT_OST_SEQ Match(const ConstSequenceHandle &s1, const ConstSequenceHandle &s2)
SequenceHandle DLLEXPORT_OST_SEQ CreateSequence(const String &name, const String &seq, const String &role="UNKNOWN")
DLLEXPORT_OST_SEQ std::ostream & operator<<(std::ostream &os, const AlignedColumn &col)
bool DLLEXPORT_OST_GEOM operator==(const Line2 &l1, const Line2 &l2)
list of immutable sequences.
DLLEXPORT_OST_IMG_BASE bool operator!=(const ImageHandle &lhs, const ConstImageHandle &rhs)
boost::shared_ptr< SequenceImpl > SequenceImplPtr
String::const_iterator iterator
base class for the implementation
representation of a multiple sequence alignemnt consisting of two or more sequences ...
base class for the handler classes
String::const_iterator iterator