Diploma Thesis Percolation Simulation
C++ Sourcecode Documentation

www.AndreasKrueger.de/thesis/code

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

cluson Class Reference

#include <cluster.h>

Collaboration diagram for cluson:

Collaboration graph
[legend]
List of all members.

Public Methods

 cluson ()
void add_spanning (int direction)
void set_spanning_dirs (LONGBITS direction)
bool spanning ()
bool spanning (int direction)
bool sp_lr ()
bool sp_tb ()
bool sp_alldirs (int dim)

Public Attributes

NUMLIST sphlist

Private Attributes

LONGBITS spanning_dirs

Constructor & Destructor Documentation

cluson::cluson  
 

Definition at line 24 of file cluster.h.

References spanning_dirs.

00024 { spanning_dirs=(LONGBITS)0; }


Member Function Documentation

void cluson::add_spanning int    direction
 

Definition at line 26 of file cluster.h.

References pow(), and spanning_dirs.

Referenced by add_spanning_dir_to_clusters().

00026                                       { 
00027         spanning_dirs|=(LONGBITS)pow(2,direction-1);
00028 }

void cluson::set_spanning_dirs LONGBITS    direction
 

Definition at line 29 of file cluster.h.

References LONGBITS, and spanning_dirs.

Referenced by nonspanning_clusters(), and reset_clusters().

00029                                               { 
00030         spanning_dirs=sp_dirs;
00031 }

bool cluson::sp_alldirs int    dim
 

Definition at line 41 of file cluster.h.

References pow(), and spanning_dirs.

00041                               {         
00042         return spanning_dirs==(LONGBITS)pow(2,dim)-1 ;
00043 }

bool cluson::sp_lr  
 

Definition at line 38 of file cluster.h.

References spanning().

Referenced by analyze::mean_without_lr_spanningcls().

00038 {       return spanning(1); }

bool cluson::sp_tb  
 

Definition at line 39 of file cluster.h.

References spanning().

00039 {       return spanning(2); }

bool cluson::spanning int    direction
 

Definition at line 35 of file cluster.h.

References pow(), and spanning_dirs.

00035                                   {
00036         return ( spanning_dirs&(LONGBITS)pow(2,direction-1) )!=0 ;
00037 }

bool cluson::spanning  
 

Definition at line 33 of file cluster.h.

References spanning_dirs.

Referenced by sp_lr(), and sp_tb().

00033 {  return (spanning_dirs!=(LONGBITS)0 ); }


Member Data Documentation

LONGBITS cluson::spanning_dirs [private]
 

Definition at line 9 of file cluster.h.

Referenced by add_spanning(), cluson(), set_spanning_dirs(), sp_alldirs(), and spanning().

NUMLIST cluson::sphlist
 

Definition at line 11 of file cluster.h.

Referenced by counters::combine(), make_clusterlist_array(), analyze::makehistogram(), analyze::mass_of_all_spanningclusters(), analyze::mean_without_lr_spanningcls(), and reset_clusters().


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




Diploma Thesis Sourcecode Documentation
check out the text and the executable binaries

www.AndreasKrueger.de/thesis/code