Webmaster  |  Imprint 
C++ Server Pages
Main  |  License  |  Documentation  |  Download 

BlobImpl Class Reference

Default Blob value implementation. More...

#include <tntdb/impl/blob.h>

Inheritance diagram for BlobImpl:

IBlob

List of all members.

Public Member Functions

virtual void assign (const char *data, std::size_t len)
 Assign data of a given length.
virtual char * reserve (std::size_t len, bool shrink)
 Makes sure, the buffer has at least len bytes.
virtual IBlobcreate () const
 Create a value implementation.
virtual void destroy ()
 Destroy a value implementation.

Static Public Member Functions

static BlobImplemptyInstance ()

Protected Member Functions

 BlobImpl (int)


Detailed Description

This implementation uses new/delete to create and destroy the shared objects and new/delete to allocate memory for the blob-data.

Member Function Documentation

virtual void assign ( const char *  data,
std::size_t  len 
) [virtual]

The len bytes of the data pointed to by data are copied to this blob.

Implements IBlob.

virtual IBlob* create (  )  const [virtual]

Returns a pointer to a implementation class derived from IBlob. IBlob::destroy must be implemented accordingly to destroy this instance.

Implements IBlob.

virtual void destroy (  )  [virtual]

Destroys an instance previously created by the IBlob::create.

Implements IBlob.

Copyright © 2008 The Tntnet Development Team
Tntnet 1.6