LSSTApplications  19.0.0-14-gb0260a2+62eef71270,20.0.0+24334de73e,20.0.0+6348ae6e95,20.0.0+bc2efa1fe5,20.0.0+e2e26847c2,20.0.0+f59fc3f720,20.0.0-1-g253301a+6348ae6e95,20.0.0-1-g2b7511a+46a6078777,20.0.0-1-g3dda6ea+2efb611119,20.0.0-1-g5b95a8c+a5c5a8855d,20.0.0-1-gc96f8cb+59c4ba692f,20.0.0-1-gedffbd8+da4718dcfa,20.0.0-10-g0891cd99+4bc1d4fea5,20.0.0-14-g1a12fe12b+614f89f815,20.0.0-17-gcdbda88+a5e48e6195,20.0.0-2-g4dae9ad+59c4ba692f,20.0.0-2-g52fdb94+046030bafd,20.0.0-2-g61b8584+85c46248f3,20.0.0-2-gb780d76+f45b7d88f4,20.0.0-2-gf072044+6348ae6e95,20.0.0-2-gf5acbb6+d921d43168,20.0.0-22-gdf434b7+59c4ba692f,20.0.0-23-g10eeb28+0997c6b94a,20.0.0-25-g3dcad98+558ba85b5f,20.0.0-3-g1653f94+85c46248f3,20.0.0-3-g4cc78c6+63636aeed8,20.0.0-3-g750bffe+aa101c80f9,20.0.0-3-gbd60e8c+ff10c6d78d,20.0.0-34-g9cdc3119+d10e04dcbd,20.0.0-4-g5bce581+e6333997a2,20.0.0-4-g97dc21a+558ba85b5f,20.0.0-4-gfea843c+f45b7d88f4,20.0.0-5-g357b56b+f45b7d88f4,20.0.0-6-g9a5b7a1+ef6ce590e7,20.0.0-63-g7191b3b+c777709640,20.0.0-7-gcda7bf1+d4a432d2df,w.2020.44
LSSTDataManagementBasePackage
Macros
base.h File Reference
#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 48 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 55 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 67 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 41 of file base.h.

◆ PTR

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

Definition at line 42 of file base.h.