|
| IndexPair (IndexCount firstValue, IndexCount secondValue) |
| Conversion constructor. More...
|
|
| IndexPair (const IndexPair &rhs) |
| Copy constructor, simplest level. More...
|
|
| IndexPair (const std::string &value) |
| Construct an IndexPair from a string containing the two values. More...
|
|
| ~IndexPair () override |
| Default destructor, nothing to do.
|
|
IndexPair & | operator= (const IndexPair &rhs) |
| Class assignment operator. More...
|
|
void | getIndexPair (IndexCount &first, IndexCount &second) const |
| Get the two values comprising this index pair. More...
|
|
std::string | asString () const override |
| Get the IndexPair in string form. More...
|
|
bool | supportsDenseMode () const override |
| Notifies users that this index type can be packed densely. More...
|
|
IndexCount | denseSpaceBetween (const IndexType &rhs) const override |
| Calculate the dense space occupied between two index pairs. More...
|
|
bool | operator== (const IndexType &rhs) const override |
| Equality operator, checks if this IndexPair is the same as another Objects of different types are defined as not equal. More...
|
|
bool | operator!= (const IndexType &rhs) const override |
| Inequality operator, checks if this IndexPair is not the same as another Objects of different types are defined as not equal. More...
|
|
bool | operator< (const IndexType &rhs) const override |
| Less-than operator, checks if this IndexPair is less than another Operator sorts by typeid if the object passed in is not an IndexPair. More...
|
|
bool | operator<= (const IndexType &rhs) const override |
| Less-or-equal operator, checks if this IndexPair is <= another Operator sorts by typeid if the object passed in is not an IndexPair. More...
|
|
bool | operator> (const IndexType &rhs) const override |
| Greater-than operator, checks if this IndexPair is greater than another Operator sorts by typeid if the object passed in is not an IndexPair. More...
|
|
bool | operator>= (const IndexType &rhs) const override |
| Greater-or-equal operator, checks if this IndexPair is >= another Operator sorts by typeid if the object passed in is not an IndexPair. More...
|
|
virtual bool | operator== (const IndexPair &rhs) const |
| Equality operator, checks if this IndexPair is the same as another. More...
|
|
virtual bool | operator!= (const IndexPair &rhs) const |
| Inequality operator, checks if this IndexPair is not the same as another. More...
|
|
virtual bool | operator< (const IndexPair &rhs) const |
| Less-than operator, checks if this IndexPair is less than another. More...
|
|
virtual bool | operator<= (const IndexPair &rhs) const |
| Less-or-equal operator, checks if this IndexPair is <= another. More...
|
|
virtual bool | operator> (const IndexPair &rhs) const |
| Greater-than operator, checks if this IndexPair is greater than another. More...
|
|
virtual bool | operator>= (const IndexPair &rhs) const |
| Greater-or-equal operator, checks if this IndexPair is >= another. More...
|
|
| IndexType (const IndexType &rhs) |
| Copy constructor, simplest level. More...
|
|
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.
IndexCount denseSpaceBetween |
( |
const IndexType & |
rhs | ) |
const |
|
overridevirtual |
Calculate the dense space occupied between two index pairs.
An index pair can be thought of as a matrix so the space occupied by densely packing that matrix [a,b] - [c,d] equals the integral area of a subsection of the infinite matrix at those coordinates
b d +————————-+ | | a| XXXXXXXXXXXXXX | | XXXXXXXXXXXXXX | | XXXXXXXXXXXXXX | | XXXXXXXXXXXXXX | | XXXXXXXXXXXXXX | c| XXXXXXXXXXXXXX | | | +————————-+
- Parameters
-
[in] | rhs | The other object from whom packing space is to be calculated |
- Returns
- Size of that sub-matrix occupied between the pairs, including the rows and columns occupied by the endpoints. Returns 0 if the dense packing cannot be supported.
Implements IndexType.