wxWidgets: wxClientDataContainer Class Reference

| Version: 3.0.4

Public Member Functions | List of all members
wxClientDataContainer Class Reference
Class List by Category » Containers

`#include </usr/src/ports/wxWidgets3.0/wxWidgets3.0-3.0.4-1.x86_64/src/wxWidgets-3.0.4/interface/wx/clntdata.h>`

Inheritance diagram for wxClientDataContainer:
[legend]

## Detailed Description

This class is a mixin that provides storage and management of "client data".

This data can either be of type void - in which case the data container does not take care of freeing the data again or it is of type wxClientData or its derivatives. In that case the container will free the memory itself later. Note that you must not assign both void data and data derived from the wxClientData class to a container.

Note
  This functionality is currently duplicated in wxEvtHandler in order to avoid having more than one vtable in that class hierarchy.

##

Library: wxBase

<>< =''>:</>&;&;< =''>\ </></>

See also
  wxEvtHandler, wxClientData

## Public Member Functions
| wxClientDataContainer ()
| Default constructor. More...
virtual | ~wxClientDataContainer ()
| Destructor. More...
void * | GetClientData () const
| Get the untyped client data. More...
wxClientData * | GetClientObject () const
| Get a pointer to the client data object. More...
void | SetClientData (void *data)
| Set the untyped client data. More...
void | SetClientObject (wxClientData *data)
| Set the client data object. More...

## Constructor & Destructor Documentation

## ◆ wxClientDataContainer()

wxClientDataContainer::wxClientDataContainer | ( |  | ) |

Default constructor.

## ◆ ~wxClientDataContainer()

virtual wxClientDataContainer::~wxClientDataContainer | ( |  | ) |
| virtual

Destructor.

## Member Function Documentation

## ◆ GetClientData()

void* wxClientDataContainer::GetClientData | ( |  | ) | const

Get the untyped client data.

## ◆ GetClientObject()

wxClientData* wxClientDataContainer::GetClientObject | ( |  | ) | const

Get a pointer to the client data object.

## ◆ SetClientData()

void wxClientDataContainer::SetClientData | ( | void * | data | ) |

Set the untyped client data.

## ◆ SetClientObject()

void wxClientDataContainer::SetClientObject | ( | wxClientData * | data | ) |

Set the client data object.

Any previous object will be deleted.