72 SymbolList::operator=(s);
83 if(site1.
size() != site2.
size())
return false;
86 for(
unsigned int i = 0; i < site1.
size(); i++) {
87 if(site1[i] != site2[i])
return false;
An alphabet exception thrown when trying to specify a bad char to the alphabet.
bool operator==(const Site &site1, const Site &site2)
virtual int getPosition() const
Get the position of this site.
This alphabet is used to deal NumericAlphabet.
Site(const Alphabet *alpha)
Build a new void Site object with the specified alphabet.
virtual const std::vector< int > & getContent() const
Get the whole content of the list as a vector of int.
int position_
The position associated to this site.
bool operator<(const Site &site1, const Site &site2)
A basic SymbolList object.
Site & operator=(const Site &s)
The assignment operator.
std::vector< int > content_
The list content.
virtual size_t size() const
Get the number of elements in the list.
An alphabet exception thrown when trying to specify a bad int to the alphabet.