#include <xst_static_noarg_void.h>
Public Types | |
typedef xst_static_action < StaticActionT, void, 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() (bool) const |
Calls encapsulated function when invoked by cttl_impl::xst_translator. | |
result_T | operator* () const |
Overloaded dereference operator invokes encapsulated function. | |
xst_static_action (StaticActionT static_action_) | |
Constructs and initializes the object. |
Definition at line 52 of file xst_static_noarg_void.h.
typedef xst_static_action< StaticActionT, void, void > cttl_impl::xst_static_action< StaticActionT, void, void >::action_T |
Defines type of semantic action represented by this closure object.
Definition at line 65 of file xst_static_noarg_void.h.
typedef int cttl_impl::xst_static_action< StaticActionT, void, void >::result_T |
Defines return type of semantic action represented by this closure object.
Definition at line 68 of file xst_static_noarg_void.h.
typedef xst_dereference_traits< action_T, result_T >::value_type cttl_impl::xst_static_action< StaticActionT, void, void >::value_type |
Defines type of dereferenced semantic action represented by this closure object.
Definition at line 71 of file xst_static_noarg_void.h.
cttl_impl::xst_static_action< StaticActionT, void, void >::xst_static_action | ( | StaticActionT | static_action_ | ) |
Constructs and initializes the object.
Definition at line 74 of file xst_static_noarg_void.h.
00081 : 00082 #ifdef CTTL_TRACE_DEPOSITS 00083 xst_traced_action_base( line_, action_name_ ), 00084 #endif // CTTL_TRACE_DEPOSITS 00085 m_static_action( static_action_ ) 00086 { 00087 }
result_T cttl_impl::xst_static_action< StaticActionT, void, void >::operator() | ( | bool | ) | const |
Calls encapsulated function when invoked by cttl_impl::xst_translator.
Definition at line 90 of file xst_static_noarg_void.h.
00091 { 00092 return operator*(); 00093 }
result_T cttl_impl::xst_static_action< StaticActionT, void, void >::operator* | ( | ) | const |
Overloaded dereference operator invokes encapsulated function.
Definition at line 96 of file xst_static_noarg_void.h.
00097 { 00098 #ifdef CTTL_TRACE_DEPOSITS 00099 trace_prolog(); 00100 m_static_action(); 00101 result_T result = result_T( 1 ); 00102 trace_epilog( result ); 00103 return result; 00104 #else 00105 m_static_action(); 00106 return result_T( 1 ); 00107 #endif // CTTL_TRACE_DEPOSITS 00108 }