HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 () noexcept
 Default constructor: Sets counter to 0. More...
 
SYS_FORCE_INLINE UT_IntrusiveRefCounter (const UT_IntrusiveRefCounter &) noexcept
 Copy constructor: Sets counter to 0. More...
 
UT_IntrusiveRefCounteroperator= (const UT_IntrusiveRefCounter &) noexcept
 Assignment operator: Does not modify counter. More...
 
SYS_FORCE_INLINE uint32 use_count () const noexcept
 Return current counter. More...
 
SYS_FORCE_INLINE bool conditionalAddRef () noexcept
 

Static Public Member Functions

static const
OP_DataBlockInterpreter
getInterpreter (const UT_StringRef &blocktype)
 

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 51 of file OP_DataBlock.h.

static const OP_DataBlockInterpreter* OP_DataBlock::getInterpreter ( const UT_StringRef blocktype)
static
exint OP_DataBlock::getMemoryUsage ( ) const
exint OP_DataBlock::length ( void  ) const
inline

Definition at line 53 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 49 of file OP_DataBlock.h.


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