Sequence::countStates Struct Reference

Functor to count the number of states, excluding gaps and missing data, in a range of characters. More...

#include <PolyFunctional.hpp>

List of all members.

Public Member Functions

template<typename charItr >
stateCounter operator() (charItr beg, charItr end, const bool &haveOutgroup=false, const size_t &outgroup=0)

Detailed Description

Functor to count the number of states, excluding gaps and missing data, in a range of characters.

Definition at line 46 of file PolyFunctional.hpp.


Member Function Documentation

template<typename charItr >
stateCounter Sequence::countStates::operator() ( charItr  beg,
charItr  end,
const bool &  haveOutgroup = false,
const size_t &  outgroup = 0 
) [inline]
Parameters:
beg beginning of a range of characters
end end of a range of characters
haveOutgroup true of one of the elements of site is an outgroup state, false otherwise
outgroup the index of the outgroup sequence in site
Note:
will return an empty object if beg>=end or beg+outgroup>=end

Definition at line 53 of file PolyFunctional.hpp.


The documentation for this struct was generated from the following file:

Generated on Mon Jul 12 15:22:03 2010 for libsequence by  doxygen 1.6.1