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

#include <pdfoperatorsiter.h>

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

List of all members.

Public Member Functions

 RejectingPdfOperatorIterator (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 rejected_opers [namecount]

Detailed Description

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

Generic iterator that rejects set of operators.

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

See also:
Iterator, AcceptingPdfOperatorIterator

Constructor & Destructor Documentation

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

Member Function Documentation

template<int _NAME_COUNT, IteratorType T>
virtual bool pdfobjects::RejectingPdfOperatorIterator< _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::RejectingPdfOperatorIterator< _NAME_COUNT, T >::namecount, and pdfobjects::RejectingPdfOperatorIterator< _NAME_COUNT, T >::rejected_opers.

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


Member Data Documentation

template<int _NAME_COUNT, IteratorType T>
const size_t pdfobjects::RejectingPdfOperatorIterator< _NAME_COUNT, T >::namecount = _NAME_COUNT [static]
template<int _NAME_COUNT, IteratorType T>
const std::string pdfobjects::ChangeableOperatorIterator::rejected_opers [inline, static, private]
Initial value:
 
{
        "q", "Q", "cm", "w", "J", "j", "M", "d", "ri", "i", "gs", "s", "S", "f", "F", "f*", "B", "B*", "b", "b*"
        "n", "W", "W*", "BX", "EX", "rg", "CS", "cs", "SC", "SCN", "sc", "scn", "G", "g", "RG", "rg", "K", "k"
}

Changeable operator are all operators except these.

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


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