Skip to content

Commit f2b78a5

Browse files
author
Jochen Singer
committed
[FIX] Fixed a few functor names and deleted a deprecated link to extras
1 parent ae9637b commit f2b78a5

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

core/include/seqan/basic/basic_exception.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,17 +256,17 @@ const std::string ExceptionMessage<T, TSpec>::VALUE;
256256
// ============================================================================
257257

258258
// ----------------------------------------------------------------------------
259-
// Functor Asserter
259+
// Functor AssertFunctor
260260
// ----------------------------------------------------------------------------
261261

262262
template <typename TFunctor, typename TException, typename TContext = void, bool RETURN_VALUE = false>
263-
struct Asserter
263+
struct AssertFunctor
264264
{
265265
TFunctor func;
266266

267-
Asserter() {}
267+
AssertFunctor() {}
268268

269-
Asserter(TFunctor & func) :
269+
AssertFunctor(TFunctor & func) :
270270
func(func)
271271
{}
272272

core/include/seqan/stream.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
#include <fstream>
4747
#include <sstream>
4848

49-
#include <../../extras/include/seqan/sequence/iterator_range.h>
5049
#include <seqan/basic.h>
5150
#include <seqan/file.h>
5251
#include <seqan/sequence.h>

core/include/seqan/stream/tokenization.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ const std::string ExceptionMessage<EqualsChar<CHAR>, TContext>::VALUE = std::str
142142
// ----------------------------------------------------------------------------
143143
// Don't use isblank() or isspace() as it they seem to be slower than our functors (due to inlining)
144144

145-
typedef OrFunctor<EqualsChar<' '>, EqualsChar<'\t'> > IsBlank;
145+
typedef EqualsChar<'\t'> IsTab;
146+
typedef EqualsChar<' '> IsSpace;
147+
typedef OrFunctor<IsSpace, IsTab> IsBlank;
146148
typedef OrFunctor<EqualsChar<'\n'>, EqualsChar<'\r'> > IsNewline;
147149
typedef OrFunctor<IsBlank, IsNewline> IsWhitespace;
148150
typedef IsInRange<'!', '~'> IsGraph;
@@ -221,7 +223,7 @@ inline void skipUntil(TFwdIterator &iter, TStopFunctor const &stopFunctor)
221223
template <typename TFwdIterator, typename TFunctor>
222224
inline void skipOne(TFwdIterator &iter, TFunctor &functor)
223225
{
224-
Asserter<TFunctor, ParseError> asserter(functor);
226+
AssertFunctor<TFunctor, ParseError> asserter(functor);
225227

226228
if (atEnd(iter))
227229
throw UnexpectedEnd();

0 commit comments

Comments
 (0)