TuttleOFX  1
mandelbrot_fn< P > Struct Template Reference

Public Types

typedef point2< ptrdiff_t > point_t
typedef mandelbrot_fn const_t
typedef P value_type
typedef value_type reference
typedef value_type const_reference
typedef point_t argument_type
typedef reference result_type

Public Member Functions

 BOOST_STATIC_CONSTANT (bool, is_mutable=false)
 mandelbrot_fn ()
 mandelbrot_fn (const point_t &sz, const value_type &in_color, const value_type &out_color)
result_type operator() (const point_t &p) const

Data Fields

value_type _in_color
value_type _out_color
point_t _img_size

Static Public Attributes

static const int MAX_ITER = 1000

Private Member Functions

double get_num_iter (const point2< double > &p) const

Detailed Description

template<typename P>
struct mandelbrot_fn< P >

Definition at line 17 of file test.cpp.


Member Typedef Documentation

template<typename P >
typedef point_t mandelbrot_fn< P >::argument_type

Definition at line 24 of file test.cpp.

template<typename P >
typedef value_type mandelbrot_fn< P >::const_reference

Definition at line 23 of file test.cpp.

template<typename P >
typedef mandelbrot_fn mandelbrot_fn< P >::const_t

Definition at line 20 of file test.cpp.

template<typename P >
typedef point2<ptrdiff_t> mandelbrot_fn< P >::point_t

Definition at line 18 of file test.cpp.

template<typename P >
typedef value_type mandelbrot_fn< P >::reference

Definition at line 22 of file test.cpp.

template<typename P >
typedef reference mandelbrot_fn< P >::result_type

Definition at line 25 of file test.cpp.

template<typename P >
typedef P mandelbrot_fn< P >::value_type

Definition at line 21 of file test.cpp.


Constructor & Destructor Documentation

template<typename P >
mandelbrot_fn< P >::mandelbrot_fn ( ) [inline]

Definition at line 32 of file test.cpp.

template<typename P >
mandelbrot_fn< P >::mandelbrot_fn ( const point_t sz,
const value_type in_color,
const value_type out_color 
) [inline]

Definition at line 33 of file test.cpp.


Member Function Documentation

template<typename P >
mandelbrot_fn< P >::BOOST_STATIC_CONSTANT ( bool  ,
is_mutable  = false 
)
template<typename P >
double mandelbrot_fn< P >::get_num_iter ( const point2< double > &  p) const [inline, private]

Definition at line 48 of file test.cpp.

template<typename P >
result_type mandelbrot_fn< P >::operator() ( const point_t p) const [inline]

Definition at line 35 of file test.cpp.


Field Documentation

template<typename P >
point_t mandelbrot_fn< P >::_img_size

Definition at line 29 of file test.cpp.

template<typename P >
value_type mandelbrot_fn< P >::_in_color

Definition at line 28 of file test.cpp.

template<typename P >
value_type mandelbrot_fn< P >::_out_color

Definition at line 28 of file test.cpp.

template<typename P >
const int mandelbrot_fn< P >::MAX_ITER = 1000 [static]

Definition at line 30 of file test.cpp.


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