digikam
#include <dng_memory.h>
Inherited by dng_malloc_block.
Public Member Functions | |
virtual | ~dng_memory_block () |
void * | Buffer () |
const void * | Buffer () const |
char * | Buffer_char () |
const char * | Buffer_char () const |
int16 * | Buffer_int16 () |
const int16 * | Buffer_int16 () const |
int32 * | Buffer_int32 () |
const int32 * | Buffer_int32 () const |
real32 * | Buffer_real32 () |
const real32 * | Buffer_real32 () const |
real64 * | Buffer_real64 () |
const real64 * | Buffer_real64 () const |
uint16 * | Buffer_uint16 () |
const uint16 * | Buffer_uint16 () const |
uint32 * | Buffer_uint32 () |
const uint32 * | Buffer_uint32 () const |
uint8 * | Buffer_uint8 () |
const uint8 * | Buffer_uint8 () const |
uint32 | LogicalSize () const |
Protected Member Functions | |
dng_memory_block (uint32 logicalSize) | |
uint32 | PhysicalSize () |
void | SetBuffer (void *p) |
Detailed Description
Class to provide resource acquisition is instantiation discipline for image buffers and other larger memory allocations.
This class requires a dng_memory_allocator for allocation.
Definition at line 261 of file dng_memory.h.
Constructor & Destructor Documentation
|
inlineprotected |
Definition at line 272 of file dng_memory.h.
|
inlinevirtual |
Definition at line 290 of file dng_memory.h.
Member Function Documentation
|
inline |
Return pointer to allocated memory as a void *.
- Return values
-
void * valid for as many bytes as were allocated.
Definition at line 305 of file dng_memory.h.
|
inline |
Return pointer to allocated memory as a const void *.
- Return values
-
const void * valid for as many bytes as were allocated.
Definition at line 313 of file dng_memory.h.
|
inline |
Return pointer to allocated memory as a char *.
- Return values
-
char * valid for as many bytes as were allocated.
Definition at line 321 of file dng_memory.h.
|
inline |
Return pointer to allocated memory as a const char *.
- Return values
-
const char * valid for as many bytes as were allocated.
Definition at line 329 of file dng_memory.h.
|
inline |
Return pointer to allocated memory as a int16 *.
- Return values
-
int16 * valid for as many bytes as were allocated.
Definition at line 369 of file dng_memory.h.
Return pointer to allocated memory as a const int16 *.
- Return values
-
const int16 * valid for as many bytes as were allocated.
Definition at line 377 of file dng_memory.h.
|
inline |
Return pointer to allocated memory as a int32 *.
- Return values
-
int32 * valid for as many bytes as were allocated.
Definition at line 401 of file dng_memory.h.
Return pointer to allocated memory as a const int32 *.
- Return values
-
const int32 * valid for as many bytes as were allocated.
Definition at line 409 of file dng_memory.h.
|
inline |
Return pointer to allocated memory as a real32 *.
- Return values
-
real32 * valid for as many bytes as were allocated.
Definition at line 417 of file dng_memory.h.
Return pointer to allocated memory as a const real32 *.
- Return values
-
const real32 * valid for as many bytes as were allocated.
Definition at line 425 of file dng_memory.h.
|
inline |
Return pointer to allocated memory as a real64 *.
- Return values
-
real64 * valid for as many bytes as were allocated.
Definition at line 433 of file dng_memory.h.
Return pointer to allocated memory as a const real64 *.
- Return values
-
const real64 * valid for as many bytes as were allocated.
Definition at line 441 of file dng_memory.h.
|
inline |
Return pointer to allocated memory as a uint16 *.
- Return values
-
uint16 * valid for as many bytes as were allocated.
Definition at line 353 of file dng_memory.h.
Return pointer to allocated memory as a const uint16 *.
- Return values
-
const uint16 * valid for as many bytes as were allocated.
Definition at line 361 of file dng_memory.h.
|
inline |
Return pointer to allocated memory as a uint32 *.
- Return values
-
uint32 * valid for as many bytes as were allocated.
Definition at line 385 of file dng_memory.h.
Return pointer to allocated memory as a const uint32 *.
- Return values
-
const uint32 * valid for as many bytes as were allocated.
Definition at line 393 of file dng_memory.h.
|
inline |
Return pointer to allocated memory as a uint8 *.
- Return values
-
uint8 * valid for as many bytes as were allocated.
Definition at line 337 of file dng_memory.h.
Return pointer to allocated memory as a const uint8 *.
- Return values
-
const uint8 * valid for as many bytes as were allocated.
Definition at line 345 of file dng_memory.h.
|
inline |
Getter for available size, in bytes, of memory block.
- Return values
-
size in bytes of available memory in memory block.
Definition at line 297 of file dng_memory.h.
|
inlineprotected |
Definition at line 278 of file dng_memory.h.
|
inlineprotected |
Definition at line 283 of file dng_memory.h.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2019 The KDE developers.
Generated on Wed Dec 11 2019 07:35:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.