LSSTApplications  19.0.0-14-gb0260a2+68bfa11c34,20.0.0+086b43cd67,20.0.0+093e6caacb,20.0.0+12bf381a60,20.0.0+2265fde9c2,20.0.0+2410202d2f,20.0.0+38e2ebd2ba,20.0.0+5ac5138cd9,20.0.0+8558dd3f48,20.0.0+8b95c2cd60,20.0.0+a6ef1a7565,20.0.0+f04c5167f2,20.0.0+f45b7d88f4,20.0.0-1-g10df615+d3aaac17d9,20.0.0-1-g253301a+086b43cd67,20.0.0-1-g2b7511a+38e2ebd2ba,20.0.0-1-g4d801e7+38e9bbfa1f,20.0.0-1-g5b95a8c+473554d6f7,20.0.0-1-gc96f8cb+5ac5138cd9,20.0.0-1-gd1c87d7+bd8eb6ed31,20.0.0-10-g142674a+5ac5138cd9,20.0.0-13-ge998c5c+fac5daeba0,20.0.0-2-g5ad0983+e44bd70341,20.0.0-2-g7818986+bd8eb6ed31,20.0.0-2-gb095acb+ff88705a28,20.0.0-2-gdaeb0e8+532b3751e1,20.0.0-2-gec03fae+01e3669f2c,20.0.0-20-gbb9d1f89+598b390d6c,20.0.0-37-g38a3e24+799acde9b7,20.0.0-4-g4a2362f+f45b7d88f4,20.0.0-4-gfea843c+f45b7d88f4,20.0.0-5-ge4b5253+402718a799,20.0.0-5-gfcebe35+2107fc6b2a,20.0.0-6-g01203fff+9f9b49a85c,20.0.0-7-geef20c811+1caa149b74,20.0.0-8-gea2affd+772366849d,20.0.0-9-gabd0d4c+e44bd70341,w.2020.34
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.