Helios++
Helios software for LiDAR simulations
SmartSharedFunctorContainer< T > Class Template Reference

Functor container can be used to wrap any element so its functor () is called while having a shared pointer to the contained element. More...

#include <SmartSharedFunctorContainer.h>

Public Member Functions

 SmartSharedFunctorContainer (std::shared_ptr< T > f)
 Default constructor for the smart shared functor container. More...
 
virtual void operator() ()
 Functor to the contained element's functor.
 

Protected Attributes

std::shared_ptr< T > f
 Container object which must have a callable functor ()
 

Detailed Description

template<typename T>
class SmartSharedFunctorContainer< T >

Functor container can be used to wrap any element so its functor () is called while having a shared pointer to the contained element.

Author
Alberto M. Esmoris Pena
Version
1.0

Constructor & Destructor Documentation

◆ SmartSharedFunctorContainer()

template<typename T >
SmartSharedFunctorContainer< T >::SmartSharedFunctorContainer ( std::shared_ptr< T >  f)
inline

Default constructor for the smart shared functor container.

See also
SmartSharedFunctorContainer::f

The documentation for this class was generated from the following file: