Index type which uses a pair of IndexCount values for the index mapping.
adsk::Data::Stream objects contain a list of data elements. Each element has to be accessed by Index. This is one of the more general index types, a pair of IndexCount values. An adsk::Data::IndexPair element is used to lookup the physical location of a data element, either directly in an array using the dense mode or indirectly through a mapping in the sparse, or mapping, mode.
Public Member Functions |
| | IndexPair (IndexCount firstValue, IndexCount secondValue) |
| | Conversion constructor.
|
| | IndexPair (const IndexPair &rhs) |
| | Copy constructor, simplest level.
|
| | IndexPair (const std::string &value) |
| | Construct an IndexPair from a string containing the two values.
|
|
virtual | ~IndexPair () |
| | Default destructor, nothing to do.
|
| IndexPair & | operator= (const IndexPair &rhs) |
| | Class assignment operator.
|
| void | getIndexPair (IndexCount &first, IndexCount &second) const |
| | Get the two values comprising this index pair.
|
| virtual std::string | asString () const |
| | Get the IndexPair in string form.
|
| virtual bool | supportsDenseMode () const |
| | Notifies users that this index type can be packed densely.
|
| virtual IndexCount | denseSpaceBetween (const IndexType &rhs) const |
| | Calculate the dense space occupied between two index pairs.
|
| virtual bool | operator== (const IndexType &rhs) const |
| | Equality operator, checks if this IndexPair is the same as another Objects of different types are defined as not equal.
|
| virtual bool | operator!= (const IndexType &rhs) const |
| | Inequality operator, checks if this IndexPair is not the same as another Objects of different types are defined as not equal.
|
| virtual bool | operator< (const IndexType &rhs) const |
| | Less-than operator, checks if this IndexPair is less than another Operator sorts by typeid if the object passed in is not an IndexPair.
|
| virtual bool | operator<= (const IndexType &rhs) const |
| | Less-or-equal operator, checks if this IndexPair is <= another Operator sorts by typeid if the object passed in is not an IndexPair.
|
| virtual bool | operator> (const IndexType &rhs) const |
| | Greater-than operator, checks if this IndexPair is greater than another Operator sorts by typeid if the object passed in is not an IndexPair.
|
| virtual bool | operator>= (const IndexType &rhs) const |
| | Greater-or-equal operator, checks if this IndexPair is >= another Operator sorts by typeid if the object passed in is not an IndexPair.
|
| virtual bool | operator== (const IndexPair &rhs) const |
| | Equality operator, checks if this IndexPair is the same as another.
|
| virtual bool | operator!= (const IndexPair &rhs) const |
| | Inequality operator, checks if this IndexPair is not the same as another.
|
| virtual bool | operator< (const IndexPair &rhs) const |
| | Less-than operator, checks if this IndexPair is less than another.
|
| virtual bool | operator<= (const IndexPair &rhs) const |
| | Less-or-equal operator, checks if this IndexPair is <= another.
|
| virtual bool | operator> (const IndexPair &rhs) const |
| | Greater-than operator, checks if this IndexPair is greater than another.
|
| virtual bool | operator>= (const IndexPair &rhs) const |
| | Greater-or-equal operator, checks if this IndexPair is >= another.
|
Static Public Member Functions |
| static bool | Debug (const IndexPair *me, adsk::Debug::Print &request) |
| | Answer a Print request for the IndexPair type.
|
| static bool | Debug (const IndexPair *me, adsk::Debug::Footprint &request) |
| | Answer a footprint request for the IndexPair type.
|
Protected Member Functions |
|
| IndexPair () |
| | Default constructor, should never be used.
|
Protected Attributes |
|
IndexCount | fSecondIndex |
| | First index used for mapping.
|
Static Protected Attributes |
|
static std::string | myTypeName = "pair" |
| | Name used to identify this type.
|
|
static IndexRegistration | myRegistration |
| | Name used to identify this type.
|
Friends |
|
class | CRTP_IndexType< IndexPair > |
| | Second index used for mapping.
|