HPS::FontSearchResultsIterator Class Reference

#include <hps.h>

Inheritance diagram for HPS::FontSearchResultsIterator:
HPS::Object

Public Member Functions

 FontSearchResultsIterator ()
 
 FontSearchResultsIterator (FontSearchResultsIterator const &in_search_results_iterator)
 
 FontSearchResultsIterator (FontSearchResultsIterator &&in_that)
 
FontInfoState GetItem () const
 
bool IsValid () const
 
void Next ()
 
HPS::Type ObjectType () const
 
bool operator!= (FontSearchResultsIterator const &in_search_results_iterator)
 
FontInfoState operator* () const
 
FontSearchResultsIteratoroperator++ ()
 
FontSearchResultsIterator operator++ (int in_val)
 
FontSearchResultsIteratoroperator= (FontSearchResultsIterator const &in_search_results_iterator)
 
FontSearchResultsIteratoroperator= (FontSearchResultsIterator &&in_that)
 
bool operator== (FontSearchResultsIterator const &in_search_results_iterator)
 
void Reset ()
 
void Set (FontSearchResultsIterator const &in_search_results_iterator)
 
- Public Member Functions inherited from HPS::Object
virtual bool Empty () const
 
intptr_t GetClassID () const
 
intptr_t GetInstanceID () const
 
bool HasType (HPS::Type in_mask) const
 
Object (Object const &that)
 
 Object (Object &&in_that)
 
Objectoperator= (Object const &other_object)
 
Objectoperator= (Object &&in_that)
 
virtual HPS::Type Type () const
 

Static Public Attributes

static const HPS::Type staticType = HPS::Type::FontSearchResultsIterator
 
- Static Public Attributes inherited from HPS::Object
static const HPS::Type staticType = HPS::Type::None
 

Additional Inherited Members

- Static Public Member Functions inherited from HPS::Object
template<typename T >
static intptr_t ClassID ()
 

Detailed Description

An iterator used for traversing results from a search on an associated FontSearchResults object.

Constructor & Destructor Documentation

◆ FontSearchResultsIterator() [1/3]

HPS::FontSearchResultsIterator::FontSearchResultsIterator ( )

The default constructor creates a new FontSearchResultsIterator object that is not associated with any FontSearchResults object.

◆ FontSearchResultsIterator() [2/3]

HPS::FontSearchResultsIterator::FontSearchResultsIterator ( FontSearchResultsIterator const &  in_search_results_iterator)

The copy constructor initializes a new FontSearchResultsIterator object that is associated with the same FontSearchResults object as the source and at the same location in the results. Subsequent changes to either iterator will not affect the other.

Parameters
in_search_results_iteratorThe source of the copy.

◆ FontSearchResultsIterator() [3/3]

HPS::FontSearchResultsIterator::FontSearchResultsIterator ( FontSearchResultsIterator &&  in_that)

The move constructor creates FontSearchResultsIterator by transferring the underlying impl of the rvalue reference to this Key thereby avoiding a copy and allocation.

Parameters
in_thatAn rvalue reference to FontSearchResultsIterator to take the impl from.

Member Function Documentation

◆ GetItem()

FontInfoState HPS::FontSearchResultsIterator::GetItem ( ) const

Returns the FontInfoState that this iterator is currently pointing at. Throws exception if iterator is not valid. This method is functionally equivalent to the overloaded operator*.

Returns
The current item.

◆ IsValid()

bool HPS::FontSearchResultsIterator::IsValid ( ) const

Queries the validity of this iterator location. Invalid locations would include uninitialized iterators and iterators that had walked past the last element.

Returns
true if this iterator is pointing to a valid item, false otherwise.

◆ Next()

void HPS::FontSearchResultsIterator::Next ( )

Advances the iterator to the next search result item

◆ ObjectType()

HPS::Type HPS::FontSearchResultsIterator::ObjectType ( ) const
inlinevirtual

This function returns the type the object, as declared (if the object is derived, this does not give the true type of the derived object).

Returns
The declared type of the object in question, which may differ from the true, underlying type.

Reimplemented from HPS::Object.

◆ operator!=()

bool HPS::FontSearchResultsIterator::operator!= ( FontSearchResultsIterator const &  in_search_results_iterator)

Comparison operator between iterators to compare inequality

Parameters
in_search_results_iteratorThe iterator to compare to

◆ operator*()

FontInfoState HPS::FontSearchResultsIterator::operator* ( ) const

Returns the FontInfoState that this iterator is currently pointing at. Throws exception if iterator is not valid.

Returns
The current font name.

◆ operator++() [1/2]

FontSearchResultsIterator& HPS::FontSearchResultsIterator::operator++ ( )

Advances the iterator to the next search result item

Returns
A reference to this object.

◆ operator++() [2/2]

FontSearchResultsIterator HPS::FontSearchResultsIterator::operator++ ( int  in_val)

Advances the iterator to the next search result item

Returns
A reference to this object.

◆ operator=() [1/2]

FontSearchResultsIterator& HPS::FontSearchResultsIterator::operator= ( FontSearchResultsIterator const &  in_search_results_iterator)

Copies a FontSearchResultsIterator object, associating this object with the same FontSearchResults object as the source and at the same location in the results. Subsequent changes to either iterator will not affect the other.

Parameters
in_search_results_iteratorThe source of the copy.
Returns
a reference to this object.

◆ operator=() [2/2]

FontSearchResultsIterator& HPS::FontSearchResultsIterator::operator= ( FontSearchResultsIterator &&  in_that)

The move assignment operator transfers the underlying impl of the rvalue reference to this FontSearchResultsIterator thereby avoiding a copy.

Parameters
in_thatAn rvalue reference to an FontSearchResultsIterator to take the impl from.
Returns
A reference to this FontSearchResultsIterator.

◆ operator==()

bool HPS::FontSearchResultsIterator::operator== ( FontSearchResultsIterator const &  in_search_results_iterator)

Comparison operator between iterators to compare equality

Parameters
in_search_results_iteratorThe iterator to compare to

◆ Reset()

void HPS::FontSearchResultsIterator::Reset ( )
virtual

Resets iterator to the beginning of the associated search results.

Reimplemented from HPS::Object.

◆ Set()

void HPS::FontSearchResultsIterator::Set ( FontSearchResultsIterator const &  in_search_results_iterator)

Copies a FontSearchResultsIterator object, associating this object with the same FontSearchResults object as the source and at the same location in the results. Subsequent changes to either iterator will not affect the other. This method is functionally equivalent to the overloaded assignment operator except for the return value.

Parameters
in_search_results_iteratorThe source of the copy.

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