• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • graphics API Reference
  • KDE Home
  • Contact Us
 

digikam

Public Member Functions | Protected Member Functions | List of all members
dng_memory_block Class Reference

#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

dng_memory_block::dng_memory_block ( uint32  logicalSize)
inlineprotected

Definition at line 272 of file dng_memory.h.

virtual dng_memory_block::~dng_memory_block ( )
inlinevirtual

Definition at line 290 of file dng_memory.h.

Member Function Documentation

void* dng_memory_block::Buffer ( )
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.

const void* dng_memory_block::Buffer ( ) const
inline

Return pointer to allocated memory as a const void *.

Return values
constvoid * valid for as many bytes as were allocated.

Definition at line 313 of file dng_memory.h.

char* dng_memory_block::Buffer_char ( )
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.

const char* dng_memory_block::Buffer_char ( ) const
inline

Return pointer to allocated memory as a const char *.

Return values
constchar * valid for as many bytes as were allocated.

Definition at line 329 of file dng_memory.h.

int16* dng_memory_block::Buffer_int16 ( )
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.

const int16* dng_memory_block::Buffer_int16 ( ) const
inline

Return pointer to allocated memory as a const int16 *.

Return values
constint16 * valid for as many bytes as were allocated.

Definition at line 377 of file dng_memory.h.

int32* dng_memory_block::Buffer_int32 ( )
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.

const int32* dng_memory_block::Buffer_int32 ( ) const
inline

Return pointer to allocated memory as a const int32 *.

Return values
constint32 * valid for as many bytes as were allocated.

Definition at line 409 of file dng_memory.h.

real32* dng_memory_block::Buffer_real32 ( )
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.

const real32* dng_memory_block::Buffer_real32 ( ) const
inline

Return pointer to allocated memory as a const real32 *.

Return values
constreal32 * valid for as many bytes as were allocated.

Definition at line 425 of file dng_memory.h.

real64* dng_memory_block::Buffer_real64 ( )
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.

const real64* dng_memory_block::Buffer_real64 ( ) const
inline

Return pointer to allocated memory as a const real64 *.

Return values
constreal64 * valid for as many bytes as were allocated.

Definition at line 441 of file dng_memory.h.

uint16* dng_memory_block::Buffer_uint16 ( )
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.

const uint16* dng_memory_block::Buffer_uint16 ( ) const
inline

Return pointer to allocated memory as a const uint16 *.

Return values
constuint16 * valid for as many bytes as were allocated.

Definition at line 361 of file dng_memory.h.

uint32* dng_memory_block::Buffer_uint32 ( )
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.

const uint32* dng_memory_block::Buffer_uint32 ( ) const
inline

Return pointer to allocated memory as a const uint32 *.

Return values
constuint32 * valid for as many bytes as were allocated.

Definition at line 393 of file dng_memory.h.

uint8* dng_memory_block::Buffer_uint8 ( )
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.

const uint8* dng_memory_block::Buffer_uint8 ( ) const
inline

Return pointer to allocated memory as a const uint8 *.

Return values
constuint8 * valid for as many bytes as were allocated.

Definition at line 345 of file dng_memory.h.

uint32 dng_memory_block::LogicalSize ( ) const
inline

Getter for available size, in bytes, of memory block.

Return values
sizein bytes of available memory in memory block.

Definition at line 297 of file dng_memory.h.

uint32 dng_memory_block::PhysicalSize ( )
inlineprotected

Definition at line 278 of file dng_memory.h.

void dng_memory_block::SetBuffer ( void *  p)
inlineprotected

Definition at line 283 of file dng_memory.h.


The documentation for this class was generated from the following file:
  • dng_memory.h
This file is part of the KDE documentation.
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.

digikam

Skip menu "digikam"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages
-->

graphics API Reference

Skip menu "graphics API Reference"
  • digikam
  • KDiagram
  •     KChart
  •     KGantt
  • KPhotoAlbum
  •   AndroidRemoteControl
  • Krita
  •   libs
  •     KritaBasicFlakes
  •     brush
  •     KritaUndo2
  •     KritaFlake
  •     image
  •     KritaPlugin
  •     Krita
  •     KritaOdf
  •     KritaPigment
  •     KritaStore
  •     ui
  •     KritaWidgets
  •     KritaWidgetUtils
  •   plugins
  •     Assitants
  •     Extensions
  •     Filters
  •         KritaText
  •         KritaTextLayout
  •     Generators
  •     Formats
  •             src
  •     PaintOps
  •       libpaintop
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal