![]() | InDesign SDK 20.5 |
#include <XMLContentIterator.h>
Public Types | |
| typedef InDesign::TextRange | value_type |
| typedef std::ptrdiff_t | difference_type |
| typedef const value_type * | pointer |
| typedef const value_type & | reference |
| typedef std::bidirectional_iterator_tag | iterator_category |
Public Member Functions | |
| XMLContentIterator () | |
| XMLContentIterator (const XMLContentIterator &) | |
| XMLContentIterator (const IIDXMLElement *element, int32 position) | |
| ~XMLContentIterator () | |
| const InDesign::TextRange & | operator* () const |
| const InDesign::TextRange * | operator-> () const |
| XMLContentIterator & | operator= (const XMLContentIterator &rhs) |
| XMLContentIterator & | operator++ () |
| XMLContentIterator | operator++ (int) |
| XMLContentIterator & | operator-- () |
| XMLContentIterator | operator-- (int) |
| XMLContentIterator & | operator+= (int32 n) |
| XMLContentIterator | operator+ (int32 n) const |
| XMLContentIterator & | operator-= (int32 n) |
| XMLContentIterator | operator- (int32 n) const |
| int32 | Position () const |
| bool16 | IsValid () const |
Friends | |
| class | const_iterator |
| XMLContentIterator | operator+ (int32 n, const XMLContentIterator &rhs) |
| bool | operator== (const XMLContentIterator &x, const XMLContentIterator &y) |
| bool | operator!= (const XMLContentIterator &x, const XMLContentIterator &y) |
| bool | operator< (const XMLContentIterator &x, const XMLContentIterator &y) |
| bool | operator<= (const XMLContentIterator &x, const XMLContentIterator &y) |
| bool | operator> (const XMLContentIterator &x, const XMLContentIterator &y) |
| bool | operator>= (const XMLContentIterator &x, const XMLContentIterator &y) |
XMLContentIterator iterates over the content of an element and returns ranges of content in the same order as the DOM would return content. Text ranges are specified using the TextRange class. These can in turn be used to create TextIterators for iterating over the individual characters of the content. The constructors for this class are intended to be created with the factory methods begin and end of XMLElement.
| XMLContentIterator::XMLContentIterator | ( | ) |
Default constructor
| XMLContentIterator::XMLContentIterator | ( | const XMLContentIterator & | ) |
Copy constructor
| XMLContentIterator::XMLContentIterator | ( | const IIDXMLElement * | element, |
| int32 | position | ||
| ) |
Constructor
| element | |
| position |
| XMLContentIterator::~XMLContentIterator | ( | ) |
Destructor
| inline |
Dereference operator for given Position
| i | specifies Position of intereset |
| inline |
Pointer dereference operator
| inline |
Addition operator
| n |
| XMLContentIterator& XMLContentIterator::operator++ | ( | ) |
Increment operator
| inline |
Increment by specified amount
| XMLContentIterator& XMLContentIterator::operator+= | ( | int32 | n | ) |
Addition-assignment operator
| n | specifies number of positions to move iterator Position |
| inline |
Substraction operator
| n |
| XMLContentIterator& XMLContentIterator::operator-- | ( | ) |
Operator decrement
| inline |
Operator decrement by specified amount
| XMLContentIterator& XMLContentIterator::operator-= | ( | int32 | n | ) |
Subtraction-assignment operator
| n |
| inline |
Member selection operator or 'smart pointer'
| XMLContentIterator& XMLContentIterator::operator= | ( | const XMLContentIterator & | rhs | ) |
Assignment
| rhs | object to copy state from |
| inline |
Accessor for location iterator starts from