SOFA API  eb9fe59f
Open source framework for multi-physics simuation
sofa::core::IntrusiveObject Class Reference

#include <IntrusiveObject.h>

Inheritance diagram for sofa::core::IntrusiveObject:

Detailed Description

The IntrusiveObject class implements an internal reference counting mechanism to manage its lifetime. It is intended to work with intrusive smart pointers like boost::intrusive_ptr.

Protected Member Functions

virtual ~IntrusiveObject ()=default
 

Friends

void intrusive_ptr_add_ref (IntrusiveObject *p)
 
void intrusive_ptr_release (IntrusiveObject *p)
 

Constructor details

◆ ~IntrusiveObject()

virtual sofa::core::IntrusiveObject::~IntrusiveObject ( )
protectedvirtualdefault

Related details

◆ intrusive_ptr_add_ref

void intrusive_ptr_add_ref ( IntrusiveObject p)
friend

◆ intrusive_ptr_release

void intrusive_ptr_release ( IntrusiveObject p)
friend