CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
FWItemSingleAccessor Class Reference

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

Inheritance diagram for FWItemSingleAccessor:
FWItemAccessorBase BeamSpotSingleAccessor

Public Member Functions

const void * data () const
 
 FWItemSingleAccessor (const TClass *)
 
bool isCollection () const
 
const void * modelData (int iIndex) const
 
const TClass * modelType () const
 
virtual void reset ()
 
void setData (const edm::ObjectWithDict &)
 override if id of an object should be different than the index More...
 
unsigned int size () const
 
const TClass * type () const
 
virtual ~FWItemSingleAccessor ()
 
- Public Member Functions inherited from FWItemAccessorBase
 FWItemAccessorBase ()
 
virtual ~FWItemAccessorBase ()
 

Private Member Functions

 FWItemSingleAccessor (const FWItemSingleAccessor &)
 
const FWItemSingleAccessoroperator= (const FWItemSingleAccessor &)
 

Private Attributes

const void * m_data
 
const TClass * m_type
 

Detailed Description

Description: <one line="" class="" summary>="">

Usage: <usage>

Definition at line 29 of file FWItemSingleAccessor.h.

Constructor & Destructor Documentation

FWItemSingleAccessor::FWItemSingleAccessor ( const TClass *  iClass)

Definition at line 34 of file FWItemSingleAccessor.cc.

34  :
35  m_type(iClass), m_data(0)
36 {
37 }
FWItemSingleAccessor::~FWItemSingleAccessor ( )
virtual

Definition at line 44 of file FWItemSingleAccessor.cc.

45 {
46 }
FWItemSingleAccessor::FWItemSingleAccessor ( const FWItemSingleAccessor )
private

Member Function Documentation

const void * FWItemSingleAccessor::data ( ) const
virtual

Implements FWItemAccessorBase.

Definition at line 95 of file FWItemSingleAccessor.cc.

References m_data.

Referenced by cuy.FindIssue::__init__().

96 {
97  return m_data;
98 }
bool FWItemSingleAccessor::isCollection ( ) const
virtual

Implements FWItemAccessorBase.

Definition at line 119 of file FWItemSingleAccessor.cc.

120 {
121  return false;
122 }
const void * FWItemSingleAccessor::modelData ( int  iIndex) const
virtual

Implements FWItemAccessorBase.

Definition at line 86 of file FWItemSingleAccessor.cc.

References m_data.

87 {
88  if(0==iIndex) {
89  return m_data;
90  }
91  return 0;
92 }
const TClass * FWItemSingleAccessor::modelType ( ) const
virtual

Implements FWItemAccessorBase.

Definition at line 107 of file FWItemSingleAccessor.cc.

References m_type.

108 {
109  return m_type;
110 }
const FWItemSingleAccessor& FWItemSingleAccessor::operator= ( const FWItemSingleAccessor )
private
void FWItemSingleAccessor::reset ( void  )
virtual

Implements FWItemAccessorBase.

Definition at line 77 of file FWItemSingleAccessor.cc.

References m_data.

Referenced by setData().

78 {
79  m_data = 0;
80 }
void FWItemSingleAccessor::setData ( const edm::ObjectWithDict )
virtual

override if id of an object should be different than the index

Implements FWItemAccessorBase.

Definition at line 64 of file FWItemSingleAccessor.cc.

References edm::ObjectWithDict::address(), m_data, and reset().

65 {
66  if (product.address() == 0)
67  {
68  reset();
69  return;
70  }
71 
72  m_data = product.address();
73  assert(0!=m_data);
74 }
unsigned int FWItemSingleAccessor::size ( void  ) const
virtual

Implements FWItemAccessorBase.

Definition at line 101 of file FWItemSingleAccessor.cc.

References m_data.

102 {
103  return 0 == m_data ? 0 : 1;
104 }
const TClass * FWItemSingleAccessor::type ( ) const
virtual

Member Data Documentation

const void* FWItemSingleAccessor::m_data
private

Definition at line 55 of file FWItemSingleAccessor.h.

Referenced by data(), modelData(), reset(), setData(), and size().

const TClass* FWItemSingleAccessor::m_type
private

Definition at line 54 of file FWItemSingleAccessor.h.

Referenced by modelType(), and type().