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

# ost\_MapObject(3)

The MapObject is a base class which can be used to make a derived class operate on a MapTable.

## NAME

ost::MapObject - The **MapObject** is a base class which can be used to make a derived class operate on a **MapTable**.

## SYNOPSIS

`#include <object.h>`

### Public Member Functions

void **detach** (void)\
 Remove the object from it's current table.  **MapObject** (const char \*id)\
 Save id, mark as not using any table.

### Protected Attributes

**MapObject** \* **nextObject**\
 const char \* **idObject**\
 **MapTable** \* **table**\

### Friends

class **MapTable**\
 class **MapIndex**\

## Detailed Description

The **MapObject** is a base class which can be used to make a derived class operate on a **MapTable**.

Derived classes may override new and delete operators to use managed free list from a **MapTable**.

**Author**

David Sugar dyfet@gnutelephony.org

Mappable object.

## Constructor & Destructor Documentation

### ost::MapObject::MapObject (const char \* id)

Save id, mark as not using any table.

**Parameters**

*id* string for this object.

## Member Function Documentation

### void ost::MapObject::detach (void)

Remove the object from it's current table.

## Friends And Related Function Documentation

### friend class MapIndex` [friend]`

### friend class MapTable` [friend]`

## Member Data Documentation

### const char\* ost::MapObject::idObject` [protected]`

### MapObject\* ost::MapObject::nextObject` [protected]`

### MapTable\* ost::MapObject::table` [protected]`

## Author

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