#include <GA_GroupTable.h>
|
| GA_GroupTable (GA_Detail &detail) |
|
virtual | ~GA_GroupTable () |
|
virtual int64 | getMemoryUsage (bool inclusive) const |
| Report memory usage (includes all shared memory) More...
|
|
virtual void | countMemory (UT_MemoryCounter &counter, bool inclusive) const |
|
bool | isEmpty () const |
|
exint | getPersistentCount () const |
|
exint | entries () const |
|
GA_Group * | find (const UT_StringRef &name) const |
|
GA_Group * | newGroup (const UT_StringHolder &name) |
|
GA_Group * | newInternalGroup () |
|
GA_Group * | newGroup (const UT_StringHolder &name, bool internal) |
| TODO: Deprecate internal groups with user-specified names. More...
|
|
bool | destroy (GA_Group *group) |
|
bool | destroy (const UT_StringRef &name) |
|
GA_Size | destroyGroups (const Filter &filter) |
|
void | clear () |
|
bool | renameGroup (const UT_StringRef &fromname, const UT_StringHolder &toname) |
|
UT_StringHolder | renameGroupUnspecified (const UT_StringRef &from_name) |
|
bool | jsonSave (UT_JSONWriter &w, const GA_SaveMap &map, const char *type) const |
|
bool | jsonLoad (UT_JSONParser &p, const GA_LoadMap &map, const char *type_default, GA_AttributeOwner owner) |
| Load the groups from the JSON stream. More...
|
|
bool | jsonShouldSave (const GA_SaveMap &map) const |
| Returns true if there are any groups to be saved out. More...
|
|
GA_GroupTable::iterator< GA_Group > | beginTraverse () const |
|
GA_GroupTable::iterator< GA_Group > | endTraverse () const |
|
|
GA_GroupUPtr | createDetachedGroup () const |
|
GA_Group * | newDetachedGroup () const |
|
|
void | stat (UT_StringArray &info, uint level) |
|
void | stat (GA_Stat &stat, uint level) const |
|
Definition at line 43 of file GA_GroupTable.h.
Traverse the group table in alpabetic order.
Definition at line 199 of file GA_GroupTable.h.
GA_GroupTable::GA_GroupTable |
( |
GA_Detail & |
detail | ) |
|
virtual GA_GroupTable::~GA_GroupTable |
( |
| ) |
|
|
virtual |
Traverse the group table in creation order.
- Note
- Derived classes will add their own specialized versions of begin() and end() and call them beginTraverse() and endTraverse(). These were named begin/endTraverse() to avoid any method hiding as the return types are different.
Definition at line 191 of file GA_GroupTable.h.
void GA_GroupTable::clear |
( |
| ) |
|
Traverse the group table in alpabetic order.
Definition at line 200 of file GA_GroupTable.h.
Convenience function for ordered iteration (in subclasses)
Definition at line 214 of file GA_GroupTable.h.
Count memory usage using a UT_MemoryCounter in order to count shared memory correctly. If inclusive is true, the size of this object is counted, else only memory owned by this object is counted. If this is pointed to by the calling object, inclusive should be true. If this is contained in the calling object, inclusive should be false. (Its memory was already counted in the size of the calling object.)
A detached group is not owned by anyone but the caller, so will not track new points and must be deleted by the caller.
bool GA_GroupTable::destroy |
( |
GA_Group * |
group | ) |
|
exint GA_GroupTable::entries |
( |
| ) |
const |
|
inline |
const GA_Detail& GA_GroupTable::getDetail |
( |
| ) |
const |
|
inlineprotected |
template<typename GROUP_TYPE >
void GA_GroupTable::getListT |
( |
UT_Array< GROUP_TYPE * > & |
list | ) |
const |
|
inlineprotected |
- Note
- Derived classes are responsible for ensuring that this template method is only instantiated for the appropriate GROUP_TYPE, if any.
Definition at line 228 of file GA_GroupTable.h.
const MapType& GA_GroupTable::getMap |
( |
| ) |
const |
|
inlineprotected |
virtual int64 GA_GroupTable::getMemoryUsage |
( |
bool |
inclusive | ) |
const |
|
virtual |
Report memory usage (includes all shared memory)
exint GA_GroupTable::getPersistentCount |
( |
| ) |
const |
bool GA_GroupTable::isEmpty |
( |
| ) |
const |
|
inline |
Load the groups from the JSON stream.
Save array of groups to a JSON stream
JSON Schema: GA_GroupTable
Stores an array of groups.
{
"name" : "GA_GroupTable",
"description" : "A list of groups. All items should be same type",
"type" : "array",
"items" : { "$ref" : "GA_Group" },
}
- See Also
- JSON_FileFormat, GA_Group
bool GA_GroupTable::jsonShouldSave |
( |
const GA_SaveMap & |
map | ) |
const |
Returns true
if there are any groups to be saved out.
Stat the group from the JSON stream.
GA_Group* GA_GroupTable::newDetachedGroup |
( |
| ) |
const |
|
inline |
A detached group is not owned by anyone but the caller, so will not track new points and must be deleted by the caller.
Definition at line 83 of file GA_GroupTable.h.
TODO: Deprecate internal groups with user-specified names.
GA_Group* GA_GroupTable::newInternalGroup |
( |
| ) |
|
Traverse the group table in alpabetic order.
Definition at line 202 of file GA_GroupTable.h.
Traverse the group table in alpabetic order.
Definition at line 207 of file GA_GroupTable.h.
Rename a group to an unused name. Typically used to make from_name available for another group.
Returns new name on success, UT_StringHolder() on failure.
void GA_GroupTable::reserveNewSymbolTableSpace |
( |
exint |
n | ) |
|
|
inlineprotected |
Get information about groups
Get information about groups
virtual GA_Group* GA_GroupTable::virtualCreateDetachedGroup |
( |
const GA_Detail & |
detail | ) |
const |
|
protectedpure virtual |
The documentation for this class was generated from the following file: