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

xst_const_scalar Struct Template Reference

#include <xst_const_scalar.h>

List of all members.


Detailed Description

template<int ValueT>
struct cttl_impl::xst_const_scalar< ValueT >

Implements lambda primitive representing integer constants.

ValueT
Template parameter specifying compile-time value of the constant scalar lambda primitive.
Warning:
This is internal CTTL header file and should not be included by user programs.

Definition at line 56 of file xst_const_scalar.h.

Public Types

enum  { const_value_ = ValueT, depth_ = 1, capacity_ = 1, primitive_id_ = primitive_id_const_scalar }
typedef int dereferenced_value_T
 Defines type of dereferenced constant scalar primitive.
typedef xst_const_scalar<
ValueT > 
left_T
 Defines type of left subtree of lambda compound.
typedef xst_const_scalar<
ValueT > 
reference_T
 Defines lambda reference type for constant scalar primitive.
typedef xst_const_scalar<
ValueT > 
right_T
 Defines type of right subtree of lambda compound.
typedef int value_T
 Defines type of primitive encapsulated by constant scalar primitive.

Public Member Functions

left_T const & left_lambda () const
right_T const & right_lambda () const
template<typename FunctorT>
void traverse_bottom_up (FunctorT &functor_) const
template<typename FunctorT>
void traverse_top_down (FunctorT &functor_) const

Static Public Member Functions

template<int LocationT>
dereferenced_value_T dereferenced_value (xst_lambda_wrap< xst_const_scalar< LocationT > >)
 Dereferenced value of lambda primitive.
reference_T make_reference ()
 Manufactures copy of reference object for encapsulated lambda primitive.
template<int LocationT>
void pop (xst_lambda_wrap< xst_const_scalar< LocationT > >)
 Pop data from specified lambda primitive.
template<int LocationT, typename InputValueT>
void push (xst_lambda_wrap< xst_const_scalar< LocationT > >, InputValueT const &data_)
 Push data to scalar primitive.
template<int LocationT>
size_t size (xst_lambda_wrap< xst_const_scalar< LocationT > >)
 Returns value of const scalar converted to size_t type.
template<int LocationT>
std::stack< value_T > const * stack_ptr (xst_lambda_wrap< xst_const_scalar< LocationT > >)
 Get stack pointer of lambda primitive.
template<typename FunctorT>
void subscript_bottom_up (FunctorT &functor_)
template<typename FunctorT>
void subscript_top_down (FunctorT &functor_)
template<int LocationT>
value_T const & top (xst_lambda_wrap< xst_const_scalar< LocationT > >)
 Returns value of lambda primitive.


Member Typedef Documentation

typedef int dereferenced_value_T
 

Defines type of dereferenced constant scalar primitive.

Definition at line 82 of file xst_const_scalar.h.

typedef xst_const_scalar< ValueT > left_T
 

Defines type of left subtree of lambda compound.

Definition at line 85 of file xst_const_scalar.h.

typedef xst_const_scalar< ValueT > reference_T
 

Defines lambda reference type for constant scalar primitive.

Definition at line 91 of file xst_const_scalar.h.

typedef xst_const_scalar< ValueT > right_T
 

Defines type of right subtree of lambda compound.

Definition at line 88 of file xst_const_scalar.h.

typedef int value_T
 

Defines type of primitive encapsulated by constant scalar primitive.

Definition at line 79 of file xst_const_scalar.h.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
const_value_  Externally visible constant value of this lambda primitive.
depth_  Subtree node count constant.
capacity_  Capacity of constant scalar.
primitive_id_  Unique identifier of constant scalar lambda primitive.

Definition at line 64 of file xst_const_scalar.h.


Member Function Documentation

dereferenced_value_T dereferenced_value xst_lambda_wrap< xst_const_scalar< LocationT > >   )  [inline, static]
 

Dereferenced value of lambda primitive.

Definition at line 101 of file xst_const_scalar.h.

left_T const& left_lambda  )  const [inline]
 

Definition at line 109 of file xst_const_scalar.h.

reference_T make_reference  )  [inline, static]
 

Manufactures copy of reference object for encapsulated lambda primitive.

Definition at line 94 of file xst_const_scalar.h.

void pop xst_lambda_wrap< xst_const_scalar< LocationT > >   )  [inline, static]
 

Pop data from specified lambda primitive.

Definition at line 169 of file xst_const_scalar.h.

void push xst_lambda_wrap< xst_const_scalar< LocationT > >  ,
InputValueT const &  data_
[inline, static]
 

Push data to scalar primitive.

Definition at line 157 of file xst_const_scalar.h.

right_T const& right_lambda  )  const [inline]
 

Definition at line 114 of file xst_const_scalar.h.

size_t size xst_lambda_wrap< xst_const_scalar< LocationT > >   )  [inline, static]
 

Returns value of const scalar converted to size_t type.

Definition at line 187 of file xst_const_scalar.h.

std::stack< value_T > const* stack_ptr xst_lambda_wrap< xst_const_scalar< LocationT > >   )  [inline, static]
 

Get stack pointer of lambda primitive.

Definition at line 199 of file xst_const_scalar.h.

void subscript_bottom_up FunctorT &  functor_  )  [inline, static]
 

Definition at line 130 of file xst_const_scalar.h.

References const_scalar.

void subscript_top_down FunctorT &  functor_  )  [inline, static]
 

Definition at line 124 of file xst_const_scalar.h.

References const_scalar.

value_T const& top xst_lambda_wrap< xst_const_scalar< LocationT > >   )  [inline, static]
 

Returns value of lambda primitive.

Definition at line 178 of file xst_const_scalar.h.

void traverse_bottom_up FunctorT &  functor_  )  const [inline]
 

Definition at line 136 of file xst_const_scalar.h.

void traverse_top_down FunctorT &  functor_  )  const [inline]
 

Definition at line 142 of file xst_const_scalar.h.


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