Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

Pick::SetMgr Class Reference

Utility to manage pick set lifecycles. Also supports change notifications. More...

Inheritance diagram for Pick::SetMgr:
NamedObject CallBacker

List of all members.

Classes

struct  ChangeData

Public Member Functions

int size () const
Setget (int idx)
const Setget (int idx) const
const MultiIDid (int idx) const
int indexOf (const char *) const
int indexOf (const Set &) const
int indexOf (const MultiID &) const
Setget (const MultiID &i)
const Setget (const MultiID &i) const
const MultiIDget (const Set &s) const
Setget (const char *s)
const Setget (const char *s) const
void set (const MultiID &, Set *)
void setID (int idx, const MultiID &)
void reportChange (CallBacker *sender, const ChangeData &)
void reportChange (CallBacker *sender, const Set &)
void reportDispChange (CallBacker *sender, const Set &)
void removeCBs (CallBacker *)
bool isChanged (int idx) const
void setUnChanged (int idx, bool yn=true)
 SetMgr (const char *nm)

Static Public Member Functions

static SetMgrgetMgr (const char *)

Public Attributes

Notifier< SetMgrlocationChanged
 Passes ChangeData*.
Notifier< SetMgrsetToBeRemoved
 Passes Set*.
Notifier< SetMgrsetAdded
 passes Set*
Notifier< SetMgrsetChanged
 passes Set*
Notifier< SetMgrsetDispChanged
 passes Set*

Protected Member Functions

void add (const MultiID &, Set *)
Setfind (const MultiID &) const
MultiIDfind (const Set &) const
Setfind (const char *) const
void survChg (CallBacker *)
void objRm (CallBacker *)

Protected Attributes

ObjectSet< Setpss_
TypeSet< MultiIDids_
BoolTypeSet changed_

Detailed Description

Utility to manage pick set lifecycles. Also supports change notifications.

You can create your own set manager for your own special pick sets. There is a OD-wide Mgr() available which is supposed to hold all 'plain' picksets loaded in the OD-tree.

A new special-purpose manager is created by passing your own name to the static getMgr() method.


Constructor & Destructor Documentation

Pick::SetMgr::SetMgr ( const char *  nm  ) 

creates an unmanaged SetMgr Normally you don't want that, use getMgr() instead


Member Function Documentation

void Pick::SetMgr::add ( const MultiID ,
Set  
) [protected]
Set* Pick::SetMgr::find ( const MultiID  )  const [protected]
MultiID* Pick::SetMgr::find ( const Set  )  const [protected]
Set* Pick::SetMgr::find ( const char *   )  const [protected]
const Set& Pick::SetMgr::get ( const MultiID i  )  const [inline]
const MultiID& Pick::SetMgr::get ( const Set s  )  const [inline]
Set& Pick::SetMgr::get ( int  idx  )  [inline]
Set& Pick::SetMgr::get ( const MultiID i  )  [inline]
Set& Pick::SetMgr::get ( const char *  s  )  [inline]
const Set& Pick::SetMgr::get ( int  idx  )  const [inline]
const Set& Pick::SetMgr::get ( const char *  s  )  const [inline]
static SetMgr& Pick::SetMgr::getMgr ( const char *   )  [static]
const MultiID& Pick::SetMgr::id ( int  idx  )  const
int Pick::SetMgr::indexOf ( const char *   )  const
int Pick::SetMgr::indexOf ( const Set  )  const
int Pick::SetMgr::indexOf ( const MultiID  )  const
bool Pick::SetMgr::isChanged ( int  idx  )  const [inline]
void Pick::SetMgr::objRm ( CallBacker  )  [protected]
void Pick::SetMgr::removeCBs ( CallBacker  ) 
void Pick::SetMgr::reportChange ( CallBacker sender,
const ChangeData  
)
void Pick::SetMgr::reportChange ( CallBacker sender,
const Set  
)
void Pick::SetMgr::reportDispChange ( CallBacker sender,
const Set  
)
void Pick::SetMgr::set ( const MultiID ,
Set  
)

add, replace or remove (pass null Set ptr). Set is already, or becomes *mine* Note that replacement will trigger two callbacks

void Pick::SetMgr::setID ( int  idx,
const MultiID  
)
void Pick::SetMgr::setUnChanged ( int  idx,
bool  yn = true 
) [inline]
int Pick::SetMgr::size (  )  const [inline]
void Pick::SetMgr::survChg ( CallBacker  )  [protected]

Member Data Documentation

BoolTypeSet Pick::SetMgr::changed_ [protected]