Main MRPT website > C++ reference for MRPT 1.5.6
Functions

Detailed Description

This namespace provides a OS-independent interface to low-level functions.

Most of these functions are converted into calls to standard functions, unless we are into Visual Studio 2005 (or newer). In that case the secure version of the standard library functions (prefix "_s") are used instead.

Functions

void BASE_IMPEXPaligned_malloc (size_t bytes, size_t alignment)
 Returns an aligned memory block. More...
 
voidaligned_calloc (size_t bytes, size_t alignment)
 Identical to aligned_malloc, but it zeroes the reserved memory block. More...
 
void BASE_IMPEXPaligned_realloc (void *old_ptr, size_t bytes, size_t alignment)
 Frees a memory block reserved by aligned_malloc. More...
 
void BASE_IMPEXP aligned_free (void *p)
 Frees a memory block reserved by aligned_malloc. More...
 
template<typename _Tp >
_Tp * align_ptr (_Tp *ptr, int n=(int) sizeof(_Tp))
 Returns a pointer a bit forward in memory so it's aligned for the given boundary size. More...
 
int BASE_IMPEXP sprintf (char *buf, size_t bufSize, const char *format,...) MRPT_NO_THROWS MRPT_printf_format_check(3
 An OS-independent version of sprintf (Notice the bufSize param, which may be ignored in some compilers) More...
 
int BASE_IMPEXP int BASE_IMPEXP vsprintf (char *buf, size_t bufSize, const char *format, va_list args) MRPT_NO_THROWS
 An OS-independent version of vsprintf (Notice the bufSize param, which may be ignored in some compilers) More...
 
int BASE_IMPEXP vsnprintf (char *buf, size_t bufSize, const char *format, va_list args) MRPT_NO_THROWS
 An OS-independent version of vsnprintf (Notice the bufSize param, which may be ignored in some compilers) More...
 
FILE BASE_IMPEXPfopen (const char *fileName, const char *mode) MRPT_NO_THROWS
 An OS-independent version of fopen. More...
 
FILE BASE_IMPEXPfopen (const std::string &fileName, const char *mode) MRPT_NO_THROWS
 An OS-independent version of fopen (std::string version) More...
 
int BASE_IMPEXP fprintf (FILE *fil, const char *format,...) MRPT_NO_THROWS MRPT_printf_format_check(2
 An OS-independent version of fprintf. More...
 
int BASE_IMPEXP void BASE_IMPEXP fclose (FILE *f)
 An OS-independent version of fclose. More...
 
char BASE_IMPEXPstrcat (char *dest, size_t destSize, const char *source) MRPT_NO_THROWS
 An OS-independent version of strcat. More...
 
char BASE_IMPEXPstrcpy (char *dest, size_t destSize, const char *source) MRPT_NO_THROWS
 An OS-independent version of strcpy. More...
 
int BASE_IMPEXP _strcmp (const char *str1, const char *str2) MRPT_NO_THROWS
 An OS-independent version of strcmp. More...
 
int BASE_IMPEXP _strcmpi (const char *str1, const char *str2) MRPT_NO_THROWS
 An OS-independent version of strcmpi. More...
 
int BASE_IMPEXP _strncmp (const char *str, const char *subStr, size_t count) MRPT_NO_THROWS
 An OS-independent version of strncmp. More...
 
int BASE_IMPEXP _strnicmp (const char *str, const char *subStr, size_t count) MRPT_NO_THROWS
 An OS-independent version of strnicmp. More...
 
int64_t BASE_IMPEXP _strtoll (const char *nptr, char **endptr, int base)
 An OS-independent version of strtoll. More...
 
uint64_t BASE_IMPEXP _strtoull (const char *nptr, char **endptr, int base)
 An OS-independent version of strtoull. More...
 
time_t BASE_IMPEXP timegm (struct tm *tm)
 An OS-independent version of timegm (which is not present in all compilers): converts a time structure into an UTM time_t. More...
 
void BASE_IMPEXP memcpy (void *dest, size_t destSize, const void *src, size_t copyCount) MRPT_NO_THROWS
 An OS and compiler independent version of "memcpy". More...
 
int BASE_IMPEXP getch () MRPT_NO_THROWS
 An OS-independent version of getch, which waits until a key is pushed. More...
 
bool BASE_IMPEXP kbhit () MRPT_NO_THROWS
 An OS-independent version of kbhit, which returns true if a key has been pushed. More...
 



Page generated by Doxygen 1.8.6 for MRPT 1.5.6 Git: 4c65e84 Tue Apr 24 08:18:17 2018 +0200 at mar abr 24 08:26:17 CEST 2018