gatb.core-API-1.4.2
MemoryOperationsCommon Class Reference

Implementation of IMemoryOperations interface using standard system functions. More...

#include <MemoryCommon.hpp>

Inheritance diagram for MemoryOperationsCommon:
Inheritance graph

Public Member Functions

void * memset (void *s, int c, size_t n)
 
void * memcpy (void *dest, const void *src, size_t n)
 
int memcmp (const void *s1, const void *s2, size_t n)
 
- Public Member Functions inherited from IMemoryOperations
virtual ~IMemoryOperations ()
 

Static Public Member Functions

static IMemoryOperationssingleton ()
 

Detailed Description

Implementation of IMemoryOperations interface using standard system functions.

This implementation provides a few methods common to all operating systems. It uses functions from string.h

Member Function Documentation

int memcmp ( const void *  s1,
const void *  s2,
size_t  n 
)
inlinevirtual

Same as memcpy from <string.h>

Implements IMemoryOperations.

void* memcpy ( void *  dest,
const void *  src,
size_t  n 
)
inlinevirtual

Same as memcpy from <string.h>

Implements IMemoryOperations.

void* memset ( void *  s,
int  c,
size_t  n 
)
inlinevirtual

Same as memset from <string.h>

Implements IMemoryOperations.

static IMemoryOperations& singleton ( )
inlinestatic

Singleton.


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