HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OP_DataBlock Class Reference

#include <OP_DataBlock.h>

+ Inheritance diagram for OP_DataBlock:

Public Member Functions

 OP_DataBlock (const UT_StringHolder &type)
 
 ~OP_DataBlock ()
 
const UT_StringHoldertype () const
 
const char * data () const
 
exint length () const
 
exint getMemoryUsage () const
 
const voidnativeData ()
 
void adoptData (const char *data, exint length)
 
void adoptNativeData (const void *nativedata)
 
bool saveData (std::ostream &os) const
 
bool loadData (UT_IStream &is)
 
- Public Member Functions inherited from UT_IntrusiveRefCounter< OP_DataBlock >
SYS_FORCE_INLINE UT_IntrusiveRefCounter ()
 Default constructor: Sets counter to 0. More...
 
SYS_FORCE_INLINE UT_IntrusiveRefCounter (const UT_IntrusiveRefCounter &)
 Copy constructor: Sets counter to 0. More...
 
UT_IntrusiveRefCounteroperator= (const UT_IntrusiveRefCounter &)
 Assignment operator: Does not modify counter. More...
 
SYS_FORCE_INLINE uint32 use_count () const
 Return current counter. More...
 

Additional Inherited Members

- Protected Member Functions inherited from UT_IntrusiveRefCounter< OP_DataBlock >
SYS_FORCE_INLINE ~UT_IntrusiveRefCounter ()
 Destructor: Only derived classes can destruct this. More...
 

Detailed Description

Definition at line 40 of file OP_DataBlock.h.

Constructor & Destructor Documentation

OP_DataBlock::OP_DataBlock ( const UT_StringHolder type)
OP_DataBlock::~OP_DataBlock ( )

Member Function Documentation

void OP_DataBlock::adoptData ( const char *  data,
exint  length 
)
void OP_DataBlock::adoptNativeData ( const void nativedata)
const char* OP_DataBlock::data ( ) const
inline

Definition at line 48 of file OP_DataBlock.h.

exint OP_DataBlock::getMemoryUsage ( ) const
exint OP_DataBlock::length ( void  ) const
inline

Definition at line 50 of file OP_DataBlock.h.

bool OP_DataBlock::loadData ( UT_IStream is)
const void* OP_DataBlock::nativeData ( )
bool OP_DataBlock::saveData ( std::ostream &  os) const
const UT_StringHolder& OP_DataBlock::type ( ) const
inline

Definition at line 46 of file OP_DataBlock.h.


The documentation for this class was generated from the following file: