LSST Applications  21.0.0-1-g8760c09+64c1bc5aa5,21.0.0-1-ga51b5d4+1350bb8745,21.0.0-120-g57749b33+77c36da417,21.0.0-14-g3bd782b+62bd888395,21.0.0-19-gd0ca341+838f035eb4,21.0.0-2-g103fe59+72fa3717e3,21.0.0-2-g45278ab+64c1bc5aa5,21.0.0-2-g7f82c8f+c94709d2a4,21.0.0-2-gde069b7+11a2aa21cd,21.0.0-2-gfc62afb+6396df189c,21.0.0-20-g1e553c2+573b22c308,21.0.0-21-g51ee50f4+4b5bad23d2,21.0.0-21-gb17f18e+23ef0c54f7,21.0.0-22-g57c5a76+ef01df0b67,21.0.0-27-gcbf119a+a00fe59290,21.0.0-3-g1b65d06+b174077c85,21.0.0-3-g357aad2+d6fe283175,21.0.0-3-g4a4ce7f+6396df189c,21.0.0-3-g4be5c26+6396df189c,21.0.0-3-ga324b9c+6396df189c,21.0.0-3-ge02ed75+ef01df0b67,21.0.0-3-gf9d8b05+c94709d2a4,21.0.0-33-g0da61bd6+3fb5ecf9cc,21.0.0-4-g7dab645+99b0103697,21.0.0-47-gf1d71818e+649249edd3,21.0.0-5-g5f8d297+2da38119fb,21.0.0-5-g8c1d971+02ffdaf10e,21.0.0-5-gcc89fd6+782b3b5ca8,21.0.0-5-gd00fb1e+5ffc17f859,21.0.0-6-g1930a60+782b3b5ca8,21.0.0-6-gc675373+6396df189c,21.0.0-7-g0503b2e+6b209d634c,21.0.0-7-g7aa11f2+ef01df0b67,21.0.0-7-g997b569+a0df6514ce,21.0.0-8-g949febb+64c1bc5aa5,21.0.0-9-g7058be7+37de8fccb6,master-ga86695c5c8+ef01df0b67,master-gcc5351303a+72fa3717e3,v22.0.0.rc2
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.