binary_helper< ball< C, R, V > > Struct Template Reference

#include <ball.hpp>

Inheritance diagram for binary_helper< ball< C, R, V > >:
void_binary_helper< ball< C, R, V > >

List of all members.

Static Public Member Functions


Detailed Description

template<typename C, typename R, typename V>
struct mmx::binary_helper< ball< C, R, V > >

Definition at line 209 of file ball.hpp.


Member Function Documentation

static generic access ( const ball< C, R, V > &  x,
nat  i 
) [static, inherited]
static ball<C,R,V> assemble ( const generic v  )  [inline, static]

Reimplemented from void_binary_helper< ball< C, R, V > >.

Definition at line 216 of file ball.hpp.

References Ball, and mmx::vector_access().

00216                                                  {
00217     return Ball (as<C> (vector_access (v, 0)),
00218                  as<R> (vector_access (v, 1))); }

static generic disassemble ( const ball< C, R, V > &  z  )  [inline, static]

Reimplemented from void_binary_helper< ball< C, R, V > >.

Definition at line 214 of file ball.hpp.

References mmx::center(), mmx::gen_vec(), and mmx::radius().

00214                                                     {
00215     return gen_vec (as<generic> (center (z)), as<generic> (radius (z))); }

static generic full_type_name (  )  [inline, static]

Reimplemented from void_binary_helper< ball< C, R, V > >.

Definition at line 212 of file ball.hpp.

References mmx::C, Full_type_name, mmx::gen(), and R.

00212                                           {
00213     return gen ("Ball", Full_type_name (C), Full_type_name (R)); }

static ball<C,R,V> read ( const port in  )  [inline, static]

Reimplemented from void_binary_helper< ball< C, R, V > >.

Definition at line 222 of file ball.hpp.

References Ball, mmx::C, and R.

00222                                            {
00223     C c= binary_read<C> (in);
00224     R r= binary_read<R> (in);
00225     return Ball (c, r, false); }

static string short_type_name (  )  [inline, static]

Reimplemented from void_binary_helper< ball< C, R, V > >.

Definition at line 210 of file ball.hpp.

References mmx::C, R, and Short_type_name.

00210                                           {
00211     return "Ba" * Short_type_name (C) * Short_type_name (R); }

static nat size ( const ball< C, R, V > &  x  )  [static, inherited]
static void write ( const port out,
const ball< C, R, V > &  z 
) [inline, static]

Reimplemented from void_binary_helper< ball< C, R, V > >.

Definition at line 219 of file ball.hpp.

References mmx::center(), and mmx::radius().

00219                                                             {
00220     binary_write<C> (out, center (z));
00221     binary_write<R> (out, radius (z)); }


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

Generated on 6 Dec 2012 for numerix by  doxygen 1.6.1