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

◆ JsonMonPtr() [1/2]

jsoncollector::JsonMonPtr::JsonMonPtr ( )
inline

Definition at line 50 of file JsonMonitorable.h.

50 : ptr_(nullptr) {}
JsonMonitorable * ptr_

◆ JsonMonPtr() [2/2]

jsoncollector::JsonMonPtr::JsonMonPtr ( JsonMonitorable ptr)
inline

Definition at line 51 of file JsonMonitorable.h.

51 : ptr_(ptr) {}
JsonMonitorable * ptr_

◆ ~JsonMonPtr()

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

◆ get()

JsonMonitorable* jsoncollector::JsonMonPtr::get ( )
inline

◆ operator->()

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

Definition at line 58 of file JsonMonitorable.h.

References ptr_.

58 { return ptr_; }
JsonMonitorable * ptr_

◆ operator=()

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

◆ ptr_

JsonMonitorable* jsoncollector::JsonMonPtr::ptr_
private

Definition at line 63 of file JsonMonitorable.h.

Referenced by get(), operator->(), operator=(), and ~JsonMonPtr().