The SearchOptionsKit class is a user space object. More...
#include <hps.h>
Public Member Functions | |
SearchOptionsKit () | |
The default constructor creates an empty SearchOptionsKit object. More... | |
SearchOptionsKit (SearchOptionsKit const &in_kit) | |
The copy constructor creates a new SearchOptionsKit object that contains the same settings as the source SearchOptionsKit. More... | |
SearchOptionsKit (SearchOptionsKit &&in_that) | |
The move constructor creates a SearchOptionsKit by transferring the underlying impl of the rvalue reference to this SearchOptionsKit thereby avoiding a copy and allocation. More... | |
SearchOptionsKit & | operator= (SearchOptionsKit &&in_that) |
The move assignment operator transfers the underlying impl of the rvalue reference to this SearchOptionsKit thereby avoiding a copy. More... | |
virtual | ~SearchOptionsKit () |
HPS::Type | ObjectType () const |
void | Set (SearchOptionsKit const &in_kit) |
Copies the source SearchOptionsKit into this SearchOptionsKit. More... | |
void | Show (SearchOptionsKit &out_kit) const |
Copies this SearchOptionsKit into the given SearchOptionsKit. More... | |
SearchOptionsKit & | operator= (SearchOptionsKit const &in_kit) |
Copies the source SearchOptionsKit into this SearchOptionsKit. More... | |
bool | Empty () const |
Indicates whether this SearchOptionsKit has any values set on it. More... | |
bool | Equals (SearchOptionsKit const &in_kit) const |
Check if the source SearchOptionsKit is equivalent to this SearchOptionsKit. More... | |
bool | operator== (SearchOptionsKit const &in_kit) const |
Check if the source SearchOptionsKit is equivalent to this SearchOptionsKit. More... | |
bool | operator!= (SearchOptionsKit const &in_kit) const |
Check if the source SearchOptionsKit is not equivalent to this SearchOptionsKit. More... | |
SearchOptionsKit & | SetCriteria (Search::Type in_request) |
Sets the type of entity to look for when performing a search. More... | |
SearchOptionsKit & | SetBehavior (Search::Behavior in_behavior) |
Sets the behavior to use when performing a search. More... | |
SearchOptionsKit & | SetCriteria (SearchTypeArray const &in_requests) |
Sets the type of entities to look for when performing a search. More... | |
SearchOptionsKit & | SetCriteria (size_t in_count, Search::Type const in_requests []) |
Sets the type of entities to look for when performing a search. More... | |
SearchOptionsKit & | SetSearchSpace (Search::Space in_search_space) |
Sets which segments to look in when performing a search. More... | |
SearchOptionsKit & | UnsetBehavior () |
Removes the behavior to use when performing a search. More... | |
SearchOptionsKit & | UnsetCriteria () |
Removes the entity types to look for when performing a search. More... | |
SearchOptionsKit & | UnsetSearchSpace () |
Removes which segments to look in when performing a search. More... | |
SearchOptionsKit & | UnsetEverything () |
Removes all settings from this SearchOptionsKit. More... | |
bool | ShowBehavior (Search::Behavior &out_behavior) const |
Shows the behavior to use when performing a search. More... | |
bool | ShowCriteria (SearchTypeArray &out_types) const |
Shows the entity types to look for when performing a search. More... | |
bool | ShowSearchSpace (Search::Space &out_search_space) const |
Shows which segments to look in when performing a search. More... | |
virtual HPS::Type | Type () const |
This function returns the true type of the underlying object. More... | |
virtual void | Reset () |
Resets this object to its initial, uninitialized state. More... | |
bool | HasType (HPS::Type in_mask) const |
This function indicates whether this Object has the given Type mask. More... | |
intptr_t | GetClassID () const |
Returns a unique identifier that is shared by all objects of the same class. More... | |
intptr_t | GetInstanceID () const |
Returns an identifier that can be used to identify which instance of a class an object is. More... | |
Static Public Member Functions | |
static SearchOptionsKit | GetDefault () |
Creates a SearchOptionsKit which contains the default settings. More... | |
template<typename T > | |
static intptr_t | ClassID () |
Unique identifier for this class. More... | |
Static Public Attributes | |
static const HPS::Type | staticType = HPS::Type::SearchOptionsKit |
The SearchOptionsKit class is a user space object.
It contains options used when performing a search.
HPS::SearchOptionsKit::SearchOptionsKit | ( | ) |
The default constructor creates an empty SearchOptionsKit object.
HPS::SearchOptionsKit::SearchOptionsKit | ( | SearchOptionsKit const & | in_kit | ) |
The copy constructor creates a new SearchOptionsKit object that contains the same settings as the source SearchOptionsKit.
in_kit | The source SearchOptionsKit to copy. |
HPS::SearchOptionsKit::SearchOptionsKit | ( | SearchOptionsKit && | in_that | ) |
The move constructor creates a SearchOptionsKit by transferring the underlying impl of the rvalue reference to this SearchOptionsKit thereby avoiding a copy and allocation.
in_that | An rvalue reference to a SearchOptionsKit to take the impl from. |
|
virtual |
|
inlinestaticinherited |
Unique identifier for this class.
Note: this method uses construction of static objects. If used in a constructor, it should be used in the body not the initializer list.
|
virtual |
Indicates whether this SearchOptionsKit has any values set on it.
Reimplemented from HPS::Object.
bool HPS::SearchOptionsKit::Equals | ( | SearchOptionsKit const & | in_kit | ) | const |
Check if the source SearchOptionsKit is equivalent to this SearchOptionsKit.
in_kit | The source SearchOptionsKit to compare to this SearchOptionsKit. |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
static |
Creates a SearchOptionsKit which contains the default settings.
The returned object will not necessarily have values set for every option, but it will have settings for those options where it is reasonable to have a default.
|
inherited |
Returns an identifier that can be used to identify which instance of a class an object is.
Different keys and controls will return the same value if they are backed by the same database resource.
|
inherited |
|
inlinevirtual |
bool HPS::SearchOptionsKit::operator!= | ( | SearchOptionsKit const & | in_kit | ) | const |
Check if the source SearchOptionsKit is not equivalent to this SearchOptionsKit.
in_kit | The source SearchOptionsKit to compare to this SearchOptionsKit. |
SearchOptionsKit& HPS::SearchOptionsKit::operator= | ( | SearchOptionsKit && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this SearchOptionsKit thereby avoiding a copy.
in_that | An rvalue reference to a SearchOptionsKit to take the impl from. |
SearchOptionsKit& HPS::SearchOptionsKit::operator= | ( | SearchOptionsKit const & | in_kit | ) |
Copies the source SearchOptionsKit into this SearchOptionsKit.
in_kit | The source SearchOptionsKit to copy. |
bool HPS::SearchOptionsKit::operator== | ( | SearchOptionsKit const & | in_kit | ) | const |
Check if the source SearchOptionsKit is equivalent to this SearchOptionsKit.
in_kit | The source SearchOptionsKit to compare to this SearchOptionsKit. |
|
virtualinherited |
Resets this object to its initial, uninitialized state.
Reimplemented in HPS::EventHandler, HPS::EventDispatcher, HPS::World, HPS::HighlightSearchResults, HPS::HighlightSearchResultsIterator, HPS::SelectionResults, HPS::SelectionResultsIterator, HPS::FontSearchResults, HPS::FontSearchResultsIterator, HPS::SearchResults, and HPS::SearchResultsIterator.
void HPS::SearchOptionsKit::Set | ( | SearchOptionsKit const & | in_kit | ) |
Copies the source SearchOptionsKit into this SearchOptionsKit.
in_kit | The source SearchOptionsKit to copy. |
SearchOptionsKit& HPS::SearchOptionsKit::SetBehavior | ( | Search::Behavior | in_behavior | ) |
Sets the behavior to use when performing a search.
in_behavior | The behavior to use when performing a search. |
SearchOptionsKit& HPS::SearchOptionsKit::SetCriteria | ( | Search::Type | in_request | ) |
Sets the type of entity to look for when performing a search.
in_request | The type of entity to look for. |
SearchOptionsKit& HPS::SearchOptionsKit::SetCriteria | ( | SearchTypeArray const & | in_requests | ) |
Sets the type of entities to look for when performing a search.
in_requests | Array of the entity types to look for. |
SearchOptionsKit& HPS::SearchOptionsKit::SetCriteria | ( | size_t | in_count, |
Search::Type const | in_requests[] | ||
) |
Sets the type of entities to look for when performing a search.
in_count | Size of the next array. |
in_requests | Array of the entity types to look for. |
SearchOptionsKit& HPS::SearchOptionsKit::SetSearchSpace | ( | Search::Space | in_search_space | ) |
Sets which segments to look in when performing a search.
in_search_space | Which segments to look in when performing a search. |
void HPS::SearchOptionsKit::Show | ( | SearchOptionsKit & | out_kit | ) | const |
Copies this SearchOptionsKit into the given SearchOptionsKit.
out_kit | The SearchOptionsKit to populate with the contents of this SearchOptionsKit. |
bool HPS::SearchOptionsKit::ShowBehavior | ( | Search::Behavior & | out_behavior | ) | const |
Shows the behavior to use when performing a search.
out_behavior | The behavior to use when performing a search. |
bool HPS::SearchOptionsKit::ShowCriteria | ( | SearchTypeArray & | out_types | ) | const |
Shows the entity types to look for when performing a search.
out_types | Array of the entity types to look for. |
bool HPS::SearchOptionsKit::ShowSearchSpace | ( | Search::Space & | out_search_space | ) | const |
Shows which segments to look in when performing a search.
out_search_space | Which segments to look in when performing a search. |
|
inlinevirtualinherited |
This function returns the true type of the underlying object.
This function is useful for finding the type of smart pointer objects that have been cast to more generic types.
Reimplemented from HPS::Object.
SearchOptionsKit& HPS::SearchOptionsKit::UnsetBehavior | ( | ) |
Removes the behavior to use when performing a search.
SearchOptionsKit& HPS::SearchOptionsKit::UnsetCriteria | ( | ) |
Removes the entity types to look for when performing a search.
SearchOptionsKit& HPS::SearchOptionsKit::UnsetEverything | ( | ) |
Removes all settings from this SearchOptionsKit.
SearchOptionsKit& HPS::SearchOptionsKit::UnsetSearchSpace | ( | ) |
Removes which segments to look in when performing a search.
|
static |