LSST Applications  21.0.0-1-g8760c09+64c1bc5aa5,21.0.0-1-ga51b5d4+9915f4c1f0,21.0.0-117-gc411b24e+f84ddc296e,21.0.0-14-g3bd782b+16b33694c2,21.0.0-18-gdfc0191+ecbc221302,21.0.0-2-g103fe59+df8d4d8d23,21.0.0-2-g45278ab+64c1bc5aa5,21.0.0-2-g5242d73+2292060af2,21.0.0-2-g7f82c8f+6f93c05343,21.0.0-2-gde069b7+4f46bdaea8,21.0.0-2-gfc62afb+2292060af2,21.0.0-20-g1e553c2+458274d3ec,21.0.0-20-g3b2d1f0+6435842460,21.0.0-21-g51ee50f4+981cd1fc80,21.0.0-21-gc8894c7+b39e0bca51,21.0.0-27-gcbf119a+9cedfa2013,21.0.0-3-g1b65d06+6a55181de0,21.0.0-3-g357aad2+056b41e3ab,21.0.0-3-g4a4ce7f+2292060af2,21.0.0-3-g4be5c26+2292060af2,21.0.0-3-ge02ed75+b39e0bca51,21.0.0-3-gf9d8b05+6f93c05343,21.0.0-31-gbc33d95d+283f9bd92d,21.0.0-4-g7dab645+6975c8242f,21.0.0-46-g27369044f+532d44eec1,21.0.0-5-g5f8d297+1eaad2dc21,21.0.0-5-g8c1d971+7e5b4c34a6,21.0.0-5-gcc89fd6+b18c5f6b76,21.0.0-5-gd00fb1e+78c370a642,21.0.0-6-g1930a60+b18c5f6b76,21.0.0-6-gc675373+2292060af2,21.0.0-7-g0503b2e+18535a8d22,21.0.0-7-g7aa11f2+b39e0bca51,21.0.0-7-g997b569+8c09b75fa7,21.0.0-7-gdf92d54+64c1bc5aa5,21.0.0-9-g7058be7+2d726afa20,master-ga86695c5c8+b39e0bca51,master-gcc5351303a+df8d4d8d23,w.2021.26
LSST Data Management Base Package
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.