---
name: "ost_Assoc"
section: "3"
platform: "linux"
package: "libcommoncpp2-doc"
version: "1.8.1-10"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/ost_Assoc"
---

# ost\_Assoc(3)

This class is used to associate (object) pointers with named strings.

## NAME

ost::Assoc - This class is used to associate (object) pointers with named strings.

## SYNOPSIS

`#include <misc.h>`

### Public Member Functions

void \* **getPointer** (const char \*id) const\
 void **setPointer** (const char \*id, void \*data)\

### Protected Member Functions

**Assoc** ()\
 virtual **~Assoc** ()\
 void **clear** (void)\
 virtual void \* **getMemory** (size\_t size)=0\

## Detailed Description

This class is used to associate (object) pointers with named strings.

A virtual is used to allocate memory which can be overriden in the derived class.

**Author**

David Sugar dyfet@ostel.com

associate names with pointers.

## Constructor & Destructor Documentation

### ost::Assoc::Assoc ()` [protected]`

### virtual ost::Assoc::~Assoc ()` [protected]`, ` [virtual]`

## Member Function Documentation

### void ost::Assoc::clear (void)` [protected]`

### virtual void\* ost::Assoc::getMemory (size\_t size)` [protected]`, ` [pure virtual]`

### void\* ost::Assoc::getPointer (const char \* id) const

### void ost::Assoc::setPointer (const char \* id, void \* data)

## Author

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