#include <GA_ElementGroupOrder.h>
|
| GA_ElementGroupOrder (GA_Attribute &attrib) |
|
| GA_ElementGroupOrder (GA_Attribute &attrib, const GA_ElementGroupOrder &src) |
|
| ~GA_ElementGroupOrder () |
|
GA_Size | entries () const |
| Return the total number of entries, mixed or not. More...
|
|
GA_Size | elementEntries () const |
|
GA_Size | mixedEntries () const |
|
GA_Offset | operator() (GA_ElementGroupOrderIndex i) const |
| Will return -1 if the i'th entry is a mixed entry. More...
|
|
GA_Offset | getElement (GA_ElementGroupOrderIndex i) const |
| Will return -1 if the i'th entry is a mixed entry. More...
|
|
void | getMixed (GA_ElementGroupOrderIndex i, GA_Offset &element, const GA_SecondaryLookupInfo *&secondary) const |
|
void | clear () |
|
void | swapRange (GA_Offset a, GA_Offset b, GA_Size n) |
|
void | moveRange (GA_Offset a, GA_Offset b, GA_Size n) |
|
void | defragment (const GA_Defragment &defrag) |
|
void | append (GA_Offset element) |
|
bool | remove (GA_Offset element) |
|
void | appendMix (GA_Offset element, const GA_SecondaryLookupInfo *secondary) |
|
bool | removeMix (GA_Offset element, const GA_SecondaryLookupInfo *secondary) |
|
int | removeAll (GA_Offset element) |
|
int | removeAll (const GA_RangeMemberQuery &range_query) |
|
int | removeAllMix (GA_Offset element, const GA_SecondaryLookupInfo *secondary_prefix, const GA_RangeMemberQuery &secondary_range_query) |
|
bool | removeIndex (GA_ElementGroupOrderIndex i) |
|
GA_ElementGroupOrderIndex | findOffset (GA_Offset item) const |
|
GA_ElementGroupOrderIndex | findMix (GA_Offset element, const GA_SecondaryLookupInfo *s) const |
|
void | merge (const GA_ElementGroupOrder &src, const GA_MergeOffsetMap &map, const GA_DataBitArray &orig) |
| Append any elements in src that are being merged, in order. More...
|
|
bool | jsonSave (UT_JSONWriter &w, const GA_SaveMap &save) const |
|
bool | jsonLoad (UT_JSONParser &p, const GA_LoadMap &load) |
| Load the element list from the JSON stream. More...
|
|
bool | jsonSaveMix (UT_JSONWriter &w, const GA_SaveMap &save) const |
|
bool | jsonLoadMix (UT_JSONParser &p, const GA_LoadMap &load) |
| Load the element list from the JSON stream. More...
|
|
Definition at line 43 of file GA_ElementGroupOrder.h.
GA_ElementGroupOrder::GA_ElementGroupOrder |
( |
GA_Attribute & |
attrib | ) |
|
GA_ElementGroupOrder::~GA_ElementGroupOrder |
( |
| ) |
|
void GA_ElementGroupOrder::clear |
( |
| ) |
|
GA_Size GA_ElementGroupOrder::elementEntries |
( |
| ) |
const |
|
inline |
GA_Size GA_ElementGroupOrder::entries |
( |
| ) |
const |
Return the total number of entries, mixed or not.
Return the index of the mixed entry passed in (or -1). This is O(N) which easily leads to O(N*N) algorithms and should be avoided at all costs.
Return the index of the item passed in (or -1). This is O(N) which easily leads to O(N*N) algorithms and should be avoided at all costs.
Will return -1 if the i'th entry is a mixed entry.
Query the i'th entry as a mixed entry. Secondary is set to NULL when not mixed.
Load the element list from the JSON stream.
Load the element list from the JSON stream.
Save data to a JSON file for an UNMIXED order.
JSON Schema: GA_ElementGroupOrder
{
"name" : "GA_ElementGroupOrder",
"description" : "An array of ordered elements",
"type" : { "$ref" : "GA_OffsetList" },
}
- See Also
- JSON_FileFormat
Save data to a JSON file for a MIXED order.
JSON Schema: GA_ElementGroupOrder
{
"name" : "GA_ElementGroupOrder",
"description" : "An array of ordered elements",
"type" : { "$ref" : "GA_OffsetList" },
}
- See Also
- JSON_FileFormat
Append any elements in src that are being merged, in order.
GA_Size GA_ElementGroupOrder::mixedEntries |
( |
| ) |
const |
Return the number of mixed entries. ie. those indices available to getMixed()
bool GA_ElementGroupOrder::remove |
( |
GA_Offset |
element | ) |
|
The documentation for this class was generated from the following file: