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

Functions

void aligned_free (void *ptr)
void * aligned_malloc (size_t size)
__inline double pcl_round (double number)
__inline float pcl_round (float number)

Define Documentation

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 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.

__inline float pcl_round ( float  number)

Definition at line 149 of file pcl_macros.h.



pcl
Author(s): Open Perception
autogenerated on Mon Oct 6 2014 03:19:13