SOFA API  cd4ffb93
Open source framework for multi-physics simuation
sofa::core::objectmodel::Aspect Class Reference

#include <AspectPool.h>

Detailed Description

This class represents an allocated aspect. AspectPool returns a smart pointer to an object of this class to give the aspect ownership to the caller. It is safe to use this class from several threads.

Public Member Functions

int aspectID () const
 
void add_ref ()
 
void release ()
 

Friends

class AspectPool
 

Function details

◆ add_ref()

void sofa::core::objectmodel::Aspect::add_ref ( )

Add a reference to this aspect. Note that you should avoid using this method directly, use AspectRef instead to handle it automatically

◆ aspectID()

int sofa::core::objectmodel::Aspect::aspectID ( ) const
inline

◆ release()

void sofa::core::objectmodel::Aspect::release ( )

Release a reference to this aspect. Note that you should avoid using this method directly, use AspectRef instead to handle it automatically

Related details

◆ AspectPool

friend class AspectPool
friend