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) {}

◆ JsonMonPtr() [2/2]

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

Definition at line 51 of file JsonMonitorable.h.

51 : ptr_(ptr) {}

◆ ~JsonMonPtr()

jsoncollector::JsonMonPtr::~JsonMonPtr ( )
inline

Definition at line 53 of file JsonMonitorable.h.

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

References ptr_.

Member Function Documentation

◆ get()

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

◆ operator->()

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

Definition at line 58 of file JsonMonitorable.h.

58 { return ptr_; }

References ptr_.

◆ operator=()

void jsoncollector::JsonMonPtr::operator= ( JsonMonitorable ptr)
inline

Definition at line 52 of file JsonMonitorable.h.

52 { ptr_ = ptr; }

References 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().

jsoncollector::JsonMonPtr::ptr_
JsonMonitorable * ptr_
Definition: JsonMonitorable.h:63