API Search || Global Search
HPS::FontSearchResults Class Reference

#include <hps.h>

Inheritance diagram for HPS::FontSearchResults:
HPS::Object

Public Member Functions

void Assign (FontSearchResults const &in_search_results)
 
 FontSearchResults ()
 The default constructor creates an empty FontSearchResults object, not associated with any search.
 
 FontSearchResults (FontSearchResults const &in_search_results)
 
 FontSearchResults (FontSearchResults &&in_that)
 
size_t GetCount () const
 
FontSearchResultsIterator GetIterator () const
 
HPS::Type ObjectType () const
 
FontSearchResultsoperator= (FontSearchResults &&in_that)
 
FontSearchResultsoperator= (FontSearchResults const &in_search_results)
 
virtual void Reset ()
 
 ~FontSearchResults ()
 The destructor decrements the number of users of the search results. If there are no remaining users, the results are released.
 
- 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::FontSearchResults
 
- 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

The FontSearchResults class is a smart-pointer to a database object. It contains the results of a Find operation.

Constructor & Destructor Documentation

HPS::FontSearchResults::FontSearchResults ( FontSearchResults const &  in_search_results)

The copy constructor creates a new FontSearchResults object that shares the underlying smart-pointer of the source.

Parameters
in_search_resultsThe source of the copy.
HPS::FontSearchResults::FontSearchResults ( FontSearchResults &&  in_that)

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

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

Member Function Documentation

void HPS::FontSearchResults::Assign ( FontSearchResults const &  in_search_results)

Share the underlying smart-pointer if the assignment source. This method is functionally equivalent to the overloaded assignment operator except for the return value.

Parameters
in_search_resultsThe source of the assignment.
size_t HPS::FontSearchResults::GetCount ( ) const

Gets the number of items that were found in the associated search.

Returns
The number of unique items found.
FontSearchResultsIterator HPS::FontSearchResults::GetIterator ( ) const

Returns a FontSearchResultsIterator used to iterate through the found search results.

Returns
An iterator pointing to the beginning of the search results list.
FontSearchResults& HPS::FontSearchResults::operator= ( FontSearchResults &&  in_that)

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

Parameters
in_thatAn rvalue reference to an FontSearchResults to take the impl from.
Returns
A reference to this FontSearchResults.
FontSearchResults& HPS::FontSearchResults::operator= ( FontSearchResults const &  in_search_results)

Share the underlying smart-pointer of the assignment source.

Parameters
in_search_resultsThe source of the assignment.
Returns
a reference to this object.
virtual void HPS::FontSearchResults::Reset ( )
virtual

Resets this object to its initial, uninitialized state.

Reimplemented from HPS::Object.


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