Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

bitlist.c File Reference

#include <volume_io/internal_volume_io.h>
#include <bicpl/data_structures.h>

Include dependency graph for bitlist.c:

Include dependency graph

Go to the source code of this file.

Functions

public void create_bitlist (int n_bits, bitlist_struct *bitlist)
public void zero_bitlist (bitlist_struct *bitlist)
public void fill_bitlist (bitlist_struct *bitlist)
public void set_bitlist_bit (bitlist_struct *bitlist, int bit_index, BOOLEAN value)
public BOOLEAN get_bitlist_bit (bitlist_struct *bitlist, int bit_index)
public void delete_bitlist (bitlist_struct *bitlist)
public void create_bitlist_3d (int nx, int ny, int nz, bitlist_3d_struct *bitlist)
public void zero_bitlist_3d (bitlist_3d_struct *bitlist)
public void get_bitlist_3d_sizes (bitlist_3d_struct *bitlist, int *nx, int *ny, int *nz)
public void fill_bitlist_3d (bitlist_3d_struct *bitlist)
public void set_bitlist_bit_3d (bitlist_3d_struct *bitlist, int x, int y, int z, BOOLEAN value)
public BOOLEAN get_bitlist_bit_3d (bitlist_3d_struct *bitlist, int x, int y, int z)
public void delete_bitlist_3d (bitlist_3d_struct *bitlist)
public Status io_bitlist_3d (FILE *file, IO_types io_type, bitlist_3d_struct *bitlist)


Function Documentation

public void create_bitlist int  n_bits,
bitlist_struct bitlist
 

Definition at line 35 of file bitlist.c.

References bitlist_struct::bits, BITS_PER_BITLIST_WORD, bitlist_struct::n_words, and zero_bitlist().

public void create_bitlist_3d int  nx,
int  ny,
int  nz,
bitlist_3d_struct bitlist
 

Definition at line 197 of file bitlist.c.

References bitlist_3d_struct::bits, BITS_PER_BITLIST_WORD, bitlist_3d_struct::n_z_words, bitlist_3d_struct::nx, nx, bitlist_3d_struct::ny, ny, bitlist_3d_struct::nz, nz, and zero_bitlist_3d().

Referenced by fill_connected_voxels().

public void delete_bitlist bitlist_struct bitlist  ) 
 

Definition at line 171 of file bitlist.c.

References bitlist_struct::bits, and bitlist_struct::n_words.

public void delete_bitlist_3d bitlist_3d_struct bitlist  ) 
 

Definition at line 381 of file bitlist.c.

References bitlist_3d_struct::bits, bitlist_3d_struct::nx, bitlist_3d_struct::ny, and bitlist_3d_struct::nz.

Referenced by fill_connected_voxels().

public void fill_bitlist bitlist_struct bitlist  ) 
 

Definition at line 83 of file bitlist.c.

References bitlist_type, bitlist_struct::bits, and bitlist_struct::n_words.

public void fill_bitlist_3d bitlist_3d_struct bitlist  ) 
 

Definition at line 269 of file bitlist.c.

References bitlist_type, bitlist_3d_struct::bits, bitlist_3d_struct::n_z_words, bitlist_3d_struct::nx, bitlist_3d_struct::ny, and y.

public void get_bitlist_3d_sizes bitlist_3d_struct bitlist,
int *  nx,
int *  ny,
int *  nz
 

Definition at line 245 of file bitlist.c.

References nx, bitlist_3d_struct::nx, ny, bitlist_3d_struct::ny, nz, and bitlist_3d_struct::nz.

public BOOLEAN get_bitlist_bit bitlist_struct bitlist,
int  bit_index
 

Definition at line 140 of file bitlist.c.

References bitlist_type, bitlist_struct::bits, BITS_PER_BITLIST_WORD_MINUS_1, and LOG_BITS_PER_BITLIST_WORD.

public BOOLEAN get_bitlist_bit_3d bitlist_3d_struct bitlist,
int  x,
int  y,
int  z
 

Definition at line 347 of file bitlist.c.

References bitlist_type, bitlist_3d_struct::bits, BITS_PER_BITLIST_WORD_MINUS_1, FALSE, LOG_BITS_PER_BITLIST_WORD, and y.

Referenced by fill_connected_voxels(), and voxel_might_contain_boundary().

public Status io_bitlist_3d FILE *  file,
IO_types  io_type,
bitlist_3d_struct bitlist
 

Definition at line 405 of file bitlist.c.

References bitlist_3d_struct::bits, bitlist_3d_struct::n_z_words, bitlist_3d_struct::nx, bitlist_3d_struct::ny, and y.

public void set_bitlist_bit bitlist_struct bitlist,
int  bit_index,
BOOLEAN  value
 

Definition at line 107 of file bitlist.c.

References bitlist_type, bitlist_struct::bits, BITS_PER_BITLIST_WORD_MINUS_1, and LOG_BITS_PER_BITLIST_WORD.

public void set_bitlist_bit_3d bitlist_3d_struct bitlist,
int  x,
int  y,
int  z,
BOOLEAN  value
 

Definition at line 303 of file bitlist.c.

References bitlist_type, bitlist_3d_struct::bits, BITS_PER_BITLIST_WORD_MINUS_1, LOG_BITS_PER_BITLIST_WORD, and y.

Referenced by fill_connected_voxels(), and voxel_might_contain_boundary().

public void zero_bitlist bitlist_struct bitlist  ) 
 

Definition at line 61 of file bitlist.c.

References bitlist_type, bitlist_struct::bits, and bitlist_struct::n_words.

Referenced by create_bitlist().

public void zero_bitlist_3d bitlist_3d_struct bitlist  ) 
 

Definition at line 228 of file bitlist.c.

References bitlist_type, bitlist_3d_struct::bits, bitlist_3d_struct::n_z_words, bitlist_3d_struct::nx, bitlist_3d_struct::ny, and y.

Referenced by create_bitlist_3d().


Generated on Wed Jul 28 09:10:59 2004 for BICPL by doxygen 1.3.7