Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
dynamic_at_c.hpp File Reference

Constructs for static-to-dynamic integer convesion. More...

#include "../../gil_config.hpp"
#include <cassert>
#include <stdexcept>
#include <boost/mpl/at.hpp>
#include <boost/mpl/size.hpp>
Include dependency graph for dynamic_at_c.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  boost::gil::detail::at_c::at_c_fn< START, NUM >
 
struct  boost::gil::detail::at_c::at_c_impl< QUOT >
 
struct  boost::gil::detail::at_c::at_c_impl< 0 >
 
struct  boost::gil::detail::at_c::at_c_impl< 1 >
 
struct  boost::gil::detail::at_c::at_c_impl< 2 >
 
struct  boost::gil::detail::at_c::at_c_impl< 3 >
 

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::gil
 
 boost::gil::detail
 
 boost::gil::detail::at_c
 

Macros

#define GIL_AT_C_VALUE(z, N, text)   mpl::at_c<IntTypes,S+N>::type::value,
 
#define GIL_DYNAMIC_AT_C_LIMIT   226
 
#define GIL_AT_C_LOOKUP(z, NUM, text)
 

Functions

template<typename IntTypes , typename ValueType >
ValueType boost::gil::at_c (std::size_t index)
 Given an MPL Random Access Sequence and a dynamic index n, returns the value of the n-th element It constructs a lookup table at compile time. More...
 

Detailed Description

Constructs for static-to-dynamic integer convesion.

Author
Lubomir Bourdev and Hailin Jin
Adobe Systems Incorporated
Date
2005-2007
Last updated on May 4, 2006

Macro Definition Documentation

#define GIL_AT_C_LOOKUP (   z,
  NUM,
  text 
)
Value:
template<std::size_t S> \
struct at_c_fn<S,NUM> { \
template <typename IntTypes, typename ValueType> inline \
static ValueType apply(std::size_t index) { \
static ValueType table[] = { \
}; \
return table[index]; \
} \
};
#define GIL_AT_C_VALUE(z, N, text)
Definition: dynamic_at_c.hpp:34
#define BOOST_PP_REPEAT
Definition: repeat.hpp:29
boost::detail::multi_array::index index
Definition: base.hpp:53
#define BOOST_PP_EMPTY()
Definition: empty.hpp:21
#define GIL_AT_C_VALUE (   z,
  N,
  text 
)    mpl::at_c<IntTypes,S+N>::type::value,