CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
jsoncollector::JsonMonPtr Class Reference

#include <JsonMonitorable.h>

Public Member Functions

JsonMonitorableget ()
 
 JsonMonPtr ()
 
 JsonMonPtr (JsonMonitorable *ptr)
 
JsonMonitorableoperator-> ()
 
void operator= (JsonMonitorable *ptr)
 
 ~JsonMonPtr ()
 

Private Attributes

JsonMonitorableptr_
 

Detailed Description

Definition at line 48 of file JsonMonitorable.h.

Constructor & Destructor Documentation

jsoncollector::JsonMonPtr::JsonMonPtr ( )
inline

Definition at line 50 of file JsonMonitorable.h.

50 : ptr_(nullptr) {}
JsonMonitorable * ptr_
jsoncollector::JsonMonPtr::JsonMonPtr ( JsonMonitorable ptr)
inline

Definition at line 51 of file JsonMonitorable.h.

51 : ptr_(ptr) {}
JsonMonitorable * ptr_
jsoncollector::JsonMonPtr::~JsonMonPtr ( )
inline

Definition at line 53 of file JsonMonitorable.h.

References ptr_.

53  {
54  if (ptr_)
55  delete ptr_;
56  ptr_ = nullptr;
57  }
JsonMonitorable * ptr_

Member Function Documentation

JsonMonitorable* jsoncollector::JsonMonPtr::get ( )
inline
JsonMonitorable* jsoncollector::JsonMonPtr::operator-> ( )
inline

Definition at line 58 of file JsonMonitorable.h.

References ptr_.

58 { return ptr_; }
JsonMonitorable * ptr_
void jsoncollector::JsonMonPtr::operator= ( JsonMonitorable ptr)
inline

Definition at line 52 of file JsonMonitorable.h.

References ptr_.

52 { ptr_ = ptr; }
JsonMonitorable * ptr_

Member Data Documentation

JsonMonitorable* jsoncollector::JsonMonPtr::ptr_
private

Definition at line 63 of file JsonMonitorable.h.