pdfobjects::AcceptingPdfOperatorIterator< _NAME_COUNT, T > Struct Template Reference

#include <pdfoperatorsiter.h>

Inheritance diagram for pdfobjects::AcceptingPdfOperatorIterator< _NAME_COUNT, T >:
iterator::DoubleListIterator< Item >

List of all members.

Public Member Functions

 AcceptingPdfOperatorIterator (ListItem oper, bool forwarddir=true)
virtual bool validItem () const

Static Public Attributes

static const size_t namecount = _NAME_COUNT

Static Private Attributes

static const std::string accepted_opers [namecount] = {"Tj", "TJ", "'", "\""}

Detailed Description

template<int _NAME_COUNT, IteratorType T>
struct pdfobjects::AcceptingPdfOperatorIterator< _NAME_COUNT, T >

Generic iterator that accepts set of operators.

This is a very generic class which iterates only over specified operators. Use this class when a special iterator is desired.

See also:
Iterator, RejectingPdfOperatorIterator

Constructor & Destructor Documentation

template<int _NAME_COUNT, IteratorType T>
pdfobjects::AcceptingPdfOperatorIterator< _NAME_COUNT, T >::AcceptingPdfOperatorIterator ( ListItem  oper,
bool  forwarddir = true 
) [inline]

Member Function Documentation

template<int _NAME_COUNT, IteratorType T>
virtual bool pdfobjects::AcceptingPdfOperatorIterator< _NAME_COUNT, T >::validItem (  )  const [inline, virtual]

In the base iterator, loop through all objects. We can overload this function to be able to iterate only over specific items.

Returns:
True if the item is supported by this type of iterator, false otherwise.

Reimplemented from iterator::DoubleListIterator< Item >.

References iterator::DoubleListIterator< Item >::_cur, pdfobjects::AcceptingPdfOperatorIterator< _NAME_COUNT, T >::accepted_opers, and pdfobjects::AcceptingPdfOperatorIterator< _NAME_COUNT, T >::namecount.

Referenced by pdfobjects::AcceptingPdfOperatorIterator< _NAME_COUNT, T >::AcceptingPdfOperatorIterator().


Member Data Documentation

template<int _NAME_COUNT, IteratorType T>
const std::string pdfobjects::GraphicalOperatorIterator::accepted_opers = {"Tj", "TJ", "'", "\""} [inline, static, private]

Text iterator accepted operators.

Inline image iterators.

Non stroking iterator accepted operators.

Stroking iterator accepted operators.

Operators accepted by font iterator.

Referenced by pdfobjects::AcceptingPdfOperatorIterator< _NAME_COUNT, T >::validItem().

template<int _NAME_COUNT, IteratorType T>
const size_t pdfobjects::AcceptingPdfOperatorIterator< _NAME_COUNT, T >::namecount = _NAME_COUNT [static]

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