SOFA API  6a688117
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

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

int sofa::core::objectmodel::Aspect::aspectID ( ) const
inline
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

friend class AspectPool
friend