TECA
The Toolkit for Extreme Climate Analysis
teca_shared_object.h File Reference
#include <memory>
Include dependency graph for teca_shared_object.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TECA_SHARED_OBJECT_FORWARD_DECL(_cls)
 
#define TECA_SHARED_OBJECT_TEMPLATE_FORWARD_DECL(_cls)
 

Macro Definition Documentation

◆ TECA_SHARED_OBJECT_FORWARD_DECL

#define TECA_SHARED_OBJECT_FORWARD_DECL (   _cls)
Value:
class _cls; \
\
/** a shared pointer to an instance of _cls */ \
using p_##_cls = std::shared_ptr<_cls>; \
\
/** A shared pointer to a const instance of _cls */ \
using const_p_##_cls = std::shared_ptr<const _cls>;

◆ TECA_SHARED_OBJECT_TEMPLATE_FORWARD_DECL

#define TECA_SHARED_OBJECT_TEMPLATE_FORWARD_DECL (   _cls)
Value:
template<typename T> class _cls; \
\
/** a shared pointer to an instance of _cls */ \
template<typename T> \
using p_##_cls = std::shared_ptr<_cls<T>>; \
\
/** A shared pointer to a const instance of _cls */ \
template<typename T> \
using const_p_##_cls = std::shared_ptr<const _cls<T>>;