oos::variable< R > Class Template Reference
Holds the functor to a method. More...
#include <object_expression.hpp>
Public Types | |
typedef R | return_type |
Public Member Functions | |
variable (variable_impl< R > *impl) | |
variable (const variable &x) | |
variable & | operator= (const variable &x) |
return_type | operator() (const object_base_ptr &optr) const |
Detailed Description
template<class R>
class oos::variable< R >
Holds the functor to a method.
- Template Parameters
-
R Type of the variable
Wrapper class for the concrete variable implementation.
Member Typedef Documentation
template<class R>
typedef R oos::variable< R >::return_type |
Shortcut for return type.
Constructor & Destructor Documentation
template<class R>
|
inlineexplicit |
Initializes a variable with a pointer to a concrete variable implemnation.
- Parameters
-
impl The concrete variable.
template<class R>
|
inline |
Copies from the given variable.
- Parameters
-
x The variable to copy from.
Member Function Documentation
template<class R>
|
inline |
Applies the () operator of the concrete variable and returns the result.
- Parameters
-
optr The object to apply the variable to.
- Returns
- The value of the variable.
template<class R>
|
inline |
Assigns from the given variable.
- Parameters
-
x The variable to assign from.
- Returns
- Initialized variable.
The documentation for this class was generated from the following file:
- object/object_expression.hpp