CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
FWModelId Class Reference

#include <Fireworks/Core/interface/FWModelId.h>

Public Types

enum  { kContainerIndex = -1 }
 

Public Member Functions

 FWModelId (const FWEventItem *iItem=nullptr, int iIndex=kContainerIndex)
 
int index () const
 
const FWEventItemitem () const
 
bool operator< (const FWModelId &iRHS) const
 
void select () const
 
void setIndex (int iIndex)
 
void toggleSelect () const
 
void unselect () const
 

Private Attributes

int m_index
 
const FWEventItemm_item
 

Detailed Description

Description: identifies a particular model within an FWEventItem

Usage: <usage>

Definition at line 28 of file FWModelId.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kContainerIndex 

Definition at line 30 of file FWModelId.h.

Constructor & Destructor Documentation

◆ FWModelId()

FWModelId::FWModelId ( const FWEventItem iItem = nullptr,
int  iIndex = kContainerIndex 
)
inline

Definition at line 31 of file FWModelId.h.

31 : m_item(iItem), m_index(iIndex) {}
const FWEventItem * m_item
Definition: FWModelId.h:56
int m_index
Definition: FWModelId.h:57

Member Function Documentation

◆ index()

int FWModelId::index ( ) const
inline

◆ item()

const FWEventItem* FWModelId::item ( ) const
inline

◆ operator<()

bool FWModelId::operator< ( const FWModelId iRHS) const
inline

Definition at line 35 of file FWModelId.h.

References m_index, and m_item.

35  {
36  return m_item == iRHS.m_item ? m_index < iRHS.m_index : m_item < iRHS.m_item;
37  }
const FWEventItem * m_item
Definition: FWModelId.h:56
int m_index
Definition: FWModelId.h:57

◆ select()

void FWModelId::select ( ) const

Definition at line 70 of file FWModelId.cc.

References m_index, m_item, and FWEventItem::select().

Referenced by FWModelIdFromEveSelector::doSelect().

70  {
71  if (m_item) {
73  }
74 }
void select(int iIndex) const
Definition: FWEventItem.cc:224
const FWEventItem * m_item
Definition: FWModelId.h:56
int m_index
Definition: FWModelId.h:57

◆ setIndex()

void FWModelId::setIndex ( int  iIndex)
inline

Definition at line 48 of file FWModelId.h.

References m_index.

48 { m_index = iIndex; }
int m_index
Definition: FWModelId.h:57

◆ toggleSelect()

void FWModelId::toggleSelect ( ) const

Definition at line 76 of file FWModelId.cc.

References m_index, m_item, and FWEventItem::toggleSelect().

76  {
77  if (m_item) {
79  }
80 }
const FWEventItem * m_item
Definition: FWModelId.h:56
int m_index
Definition: FWModelId.h:57
void toggleSelect(int iIndex) const
Definition: FWEventItem.cc:236

◆ unselect()

void FWModelId::unselect ( ) const

Definition at line 65 of file FWModelId.cc.

References m_index, m_item, and FWEventItem::unselect().

Referenced by FWModelIdFromEveSelector::doUnselect().

65  {
66  if (m_item) {
68  }
69 }
const FWEventItem * m_item
Definition: FWModelId.h:56
void unselect(int iIndex) const
Definition: FWEventItem.cc:215
int m_index
Definition: FWModelId.h:57

Member Data Documentation

◆ m_index

int FWModelId::m_index
private

Definition at line 57 of file FWModelId.h.

Referenced by index(), operator<(), select(), setIndex(), toggleSelect(), and unselect().

◆ m_item

const FWEventItem* FWModelId::m_item
private

Definition at line 56 of file FWModelId.h.

Referenced by item(), operator<(), select(), toggleSelect(), and unselect().