pcl_macros.h File Reference

#include <pcl/pcl_config.h>
#include <boost/cstdint.hpp>
#include <cstdlib>
#include <iostream>
#include <stdarg.h>
#include <stdio.h>
#include <math.h>
Include dependency graph for pcl_macros.h:

Go to the source code of this file.

Namespaces

namespace  pcl

Defines

#define _USE_MATH_DEFINES
#define pcl_isnan(x)   isnan(x)
#define pcl_isfinite(x)   isfinite(x)
#define pcl_isinf(x)   isinf(x)
#define DEG2RAD(x)   ((x)*0.017453293)
#define RAD2DEG(x)   ((x)*57.29578)
#define pcl_lrint(x)   (static_cast<long int>(pcl_round(x)))
#define pcl_lrintf(x)   (static_cast<long int>(pcl_round(x)))
#define pcl_sleep(x)   sleep(x)
#define PVAR(s)   #s << " = " << (s) << std::flush
#define PVARN(s)   #s << " = " << (s) << "\n"
#define PVARC(s)   #s << " = " << (s) << ", " << std::flush
#define PVARS(s)   #s << " = " << (s) << " " << std::flush
#define PVARA(s)   #s << " = " << RAD2DEG(s) << "deg" << std::flush
#define PVARAN(s)   #s << " = " << RAD2DEG(s) << "deg\n"
#define PVARAC(s)   #s << " = " << RAD2DEG(s) << "deg, " << std::flush
#define PVARAS(s)   #s << " = " << RAD2DEG(s) << "deg " << std::flush
#define FIXED(s)   std::fixed << s << std::resetiosflags(std::ios_base::fixed)
#define ERASE_STRUCT(var)   memset(&var, 0, sizeof(var))
#define ERASE_ARRAY(var, size)   memset(var, 0, size*sizeof(*var))
#define SET_ARRAY(var, value, size)   { for (int i = 0; i < static_cast<int> (size); ++i) var[i]=value; }
#define PCL_EXTERN_C
#define PCL_EXPORTS
#define PCL_CDECL
#define PCL_STDCALL
#define PCLAPI(rettype)   PCL_EXTERN_C PCL_EXPORTS rettype PCL_CDECL
#define PCL_DEPRECATED(func)   func
#define PCL_DEPRECATED_CLASS(func)   func
#define GLIBC_MALLOC_ALIGNED   0
#define FREEBSD_MALLOC_ALIGNED   0
#define MALLOC_ALIGNED   0

Functions

__inline double pcl_round (double number)
 Win32 doesn't seem to have rounding functions.
__inline float pcl_round (float number)
void * aligned_malloc (size_t size)
void aligned_free (void *ptr)

Define Documentation

#define _USE_MATH_DEFINES

Definition at line 67 of file pcl_macros.h.

#define DEG2RAD ( x   )     ((x)*0.017453293)

Definition at line 132 of file pcl_macros.h.

#define ERASE_ARRAY ( var,
size   )     memset(var, 0, size*sizeof(*var))

Definition at line 212 of file pcl_macros.h.

#define ERASE_STRUCT ( var   )     memset(&var, 0, sizeof(var))

Definition at line 208 of file pcl_macros.h.

#define FIXED ( s   )     std::fixed << s << std::resetiosflags(std::ios_base::fixed)

Definition at line 204 of file pcl_macros.h.

#define FREEBSD_MALLOC_ALIGNED   0

Definition at line 353 of file pcl_macros.h.

#define GLIBC_MALLOC_ALIGNED   0

Definition at line 347 of file pcl_macros.h.

#define MALLOC_ALIGNED   0

Definition at line 359 of file pcl_macros.h.

#define PCL_CDECL

Definition at line 267 of file pcl_macros.h.

#define PCL_DEPRECATED ( func   )     func

Definition at line 298 of file pcl_macros.h.

#define PCL_DEPRECATED_CLASS ( func   )     func

Definition at line 332 of file pcl_macros.h.

#define PCL_EXPORTS

Definition at line 260 of file pcl_macros.h.

#define PCL_EXTERN_C

Definition at line 249 of file pcl_macros.h.

#define pcl_isfinite ( x   )     isfinite(x)

Definition at line 126 of file pcl_macros.h.

#define pcl_isinf ( x   )     isinf(x)

Definition at line 127 of file pcl_macros.h.

#define pcl_isnan ( x   )     isnan(x)

Definition at line 125 of file pcl_macros.h.

#define pcl_lrint ( x   )     (static_cast<long int>(pcl_round(x)))

Definition at line 154 of file pcl_macros.h.

#define pcl_lrintf ( x   )     (static_cast<long int>(pcl_round(x)))

Definition at line 155 of file pcl_macros.h.

#define pcl_sleep ( x   )     sleep(x)

Definition at line 168 of file pcl_macros.h.

#define PCL_STDCALL

Definition at line 268 of file pcl_macros.h.

#define PCLAPI ( rettype   )     PCL_EXTERN_C PCL_EXPORTS rettype PCL_CDECL

Definition at line 272 of file pcl_macros.h.

#define PVAR ( s   )     #s << " = " << (s) << std::flush

Definition at line 172 of file pcl_macros.h.

#define PVARA ( s   )     #s << " = " << RAD2DEG(s) << "deg" << std::flush

Definition at line 188 of file pcl_macros.h.

#define PVARAC ( s   )     #s << " = " << RAD2DEG(s) << "deg, " << std::flush

Definition at line 196 of file pcl_macros.h.

#define PVARAN ( s   )     #s << " = " << RAD2DEG(s) << "deg\n"

Definition at line 192 of file pcl_macros.h.

#define PVARAS ( s   )     #s << " = " << RAD2DEG(s) << "deg " << std::flush

Definition at line 200 of file pcl_macros.h.

#define PVARC ( s   )     #s << " = " << (s) << ", " << std::flush

Definition at line 180 of file pcl_macros.h.

#define PVARN ( s   )     #s << " = " << (s) << "\n"

Definition at line 176 of file pcl_macros.h.

#define PVARS ( s   )     #s << " = " << (s) << " " << std::flush

Definition at line 184 of file pcl_macros.h.

#define RAD2DEG ( x   )     ((x)*57.29578)

Definition at line 136 of file pcl_macros.h.

#define SET_ARRAY ( var,
value,
size   )     { for (int i = 0; i < static_cast<int> (size); ++i) var[i]=value; }

Definition at line 216 of file pcl_macros.h.


Function Documentation

void aligned_free ( void *  ptr  )  [inline]

Definition at line 383 of file pcl_macros.h.

void* aligned_malloc ( size_t  size  )  [inline]

Definition at line 363 of file pcl_macros.h.

__inline float pcl_round ( float  number  ) 

Definition at line 149 of file pcl_macros.h.

__inline double pcl_round ( double  number  ) 

Win32 doesn't seem to have rounding functions.

Therefore implement our own versions of these functions here.

Definition at line 144 of file pcl_macros.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 16 Oct 2012 for Point Cloud Library (PCL) by  doxygen 1.6.1