Yate: RefPointerBase Class Reference

Yate

Protected Member Functions | Protected Attributes | List of all members
RefPointerBase Class Reference

Internal helper class. More...

`#include <yateclass.h>`

Inheritance diagram for RefPointerBase:

## Protected Member Functions
| RefPointerBase ()
void | assign (RefObject *oldptr, RefObject *newptr, void *pointer)

## Protected Attributes
void * | m_pointer

## Detailed Description

Internal helper class.

Internal helper class providing a non-inline method to RefPointer. Please don't use this class directly, use RefPointer instead.

## Constructor & Destructor Documentation

## ◆ RefPointerBase()

RefPointerBase | ( |  | ) |
| inlineprotected

Default constructor, initialize to null pointer

References m_pointer.

Referenced by RefPointer< Obj >::RefPointer().

## Member Function Documentation

## ◆ assign()

void assign | ( | RefObject * | oldptr,
|  | RefObject * | newptr,
|  | void * | pointer )
| protected

Set a new stored pointer

Parameters

  oldptr | Pointer to the RefObject of the old stored object
  newptr | Pointer to the RefObject of the new stored object
  pointer | A void pointer to the derived class

Referenced by RefPointer< Obj >::assign().

## Member Data Documentation

## ◆ m_pointer

void* m_pointer
| protected

The untyped stored pointer that should be casted to a RefObject derived class

Referenced by RefPointer< Obj >::pointer(), and RefPointerBase().

The documentation for this class was generated from the following file:

- yateclass.h