Jive reference manual
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions
jive::util::XItemGroup Class Referenceabstract

#include <jive/util/XItemGroup.h>

Inheritance diagram for jive::util::XItemGroup:
Inheritance graph

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)
 
- Public Member Functions inherited from jive::util::ItemGroup
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 ItemSetgetItems () 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...
 
- Public Member Functions inherited from jem::Object
virtual ClassgetClass () 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< Objectclone () const
 Returns a copy of this object. More...
 

Static Public Member Functions

static Ref< XItemGroupfind (const String &name, const Ref< ItemSet > &items, const Properties &globdat)
 
static Ref< XItemGroupget (const String &name, const Ref< ItemSet > &items, const Properties &globdat)
 
- Static Public Member Functions inherited from jive::util::ItemGroup
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< ItemGroupfind (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< ItemGroupget (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< DictfindFor (const jem::Ref< ItemSet > &items, const Properties &globdat)
 Searches for all groups associated with a given item set. More...
 
static jem::Ref< DictgetFor (const jem::Ref< ItemSet > &items, const Properties &globdat)
 Returns all groups associated with a given item set. More...
 
- Static Public Member Functions inherited from jem::Object
static ClassgetType ()
 Returns the Class instance representing the Object class. More...
 

Protected Member Functions

virtual ~XItemGroup ()
 
- Protected Member Functions inherited from jive::util::ItemGroup
virtual ~ItemGroup ()
 
- Protected Member Functions inherited from jem::Collectable
 Collectable ()
 Creates an empty Collectable. More...
 
 ~Collectable ()
 Frees resources. More...
 

Additional Inherited Members

- Public Types inherited from jive::util::ItemGroup
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...
 
- Public Attributes inherited from jive::util::ItemGroup
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...
 

Constructor & Destructor Documentation

virtual jive::util::XItemGroup::~XItemGroup ( )
protectedvirtual

Member Function Documentation

virtual void jive::util::XItemGroup::clear ( )
pure virtual

Implemented in jive::util::ArrayItemGroup.

virtual void jive::util::XItemGroup::append ( const IdxVector &  iitems)
pure virtual

Implemented in jive::util::ArrayItemGroup.

virtual void jive::util::XItemGroup::reorder ( const Reordering reord)
pure virtual

Implemented in jive::util::ArrayItemGroup.

void jive::util::XItemGroup::erase ( const IdxVector &  index)
static Ref<XItemGroup> jive::util::XItemGroup::find ( const String name,
const Ref< ItemSet > &  items,
const Properties globdat 
)
static
static Ref<XItemGroup> jive::util::XItemGroup::get ( const String name,
const Ref< ItemSet > &  items,
const Properties globdat 
)
static