Jive reference manual
|
#include <jive/util/XItemGroup.h>
Public Member Functions | |
virtual void | clear ()=0 |
virtual void | append (const IdxVector &iitems)=0 |
virtual void | reorder (const Reordering &reord)=0 |
void | erase (const IdxVector &index) |
![]() | |
virtual int | size () const =0 |
Returns the size of this item group. More... | |
virtual IntVector | getIDs () const |
Returns the IDs of the items in this group. More... | |
virtual IntVector | getIndices () const =0 |
Returns the indices of the items in this group. More... | |
virtual ItemSet * | getItems () const =0 |
Returns the item set containing the items in this group. More... | |
virtual bool | contains (int iitem) const |
Tests whether this group contains a given item index. More... | |
virtual void | filter (const IntVector &iitems) const |
Marks which item indices are not in this group. More... | |
int | findMembers (const IntVector &jitems, const IntVector &iitems) const |
Finds all item indices that are members of this group. More... | |
int | findNonMembers (const IntVector &jitems, const IntVector &iitems) const |
Finds all item indices that are not members of this group. More... | |
void | printTo (Printer &out) const |
Prints the contents of this group. More... | |
String | getTagName () const |
Returns an XML tag name for this group. More... | |
void | store (const String &name, const Properties &globdat) const |
Stores this item group in a (global) data set. More... | |
![]() | |
virtual Class * | getClass () const |
Returns the Class instance representing the runtime class of this object. More... | |
virtual String | toString () const |
Returns a short textual description of this object. More... | |
virtual long | hashValue () const |
Returns a hash value for this object. More... | |
virtual bool | equals (const Ref< Object > &obj) const |
Tests whether two objects are equal. More... | |
Ref< Object > | clone () const |
Returns a copy of this object. More... | |
Static Public Member Functions | |
static Ref< XItemGroup > | find (const String &name, const Ref< ItemSet > &items, const Properties &globdat) |
static Ref< XItemGroup > | get (const String &name, const Ref< ItemSet > &items, const Properties &globdat) |
![]() | |
static IntVector | getUnion (const ItemGroup &first, const ItemGroup &second) |
Returns the union of two item groups. More... | |
static IntVector | getIntersection (const ItemGroup &first, const ItemGroup &second) |
Returns the intersection of two item groups. More... | |
static void | printGroup (Printer &out, const ItemSet &items, const IntVector &iitems) |
Prints the contents of a given set of item indices. More... | |
static void | printSome (Printer &out, const Dict &groups, const String &tag="") |
Prints all groups in a given dictionary. More... | |
static void | printAll (Printer &out, const Properties &globdat) |
Prints all item groups in a global data set. More... | |
static String | getTagName (const String &itemName) |
Returns an XML tag name for a group given an item type name. More... | |
static jem::Ref< ItemGroup > | find (const String &name, const jem::Ref< ItemSet > &items, const Properties &globdat) |
Searches for a named item group in a (global) data set. More... | |
static jem::Ref< ItemGroup > | get (const String &name, const jem::Ref< ItemSet > &items, const Properties &globdat, const String &context) |
Returns a named item group stored in a (global) data set. More... | |
static jem::Ref< Dict > | findFor (const jem::Ref< ItemSet > &items, const Properties &globdat) |
Searches for all groups associated with a given item set. More... | |
static jem::Ref< Dict > | getFor (const jem::Ref< ItemSet > &items, const Properties &globdat) |
Returns all groups associated with a given item set. More... | |
![]() | |
static Class * | getType () |
Returns the Class instance representing the Object class. More... | |
Protected Member Functions | |
virtual | ~XItemGroup () |
![]() | |
virtual | ~ItemGroup () |
![]() | |
Collectable () | |
Creates an empty Collectable . More... | |
~Collectable () | |
Frees resources. More... | |
Additional Inherited Members | |
![]() | |
typedef jem::String | String |
Represents a string type. More... | |
typedef jem::io::PrintWriter | Printer |
Represents a formatted output stream. More... | |
typedef jem::util::Dictionary | Dict |
Represents a dictionary. More... | |
typedef jem::util::Properties | Properties |
Represents a properties set. More... | |
![]() | |
jem::util::Event< int, Self & > | newSizeEvent |
Signals that the size of this item group has changed. More... | |
jem::util::Event< const IntVector &, Self & > | newOrderEvent |
Signals that the indices have been re-ordered. More... | |
|
protectedvirtual |
|
pure virtual |
Implemented in jive::util::ArrayItemGroup.
|
pure virtual |
Implemented in jive::util::ArrayItemGroup.
|
pure virtual |
Implemented in jive::util::ArrayItemGroup.
void jive::util::XItemGroup::erase | ( | const IdxVector & | index | ) |
|
static |
|
static |