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

C:/temp/src/j2k/etc/Divers/Flags.cpp

Go to the documentation of this file.
00001 #ifndef __J2K__Flags_CPP__
00002 #define __J2K__Flags_CPP__
00003 
00004 // List of true/false flags
00005 
00006 #include <j2k/etc/Divers/Flags.hpp>
00007 
00008 inline Flags::Flags()
00009 {
00010   memset( f, FALSE, FSIZE * sizeof( BOOL ) );
00011 }
00012 
00013 inline void Flags::set( register size_t i )
00014 {
00015   assert( i < FSIZE );
00016   f[ i ] = TRUE;
00017 }
00018 
00019 inline void Flags::clear( register size_t i )
00020 {
00021   assert( i < FSIZE );
00022   f[ i ] = FALSE;
00023 }
00024 
00025 inline size_t Flags::read( register size_t i )
00026 {
00027   assert( i < FSIZE );
00028   return f[ i ];
00029 }
00030 
00031 inline size_t Flags::size()
00032 {
00033   return FSIZE;
00034 }
00035 
00036 #endif

Generated on Sun Oct 14 18:46:31 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001