globjects  2.0.0.690708773bba
Strict OpenGL objects wrapper.
globjects::FunctionCall< Arguments > Class Template Reference

#include <globjects/include/globjects/base/FunctionCall.h>

Inheritance diagram for globjects::FunctionCall< Arguments >:
globjects::AbstractFunctionCall globjects::Instantiator< FunctionCall< Arguments... > >

Public Types

using FunctionPointer = void(*)(Arguments...)
 

Public Member Functions

 FunctionCall ()
 
 FunctionCall (FunctionPointer function, Arguments...arguments)
 
virtual void operator() () override
 Entry point for the main functionality of a subclass. More...
 
virtual void * identifier () const override
 Accessor for an arbitrary identifier that can be used as identity. More...
 
- Public Member Functions inherited from globjects::AbstractFunctionCall
 AbstractFunctionCall ()
 Constructor. More...
 
virtual ~AbstractFunctionCall ()
 Virtual destructor. More...
 

Protected Attributes

FunctionPointer m_functionPointer
 
std::function< void(Arguments...)> m_function
 
std::tuple< Arguments... > m_arguments
 

Additional Inherited Members

- Static Public Member Functions inherited from globjects::Instantiator< FunctionCall< Arguments... > >
static std::unique_ptr< FunctionCall< Arguments... > > create (Args &&...args)
 
static std::unique_ptr< FunctionCall< Arguments... > > fromId (gl::GLuint id, Args &&...args)
 

Member Typedef Documentation

template<typename... Arguments>
using globjects::FunctionCall< Arguments >::FunctionPointer = void (*)(Arguments...)

Constructor & Destructor Documentation

template<typename... Arguments>
globjects::FunctionCall< Arguments >::FunctionCall ( )
template<typename... Arguments>
globjects::FunctionCall< Arguments >::FunctionCall ( FunctionPointer  function,
Arguments...  arguments 
)

Member Function Documentation

template<typename... Arguments>
virtual void globjects::FunctionCall< Arguments >::operator() ( )
overridevirtual

Entry point for the main functionality of a subclass.

As this interface represents some kind of method object, a subclass defines this operator to implement its full behavior.

Implements globjects::AbstractFunctionCall.

template<typename... Arguments>
virtual void* globjects::FunctionCall< Arguments >::identifier ( ) const
overridevirtual

Accessor for an arbitrary identifier that can be used as identity.

Returns
An identifier for identity tracking

Implements globjects::AbstractFunctionCall.

Member Data Documentation

template<typename... Arguments>
FunctionPointer globjects::FunctionCall< Arguments >::m_functionPointer
mutableprotected
template<typename... Arguments>
std::function<void(Arguments...)> globjects::FunctionCall< Arguments >::m_function
protected
template<typename... Arguments>
std::tuple<Arguments...> globjects::FunctionCall< Arguments >::m_arguments
protected

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