#include <iostream>
#include <utility>
#include <memory>
#include "intrusive_ptr/intrusive_ptr.hpp"
Go to the source code of this file.
|
| Kratos |
| REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
|
|
◆ KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION
#define KRATOS_CLASS_INTRUSIVE_POINTER_DEFINITION |
( |
|
a | ) |
|
Value:typedef typename Kratos::intrusive_ptr<a > Pointer; \
typename a::Pointer shared_from_this(){ return a::Pointer(this); }
This class is a wrapper for a pointer to a data that is located in a different rank.
Definition: global_pointer.h:44
std::unique_ptr< T > unique_ptr
Definition: smart_pointers.h:33
◆ KRATOS_CLASS_POINTER_DEFINITION
#define KRATOS_CLASS_POINTER_DEFINITION |
( |
|
a | ) |
|
Value:
std::weak_ptr< T > weak_ptr
Definition: smart_pointers.h:30
std::shared_ptr< T > shared_ptr
Definition: smart_pointers.h:27