23 #include <utility/exit.hh>
28 #include <utility/vector1.fwd.hh>
29 #include <ObjexxFCL/format.hh>
31 #include <utility/vector1.hh>
62 utility_exit_with_message(
63 "Error: class doesn't define method read_from_file!"
107 if ( !
is_gap(i) ) ungapped += (*
this)[i];
118 runtime_assert( pos > 0 );
119 runtime_assert( pos <=
seq_.size() );
120 return seq_.at( pos - 1 );
127 return( (*
this)[pos] );
131 runtime_assert( pos <=
length() + 1 );
135 if ( i == pos ) new_seq += new_char;
136 if ( i >= 1 && i <=
length() ) new_seq += (*
this)[i];
146 if ( i != pos ) new_seq += (*this)[i];
166 if ( pos < 1 || pos >
length() )
return true;
172 runtime_assert( idx <=
length() );
173 runtime_assert( idx > 0 );
175 if (
is_gap( idx ) )
return 0;
189 in >> name >> begin >> seq;
214 Size const id_width( 20 );
215 Size const start_width( 8 );
218 retval += ObjexxFCL::fmt::I( start_width,
start() );