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

xst_static_action< StaticActionT, ArgumentT, void > Class Template Reference

#include <xst_static_void.h>

Collaboration diagram for xst_static_action< StaticActionT, ArgumentT, void >:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

Implements closure object for void 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.

Definition at line 55 of file xst_static_void.h.

Public Types

typedef xst_static_action<
StaticActionT, ArgumentT,
void > 
action_T
 Defines type of semantic action represented by this closure object.
typedef int 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, void > action_T
 

Defines type of semantic action represented by this closure object.

Definition at line 70 of file xst_static_void.h.

typedef int result_T
 

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

Definition at line 73 of file xst_static_void.h.

Referenced by xst_static_action< StaticActionT, ArgumentT, void >::operator *(), and xst_static_action< StaticActionT, ArgumentT, void >::operator()().

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 76 of file xst_static_void.h.


Member Function Documentation

result_T operator *  )  const [inline]
 

Overloaded dereference operator invokes encapsulated function.

Definition at line 103 of file xst_static_void.h.

References xst_static_action< StaticActionT, ArgumentT, void >::result_T.

result_T operator() bool   )  const [inline]
 

Calls encapsulated function when invoked by cttl_impl::xst_translator.

Definition at line 97 of file xst_static_void.h.

References xst_static_action< StaticActionT, ArgumentT, void >::result_T.

xst_static_action StaticActionT  static_action_,
ArgumentT  argument_
[inline]
 

Constructs and initializes the object.

Definition at line 79 of file xst_static_void.h.


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