The SelectionResults class is a smart pointer to a database object. It is a handle to the results of a selection action and allows iteration over them. When there are no remaining handles to a given selection result, the memory associated with it is freed. More...
Public Member Functions | |
override void | Dispose () |
SelectionResults () | |
The default constructor creates an empty SelectionResults object which is not associated with any selection action. More... | |
SelectionResults (HPS.SelectionResults in_that) | |
The copy constructor creates a SelectionResults object that shares the underlying smart-pointer of the source SelectionResults. More... | |
override HPS.Type | ObjectType () |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object. More... | |
void | Assign (HPS.SelectionResults in_that) |
Share the underlying smart-pointer of the SelectionResults source. More... | |
override bool | Equals (System.Object obj) |
override int | GetHashCode () |
bool | Equals (HPS.SelectionResults in_that) |
Check if the source SelectionResults is equivalent to this SelectionResults. More... | |
override void | Reset () |
Resets this object to its initial, uninitialized state. More... | |
HPS.Selection.Level | GetSelectionLevel () |
Gets the selection level used when the associated selection action occurred. More... | |
ulong | GetCount () |
Gets the number of items selected when the associated selection action occurred. More... | |
HPS.SelectionResultsIterator | GetIterator () |
Get an iterator that can be used to iterate through the selection results. More... | |
bool | Union (HPS.SelectionResults in_that) |
Perform a set union of elements in this SelectionResults object with the elements of the supplied SelectionResults. This will fail if the SelectionResults selections were performed at different levels (e.g. Entity vs Segment). The resulting SelectionResults will be unsorted, even if the sources were sorted. More... | |
bool | Intersect (HPS.SelectionResults in_that) |
Perform a set intersection of elements in this SelectionResults object with the elements of the supplied SelectionResults. This will fail if the SelectionResults selections were performed at different levels (e.g. Entity vs Segment). More... | |
bool | SymmetricDifference (HPS.SelectionResults in_that) |
Perform a symmetric difference (similar to XOR) of elements in this SelectionResults object with the elements of the supplied SelectionResults. This will fail if the SelectionResults selections were performed at different levels (e.g. Entity vs Segment). The resulting SelectionResults will be unsorted, even if the sources were sorted. More... | |
bool | Difference (HPS.SelectionResults in_that) |
Removes elements from this SelectionResults that also occur in the supplied SelectionResults. This will fail if the SelectionResults selections were performed at different levels (e.g. Entity vs Segment). More... | |
void | Copy (HPS.SelectionResults in_that) |
Copy the selection results from another SelectionResults object. More... | |
![]() | |
IntPtr | GetClassID () |
Object (HPS.Object in_that) | |
The move constructor creates an Object by transferring the underlying impl of the rvalue reference to this Object thereby avoiding a copy and allocation. More... | |
HPS.Type | Type () |
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. More... | |
virtual bool | Empty () |
Indicates whether this object has any values set on it. More... | |
bool | HasType (HPS.Type in_mask) |
This function indicates whether this Object has the given Type mask. More... | |
IntPtr | GetInstanceID () |
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. More... | |
Static Public Member Functions | |
static bool | operator== (HPS.SelectionResults a, HPS.SelectionResults b) |
static bool | operator!= (HPS.SelectionResults a, HPS.SelectionResults b) |
![]() | |
static IntPtr | ClassID< T > () |
Protected Member Functions | |
override void | deleteCptr () |
![]() | |
virtual IntPtr | GetNonDirectorClassID () |
Additional Inherited Members | |
![]() | |
HandleRef | cptr |
HandleRef | scptr |
bool | cMemOwn |
The SelectionResults class is a smart pointer to a database object. It is a handle to the results of a selection action and allows iteration over them. When there are no remaining handles to a given selection result, the memory associated with it is freed.
|
inline |
The default constructor creates an empty SelectionResults object which is not associated with any selection action.
|
inline |
The copy constructor creates a SelectionResults object that shares the underlying smart-pointer of the source SelectionResults.
in_that | The source <ref refid="class_h_p_s_1_1_selection_results" kindref="compound">SelectionResults</ref> to copy. |
|
inline |
Share the underlying smart-pointer of the SelectionResults source.
in_that | The <ref refid="class_h_p_s_1_1_selection_results" kindref="compound">SelectionResults</ref> source of the assignment. |
|
inline |
Copy the selection results from another SelectionResults object.
in_that | The <ref refid="class_h_p_s_1_1_selection_results" kindref="compound">SelectionResults</ref> source of the copy. |
|
inline |
Removes elements from this SelectionResults that also occur in the supplied SelectionResults. This will fail if the SelectionResults selections were performed at different levels (e.g. Entity vs Segment).
in_that | The <ref refid="class_h_p_s_1_1_selection_results" kindref="compound">SelectionResults</ref> to subtract from this object. |
|
inline |
Check if the source SelectionResults is equivalent to this SelectionResults.
in_that | The source <ref refid="class_h_p_s_1_1_selection_results" kindref="compound">SelectionResults</ref> to compare to this <ref refid="class_h_p_s_1_1_selection_results" kindref="compound">SelectionResults</ref>. |
|
inline |
Gets the number of items selected when the associated selection action occurred.
|
inline |
Get an iterator that can be used to iterate through the selection results.
|
inline |
Gets the selection level used when the associated selection action occurred.
|
inline |
Perform a set intersection of elements in this SelectionResults object with the elements of the supplied SelectionResults. This will fail if the SelectionResults selections were performed at different levels (e.g. Entity vs Segment).
in_that | The <ref refid="class_h_p_s_1_1_selection_results" kindref="compound">SelectionResults</ref> to intersect with this object. |
|
inlinevirtual |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.
Reimplemented from HPS.Object.
|
inlinevirtual |
Resets this object to its initial, uninitialized state.
Reimplemented from HPS.Object.
|
inline |
Perform a symmetric difference (similar to XOR) of elements in this SelectionResults object with the elements of the supplied SelectionResults. This will fail if the SelectionResults selections were performed at different levels (e.g. Entity vs Segment). The resulting SelectionResults will be unsorted, even if the sources were sorted.
in_that | The <ref refid="class_h_p_s_1_1_selection_results" kindref="compound">SelectionResults</ref> to take the symmetric difference of with this object. |
|
inline |
Perform a set union of elements in this SelectionResults object with the elements of the supplied SelectionResults. This will fail if the SelectionResults selections were performed at different levels (e.g. Entity vs Segment). The resulting SelectionResults will be unsorted, even if the sources were sorted.
in_that | The <ref refid="class_h_p_s_1_1_selection_results" kindref="compound">SelectionResults</ref> to union with this object. |