Public Member Functions | Public Attributes
imagen::iSharedData Class Reference

Implicit data sharing class. More...

#include <iAbstractImage.h>

List of all members.

Public Member Functions

 iSharedData ()
 Default constructor.
 iSharedData (const iSharedData &d)
 Copy constructor.
 iSharedData (Iubyte *d, int length)
 Use an existing memory buffer.
 iSharedData (int length)
 Allocates length amount of data.
 ~iSharedData ()
 Deletes the data associated with this object.
void attach ()
 Attaches a user.
void detach ()
 Detaches a user.
iSharedDataunalias ()
 Unaliases the data.

Public Attributes

Iubytedata
 Image data.
int len
 Length of data.

Detailed Description

Implicit data sharing class.


Constructor & Destructor Documentation

Default constructor.

Sets data to NULL.

Copy constructor.

Allocates new data and clones the given object.

imagen::iSharedData::iSharedData ( Iubyte d,
int  length 
)

Use an existing memory buffer.

The data passed to this constructor will not be deleted at destruction.

Parameters:
d: Pointer to a data block.
length: Size of the data in bytes.

Allocates length amount of data.

Deletes the data associated with this object.


Member Function Documentation

Attaches a user.

Detaches a user.

If there are no more users of this object, it will delete itself.

Unaliases the data.

Returns this object if there is only one user, else returns a new copy.


Member Data Documentation

Image data.

Length of data.


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