CMS 3D CMS Logo

IgUIDRep Class Reference

#include <Iguana/Models/interface/IgUIDRep.h>

Inheritance diagram for IgUIDRep:

IgRep

List of all members.

Public Types

typedef int IDType

Public Member Functions

virtual IgRepContextcontext (void) const
IDType id (void)
 IgUIDRep (IgUIDModel *model)
virtual IgModelmodel (void) const
std::string stringId (void)
 ~IgUIDRep (void)

Protected Member Functions

void context (IgRepContext *)

Private Member Functions

 IgUIDRep (const IgUIDRep &rep)

Private Attributes

IgRepContextm_context
IgUIDModelm_model


Detailed Description

Definition at line 22 of file IgUIDRep.h.


Member Typedef Documentation

typedef int IgUIDRep::IDType

Definition at line 25 of file IgUIDRep.h.


Constructor & Destructor Documentation

IgUIDRep::IgUIDRep ( IgUIDModel model  ) 

Definition at line 20 of file IgUIDRep.cc.

References IgUIDModel::add().

00021     : m_model (model),
00022       m_context (0)
00023 {
00024     model->add (this);    
00025 }

IgUIDRep::~IgUIDRep ( void   ) 

Definition at line 27 of file IgUIDRep.cc.

References ASSERT, IgRepContext::erase(), m_context, and IgRepContext::rep().

00028 {
00029     if (! m_context)
00030         return;
00031     
00032     if (m_context->rep ())
00033     {
00034         ASSERT (m_context->rep () == this);
00035         m_context->erase (false);
00036         delete m_context;       
00037     }    
00038 }

IgUIDRep::IgUIDRep ( const IgUIDRep rep  )  [inline, private]

Definition at line 42 of file IgUIDRep.h.

00042 : IgRep () {};


Member Function Documentation

void IgUIDRep::context ( IgRepContext context  )  [protected, virtual]

Implements IgRep.

Definition at line 60 of file IgUIDRep.cc.

References ASSERT, and m_context.

00061 {
00062     ASSERT (context);    
00063     ASSERT (! m_context);
00064     m_context = context;    
00065 }

IgRepContext * IgUIDRep::context ( void   )  const [virtual]

Implements IgRep.

Definition at line 53 of file IgUIDRep.cc.

References ASSERT, and m_context.

Referenced by IgWebTreeService::browse(), VisWebRootService::browse(), and IgWebTreeService::twigMenu().

00054 {
00055     ASSERT (m_context);    
00056     return m_context;    
00057 }

IgUIDRep::IDType IgUIDRep::id ( void   ) 

Definition at line 41 of file IgUIDRep.cc.

Referenced by IgUIDModel::add(), IgWebTreeService::getRepID(), and MMM_DEFUN_FUNC().

00042 {
00043     return (IDType) (this);
00044 }

IgModel * IgUIDRep::model ( void   )  const [virtual]

Implements IgRep.

Definition at line 68 of file IgUIDRep.cc.

References m_model.

00069 {
00070     return m_model;    
00071 }

std::string IgUIDRep::stringId ( void   ) 

Definition at line 47 of file IgUIDRep.cc.

00048 {
00049     return std::string ((QString::number ((IDType) this)).ascii ());
00050 }


Member Data Documentation

IgRepContext* IgUIDRep::m_context [private]

Definition at line 45 of file IgUIDRep.h.

Referenced by context(), and ~IgUIDRep().

IgUIDModel* IgUIDRep::m_model [private]

Definition at line 42 of file IgUIDRep.h.

Referenced by model().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:25:48 2009 for CMSSW by  doxygen 1.5.4