LSSTApplications  19.0.0-16-gf391218+75207a5567,20.0.0-11-g973f35b+5f40f3b74f,20.0.0-18-g2b8c1f54+98f00cec1f,20.0.0-2-g103fe59+89abf75b1e,20.0.0-2-g1367e85+062b368476,20.0.0-2-g7f82c8f+0b34c2a098,20.0.0-2-g8dde007+012a460308,20.0.0-2-ga326454+0b34c2a098,20.0.0-2-ga51b5d4+6432c6fd8d,20.0.0-2-gde069b7+44dbdb3492,20.0.0-2-gfc62afb+062b368476,20.0.0-21-g0d0e83cbc+ce03d725a7,20.0.0-22-g54e2caa+4f6b04f9b5,20.0.0-25-g5eafb0f+117dba2638,20.0.0-29-g051ac7e+3416f82306,20.0.0-3-g5242d73+062b368476,20.0.0-3-ga63a54e+248839b751,20.0.0-31-g42917e2+deb446c958,20.0.0-4-g2909d54+37efb4748c,20.0.0-4-g35ce6d5+117dba2638,20.0.0-4-g45278ab+d529cf1a41,20.0.0-4-g4bc9b9f+867e64eac0,20.0.0-4-g66bcc37+117dba2638,20.0.0-4-ge17e5af+062b368476,20.0.0-4-gecfae73+509aca652e,20.0.0-4-gf910f65+37efb4748c,20.0.0-48-gb5944981+f3b9101d4b,20.0.0-5-g8f08a60+4fac22bdb7,20.0.0-5-ga885a99+c1363b8d99,20.0.0-5-gc738bc1+7b4a58de93,20.0.0-5-gfbfe500+d529cf1a41,20.0.0-6-gd222c45+88b21af515,20.0.0-7-g4c5b185+85184fddd4,20.0.0-7-gaa929c8+3416f82306,20.0.0-74-g0218c7a+3251b390b2,20.0.0-8-g5dd23de+e66d8374b0,20.0.0-8-ge712728+601a35ad67,20.0.0-9-g5051ac2+d529cf1a41,w.2020.49
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.