LSST Applications  21.0.0-137-gb83a959d+ed3655b548,22.0.0+11a2aa21cd,22.0.0+5e01a48229,22.0.0+64c1bc5aa5,22.0.0+7232f61ff9,22.0.0+7436aa99d4,22.0.0+afa7c1de23,22.0.0+d9cf0fe214,22.0.1-1-g1b65d06+81c16f1bcf,22.0.1-1-g7058be7+1cf78af69b,22.0.1-1-g7dab645+93c83ccaec,22.0.1-1-g87000a6+7b3a3f865e,22.0.1-1-g8760c09+64c1bc5aa5,22.0.1-1-g949febb+64c1bc5aa5,22.0.1-1-gc1211bb+b156e9107e,22.0.1-11-g977d919+4b051e1311,22.0.1-11-gc8c9b3f+0f19af481c,22.0.1-15-g1be395cc+b40e11d0d4,22.0.1-15-ge634287+afa7c1de23,22.0.1-19-g9283e855+359fbd1aa2,22.0.1-2-g8ef0a89+afa7c1de23,22.0.1-2-g92698f7+d9cf0fe214,22.0.1-2-gb66926d+7232f61ff9,22.0.1-2-gcb770ba+b9ea777ba7,22.0.1-24-g2e899d296+b05a4897c9,22.0.1-3-g7aa11f2+afa7c1de23,22.0.1-3-g8c1d971+f253ffa91f,22.0.1-3-g997b569+6ee09d4599,22.0.1-4-g1930a60+6871d0c7f6,22.0.1-4-g5b7b756+6b209d634c,22.0.1-6-ga02864e+6871d0c7f6,22.0.1-7-g3402376+61492745ce,22.0.1-9-ga0ac561+381b27b2e4,master-g5f2689bdc5+5e01a48229,w.2021.35
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.