![]() |
![]() |
![]() |
HOME | DOWNLOAD | DOCS | DEVELOPMENT | LICENSE | CREDITS |
Implicit data sharing class. More...
#include <iAbstractImage.h>
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. | |
iSharedData * | unalias () |
Unaliases the data. | |
Public Attributes | |
Iubyte * | data |
Image data. | |
int | len |
Length of data. |
Implicit data sharing class.
Default constructor.
Sets data to NULL.
imagen::iSharedData::iSharedData | ( | const iSharedData & | d | ) |
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.
d | : Pointer to a data block. |
length | : Size of the data in bytes. |
imagen::iSharedData::iSharedData | ( | int | length | ) |
Allocates length amount of data.
Deletes the data associated with this object.
void imagen::iSharedData::attach | ( | ) |
Attaches a user.
void imagen::iSharedData::detach | ( | ) |
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.
Image data.
Length of data.
![]() |
Generated by
![]() |