![]() |
![]() |
#include <Iguana/Models/interface/IgUIDRep.h>
Public Types | |
typedef int | IDType |
Public Member Functions | |
virtual IgRepContext * | context (void) const |
IDType | id (void) |
IgUIDRep (IgUIDModel *model) | |
virtual IgModel * | model (void) const |
std::string | stringId (void) |
~IgUIDRep (void) | |
Protected Member Functions | |
void | context (IgRepContext *) |
Private Member Functions | |
IgUIDRep (const IgUIDRep &rep) | |
Private Attributes | |
IgRepContext * | m_context |
IgUIDModel * | m_model |
Definition at line 22 of file IgUIDRep.h.
typedef int IgUIDRep::IDType |
Definition at line 25 of file IgUIDRep.h.
IgUIDRep::IgUIDRep | ( | IgUIDModel * | model | ) |
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] |
void IgUIDRep::context | ( | IgRepContext * | context | ) | [protected, virtual] |
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().
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 }
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 }
IgRepContext* IgUIDRep::m_context [private] |
IgUIDModel* IgUIDRep::m_model [private] |