Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

xst_static_action Class Template Reference

#include <xst_static_action.h>

Collaboration diagram for xst_static_action:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<typename StaticActionT, typename ArgumentT, typename ResultT>
class cttl_impl::xst_static_action< StaticActionT, ArgumentT, ResultT >

Implements closure object for function with one argument.

StaticActionT
Template parameter specifying type which is a function pointer adaptor compatible with STL adaptable unary function, such as pointer_to_unary_function:
ArgumentT
Template parameter specifying type of function argument.
ResultT
Template parameter specifying type of function return value.

Definition at line 58 of file xst_static_action.h.

Public Types

typedef xst_static_action<
StaticActionT, ArgumentT,
ResultT > 
action_T
 Defines type of semantic action represented by this closure object.
typedef StaticActionT::result_type result_T
 Defines return type of semantic action represented by this closure object.
typedef xst_dereference_traits<
action_T, result_T >::value_type 
value_type
 Defines type of dereferenced semantic action represented by this closure object.

Public Member Functions

result_T operator * () const
 Overloaded dereference operator invokes encapsulated function.
result_T operator() (bool) const
 Calls encapsulated function when invoked by cttl_impl::xst_translator.
 xst_static_action (StaticActionT static_action_, ArgumentT argument_)
 Constructs and initializes the object.


Member Typedef Documentation

typedef xst_static_action< StaticActionT, ArgumentT, ResultT > action_T
 

Defines type of semantic action represented by this closure object.

Definition at line 73 of file xst_static_action.h.

typedef StaticActionT::result_type result_T
 

Defines return type of semantic action represented by this closure object.

Definition at line 76 of file xst_static_action.h.

typedef xst_dereference_traits< action_T, result_T >::value_type value_type
 

Defines type of dereferenced semantic action represented by this closure object.

Definition at line 79 of file xst_static_action.h.


Constructor & Destructor Documentation

xst_static_action StaticActionT  static_action_,
ArgumentT  argument_
[inline]
 

Constructs and initializes the object.

Definition at line 82 of file xst_static_action.h.


Member Function Documentation

result_T operator *  )  const [inline]
 

Overloaded dereference operator invokes encapsulated function.

Definition at line 106 of file xst_static_action.h.

result_T operator() bool   )  const [inline]
 

Calls encapsulated function when invoked by cttl_impl::xst_translator.

Definition at line 100 of file xst_static_action.h.


The documentation for this class was generated from the following file:
Generated on Thu Nov 2 17:49:07 2006 for CTTL Lambda Expression by  doxygen 1.3.9.1