---
name: "ost_Pointer"
section: "3cc"
platform: "linux"
package: "libcommoncpp2-dev"
version: "1.0.13-5"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/ost_Pointer/3cc"
---

# ost\_Pointer(3cc)

## NAME

ost::Pointer -

## SYNOPSIS

`#include <pointer.h>`

### Public Methods

**Pointer** (T \*ptr=NULL)\
 **Pointer** (const Pointer\< T \> &ref)\
 virtual **~Pointer** ()\
 Pointer & **operator=** (const Pointer\< T \> &ref)\
 T & **operator \*** () const\
 T \* **getObject** () const\
 T \* **operator-\>** () const\
 bool **operator!** () const\
 int **operator++** () const\
 int **operator--** () const\

### Protected Methods

void **ptrDetach** (void)\

### Protected Attributes

unsigned \* **ptrCount**\
 T \* **ptrObject**\

### template\<class T\> class ost::Pointer\< T \>

## CONSTRUCTOR & DESTRUCTOR DOCUMENTATION

### template\<class T\> ost::Pointer\< T \>::Pointer (T \* ptr = NULL)` [inline, explicit]`

### template\<class T\> ost::Pointer\< T \>::Pointer (const Pointer\< T \> & ref)` [inline]`

### template\<class T\> virtual ost::Pointer\< T \>::~Pointer ()` [inline, virtual]`

## MEMBER FUNCTION DOCUMENTATION

### template\<class T\> T\* ost::Pointer\< T \>::getObject () const` [inline]`

### template\<class T\> T& ost::Pointer\< T \>::operator \* () const` [inline]`

### template\<class T\> bool ost::Pointer\< T \>::operator! (void) const` [inline]`

### template\<class T\> int ost::Pointer\< T \>::operator++ (void) const` [inline]`

### template\<class T\> int ost::Pointer\< T \>::operator-- (void) const` [inline]`

### template\<class T\> T\* ost::Pointer\< T \>::operator-\> () const` [inline]`

### template\<class T\> Pointer& ost::Pointer\< T \>::operator= (const Pointer\< T \> & ref)` [inline]`

### template\<class T\> void ost::Pointer\< T \>::ptrDetach (void)` [inline, protected]`

## MEMBER DATA DOCUMENTATION

### template\<class T\> unsigned\* ost::Pointer\< T \>::ptrCount` [protected]`

### template\<class T\> T\* ost::Pointer\< T \>::ptrObject` [protected]`

## AUTHOR

Generated automatically by Doxygen for CommonC++ from the source code.
