HPS.OptimizeMappingResultsIterator Class Reference

More...

Inheritance diagram for HPS.OptimizeMappingResultsIterator:
HPS.Object

Public Member Functions

override void Dispose ()
 
HPS.Key GetItem ()
 Returns the item that this iterator is currently pointing at. Throws an InvalidObjectException if the iterator is not valid. This method is functionally equivalent to the overloaded operator*. More...
 
bool GetMergedShellInfo (out HPS.ShellKey out_shell_key, out ulong out_vertex_offset, out ulong out_face_offset, out ulong out_edge_offset)
 Returns the item that this iterator is currently pointing at. Throws an InvalidObjectException if the iterator is not valid. More...
 
bool IsValid ()
 Queries the validity of this iterator location. Invalid locations would include uninitialized iterators and iterators that had walked past the last element. More...
 
void Next ()
 Advances the iterator to the next search result item More...
 
override HPS.Type ObjectType ()
 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). More...
 
 OptimizeMappingResultsIterator ()
 The default constructor creates a new OptimizeMappingResultsIterator object that is not associated with any OptimizeMappingResults object. More...
 
 OptimizeMappingResultsIterator (HPS.OptimizeMappingResultsIterator in_mapping_results_iterator)
 The copy constructor initializes a new OptimizeMappingResultsIterator object that is associated with the same OptimizeMappingResults object as the source and at the same location in the results. Subsequent changes to either iterator will not affect the other. More...
 
override void Reset ()
 Resets iterator to the beginning of the associated search results. More...
 
void Set (HPS.OptimizeMappingResultsIterator in_mapping_results_iterator)
 Copies a OptimizeMappingResultsIterator object, associating this object with the same OptimizeMappingResults 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. More...
 
- Public Member Functions inherited from HPS.Object
virtual bool Empty ()
 Indicates whether this object has any values set on it. More...
 
IntPtr GetClassID ()
 
IntPtr GetInstanceID ()
 Returns the object's database handle, which can be used to determine which instance of a class the object is. For example, controls are simply aliases for segment keys that group related functions. Therefore, a SegmentKey and all of its controls would return the same instance id. Different keys and controls will return the same value if they are backed by the same database resource. More...
 
bool HasType (HPS.Type in_mask)
 This function indicates whether this Object has the given Type mask. More...
 
 Object (HPS.Object that)
 
virtual 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...
 

Protected Member Functions

override void deleteCptr ()
 
- Protected Member Functions inherited from HPS.Object
virtual IntPtr GetNonDirectorClassID ()
 

Additional Inherited Members

- Static Public Member Functions inherited from HPS.Object
static IntPtr ClassID< T > ()
 
- Protected Attributes inherited from HPS.Object
bool cMemOwn
 
HandleRef cptr
 

Detailed Description

An iterator used for traversing results from a optimize on an associated OptimizeMappingResults object.

Constructor & Destructor Documentation

◆ OptimizeMappingResultsIterator() [1/2]

HPS.OptimizeMappingResultsIterator.OptimizeMappingResultsIterator ( )
inline

The default constructor creates a new OptimizeMappingResultsIterator object that is not associated with any OptimizeMappingResults object.

◆ OptimizeMappingResultsIterator() [2/2]

HPS.OptimizeMappingResultsIterator.OptimizeMappingResultsIterator ( HPS.OptimizeMappingResultsIterator  in_mapping_results_iterator)
inline

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

Parameters
in_mapping_results_iteratorThe source of the copy.

Member Function Documentation

◆ GetItem()

HPS.Key HPS.OptimizeMappingResultsIterator.GetItem ( )
inline

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

Returns
The current item.

◆ GetMergedShellInfo()

bool HPS.OptimizeMappingResultsIterator.GetMergedShellInfo ( out HPS.ShellKey  out_shell_key,
out ulong  out_vertex_offset,
out ulong  out_face_offset,
out ulong  out_edge_offset 
)
inline

Returns the item that this iterator is currently pointing at. Throws an InvalidObjectException if the iterator is not valid.

Parameters
out_shell_keyThe post merge shell that this item is in.
out_vertex_offsetThe offset that the vertices from the item start in the post merge shell.
out_face_offsetThe offset that the faces from the item start in the post merge shell.
out_edge_offsetThe offset that the edges from the item start in the post merge shell.
Returns
True if the out params are valid

◆ IsValid()

bool HPS.OptimizeMappingResultsIterator.IsValid ( )
inline

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.OptimizeMappingResultsIterator.Next ( )
inline

Advances the iterator to the next search result item

◆ ObjectType()

override HPS.Type HPS.OptimizeMappingResultsIterator.ObjectType ( )
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.

◆ Reset()

override void HPS.OptimizeMappingResultsIterator.Reset ( )
inlinevirtual

Resets iterator to the beginning of the associated search results.

Reimplemented from HPS.Object.

◆ Set()

void HPS.OptimizeMappingResultsIterator.Set ( HPS.OptimizeMappingResultsIterator  in_mapping_results_iterator)
inline

Copies a OptimizeMappingResultsIterator object, associating this object with the same OptimizeMappingResults 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_mapping_results_iteratorThe source of the copy.

The documentation for this class was generated from the following file:
  • internals/hps_core/source/cs/HPS.OptimizeMappingResultsIterator.cs