5 #ifndef BALL_KERNEL_NUCLEOTIDE_H
6 #define BALL_KERNEL_NUCLEOTIDE_H
8 #ifndef BALL_KERNEL_FRAGMENT_H
12 #ifndef BALL_KERNEL_RESIDUE_H
16 #ifndef BALL_KERNEL_NUCLEOTIDEITERATOR_H
21 #define BALL_NUCLEOTIDE_DEFAULT_ID ""
22 #define BALL_NUCLEOTIDE_DEFAULT_INSERTION_CODE ' '
84 virtual void destroy();
111 void set(
const Nucleotide& nucleotide,
bool deep =
true);
126 void get(
Nucleotide& nucleotide,
bool deep =
true)
const;
164 void setID(
const String&
id);
169 const String& getID()
const;
174 void setInsertionCode(
char insertion_code);
179 char getInsertionCode()
const;
184 void prepend(
Atom& atom);
189 void append(
Atom& atom);
194 void insert(
Atom& atom);
211 bool remove(
Atom& atom);
238 bool isTerminal()
const;
244 bool is3Prime()
const;
250 bool is5Prime()
const;
261 virtual bool isValid()
const;
269 virtual void dump(std::ostream& s = std::cout,
Size depth = 0)
const;
279 Size countAtomContainers()
const;
299 bool isSuperAtomContainerOf(
const AtomContainer& atom_container)
const;
308 char insertion_code_;
312 template <class NucleotideContainerType>
313 const Nucleotide*
get5Prime(const NucleotideContainerType& nucleotide_container)
316 for ( res_it = nucleotide_container.beginNucleotide(); !res_it.
isEnd(); ++res_it)
324 template <
class Nucleot
ideContainerType>
337 #endif // BALL_KERNEL_NUCLEOTIDE_H
BALL_INLINE bool isEnd() const
Check whether the iterator points to the position after the last item of the container.
#define BALL_KERNEL_DEFINE_ITERATOR_CREATORS(Type)
const Nucleotide * get5Prime(const NucleotideContainerType &nucleotide_container)
const Nucleotide * get3Prime(const NucleotideContainerType &nucleotide_container)
Property
The number of predefined properties for AtomContainer.
BALL_EXPORT bool operator!=(const String &s1, const String &s2)
#define BALL_CREATE_DEEP(name)
#define BALL_DECLARE_STD_ITERATOR_WRAPPER(container, type, method_name)
#define BALL_NUCLEOTIDE_DEFAULT_INSERTION_CODE
BALL_EXPORT bool operator==(const String &s1, const String &s2)
BALL_EXPORT AtomContainerList atomContainers(const AtomContainer &fragment, bool selected_only=false)
#define BALL_NUCLEOTIDE_DEFAULT_ID
BALL_INLINE bool isREnd() const
Test wheter the iterator points to the position before the first element.