HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GA_GBPointRedirectArray Class Reference

Class used to create a map of source points during merging. More...

#include <GA_GBPointRedirectArray.h>

Public Types

typedef std::map< GA_Index,
GA_Index >::const_iterator 
const_iterator
 

Public Member Functions

 GA_GBPointRedirectArray (GA_Size size)
 
 ~GA_GBPointRedirectArray ()
 
GA_Size entries () const
 Entries in the array. More...
 
GA_Index getSrc (GA_Index created) const
 
void clear ()
 Clear the array and reserve memory for the map. More...
 
void clearAndResize (GA_Size newsize=0)
 
const_iterator begin ()
 
const_iterator end ()
 

Friends

class GA_MergeMap
 

Detailed Description

Class used to create a map of source points during merging.

This class is used only by mirror and should not be used in future code The class stores a map of the points from the source geometry merged to their newly created destination points. In the map's pair:

  • first := destination point index
  • second := source point index Since the map is indexed based on the newly created points (destination points), we use a map (rather than an array).

Definition at line 33 of file GA_GBPointRedirectArray.h.

Member Typedef Documentation

Constructor & Destructor Documentation

GA_GBPointRedirectArray::GA_GBPointRedirectArray ( GA_Size  size)
GA_GBPointRedirectArray::~GA_GBPointRedirectArray ( )

Member Function Documentation

const_iterator GA_GBPointRedirectArray::begin ( void  )
inline

Iterator over all the points in the map

  • const_iterator->first == Point number in the merged result (dest)
  • const_iterator->second == Point number in the merge source

Definition at line 72 of file GA_GBPointRedirectArray.h.

void GA_GBPointRedirectArray::clear ( )
inline

Clear the array and reserve memory for the map.

Definition at line 60 of file GA_GBPointRedirectArray.h.

void GA_GBPointRedirectArray::clearAndResize ( GA_Size  newsize = 0)
inline

Definition at line 62 of file GA_GBPointRedirectArray.h.

const_iterator GA_GBPointRedirectArray::end ( void  )
inline

Iterator over all the points in the map

  • const_iterator->first == Point number in the merged result (dest)
  • const_iterator->second == Point number in the merge source

Definition at line 74 of file GA_GBPointRedirectArray.h.

GA_Size GA_GBPointRedirectArray::entries ( ) const
inline

Entries in the array.

Definition at line 43 of file GA_GBPointRedirectArray.h.

GA_Index GA_GBPointRedirectArray::getSrc ( GA_Index  created) const
inline

Given the index of a point for the newly created merged point (after the merge), get the original point's number from the source detail.

Definition at line 50 of file GA_GBPointRedirectArray.h.

Friends And Related Function Documentation

friend class GA_MergeMap
friend

Definition at line 84 of file GA_GBPointRedirectArray.h.


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