InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
DataWrapper< DataT > Class Template Reference

#include <DataWrapper.h>

Public Member Functions

 DataWrapper (VOS_Object *block, const DataT *list)
 
 DataWrapper (const DataWrapper< DataT > &copy)
 
DataWrapper< DataT > & operator= (const DataWrapper< DataT > &copy)
 
 operator const DataT * () const
 
const DataT * get () const
 

Detailed Description

template<class DataT>
class DataWrapper< DataT >

The DataWrapper template object is used to hold data contained in the text system without making a copy. It has the data pointer, and also the ref-counted object that owns the data.

See Also
VOS_Object
VOSDiskPage

Member Function Documentation

template<class DataT>
const DataT* DataWrapper< DataT >::get () const
inline

Get the pointer to the data. It is const because you cannot change the data here, it is the model's data.

Returns
a pointer to the data.
template<class DataT>
DataWrapper< DataT >::operator const DataT * () const
inline

Get the pointer to the data. It is const because you cannot change the data here, it is the model's data.

Returns
a pointer to the data.