LSSTApplications  18.0.0+64,19.0.0+37,19.0.0+4,19.0.0+40,19.0.0+43,19.0.0+48,19.0.0+8,19.0.0-1-g20d9b18+20,19.0.0-1-g49a97f9+2,19.0.0-1-g5549ca4+3,19.0.0-1-g8c57eb9+20,19.0.0-1-ga72da6b+2,19.0.0-1-gbfe0924+29,19.0.0-1-ge272bc4+20,19.0.0-1-gefe1d0d+19,19.0.0-10-ged17d6e+1,19.0.0-12-gcc0ea3c,19.0.0-13-g154200d1e+1,19.0.0-2-g0d9f9cd+40,19.0.0-2-g260436e+23,19.0.0-2-g9675b69+2,19.0.0-2-g9b11441+28,19.0.0-2-gde8e5e3+2,19.0.0-2-gf01c5b1,19.0.0-2-gff6972b+4,19.0.0-22-g282de62,19.0.0-29-g47457369+1,19.0.0-3-g27e4659+8,19.0.0-3-g6513920+30,19.0.0-3-gce3f959+16,19.0.0-5-g9aa49c1+1,19.0.0-7-g2f7a0e4+8,19.0.0-7-g686a884+3,19.0.0-7-g99cd2d5+4,19.0.0-7-ga57c4689+15,19.0.0-8-g079e426+5,w.2020.09
LSSTDataManagementBasePackage
Macros
base.h File Reference

Basic LSST definitions. More...

#include <memory>

Go to the source code of this file.

Macros

#define LSST_WHITESPACE   /* White space to avoid swig converting vector<PTR(XX)> into vector<shared_ptr<XX>> */
 A shared pointer to an object. More...
 
#define PTR(...)   std::shared_ptr<__VA_ARGS__ LSST_WHITESPACE > LSST_WHITESPACE
 
#define CONST_PTR(...)   std::shared_ptr<const __VA_ARGS__ LSST_WHITESPACE > LSST_WHITESPACE
 A shared pointer to a const object. More...
 
#define LSST_EXPORT   __attribute__ ((visibility("default")))
 Make a symbol visible even if visiblity is hidden (e.g. More...
 
#define LSST_PRIVATE   __attribute__ ((visibility("hidden")))
 Make a symbol hidden even if default visiblity is public. More...
 

Detailed Description

Basic LSST definitions.

Definition in file base.h.

Macro Definition Documentation

◆ CONST_PTR

#define CONST_PTR (   ...)    std::shared_ptr<const __VA_ARGS__ LSST_WHITESPACE > LSST_WHITESPACE

A shared pointer to a const object.

See also
PTR

Definition at line 47 of file base.h.

◆ LSST_EXPORT

#define LSST_EXPORT   __attribute__ ((visibility("default")))

Make a symbol visible even if visiblity is hidden (e.g.

for pybind11 modules)

This implementation works for gcc and clang; it has not been tested for other compilers

Definition at line 54 of file base.h.

◆ LSST_PRIVATE

#define LSST_PRIVATE   __attribute__ ((visibility("hidden")))

Make a symbol hidden even if default visiblity is public.

This implementation works for gcc and clang; it has not been tested for other compilers.

This macro should be used for most utility code for pybind11 wrapping (at least non-template, non-inline code). It can also be used in non-pybind11 code to make a symbol private to a library without also forcing it to be private to a single source file.

Definition at line 66 of file base.h.

◆ LSST_WHITESPACE

#define LSST_WHITESPACE   /* White space to avoid swig converting vector<PTR(XX)> into vector<shared_ptr<XX>> */

A shared pointer to an object.

Note
Using this macro is preferable to the Ptr typedef in type T as no definition of T need be provided, a forward definition (class T;) is sufficient
See also
CONST_PTR

Definition at line 40 of file base.h.

◆ PTR

#define PTR (   ...)    std::shared_ptr<__VA_ARGS__ LSST_WHITESPACE > LSST_WHITESPACE

Definition at line 41 of file base.h.