polybori::VariableBlock Class Reference

This class defines a VariableBlock. More...

#include <VariableBlock.h>

Inheritance diagram for polybori::VariableBlock:

polybori::VariableFactory polybori::CFactoryBase

List of all members.

Public Types

typedef VariableFactory base
 We inherit from the following type.
typedef base::value_type var_type
typedef var_type::ring_type ring_type
typedef var_type::idx_type idx_type

Public Member Functions

 VariableBlock (idx_type size, idx_type start_index, idx_type offset, bool reverse, const ring_type &ring)
 Construct block.
 VariableBlock (const self &rhs)
 Copy constructor.
 ~VariableBlock ()
 Destructor.
var_type operator() (idx_type i)
 We may easily.

Protected Attributes

const idx_type m_start_index
const idx_type m_last
const idx_type m_offset
const bool m_reverse


Detailed Description

This class defines a VariableBlock.

We break down the two-argumented class BooleVariables(idx, ring) to a one argumented call over a functional object var(idx) which knows about the ring ("currying").


Member Typedef Documentation

We inherit from the following type.

Reimplemented from polybori::VariableFactory.


Constructor & Destructor Documentation

polybori::VariableBlock::VariableBlock ( idx_type  size,
idx_type  start_index,
idx_type  offset,
bool  reverse,
const ring_type ring 
) [inline]

Construct block.

polybori::VariableBlock::VariableBlock ( const self rhs  )  [inline]

Copy constructor.

polybori::VariableBlock::~VariableBlock (  )  [inline]

Destructor.


Member Function Documentation

var_type polybori::VariableBlock::operator() ( idx_type  i  )  [inline]

We may easily.

References PBORI_UNLIKELY.


Member Data Documentation

const bool polybori::VariableBlock::m_reverse [protected]


The documentation for this class was generated from the following file:

Generated on Wed Jan 30 16:39:53 2013 for PolyBoRi by  doxygen 1.5.6