From 956328e80741c88cdae6d98b07be4171c98f4e26 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 30 May 2005 05:23:22 +0000 Subject: Added docs for base: BoolSet git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1565 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/base_8h-source.html | 37 ++++++++++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) (limited to 'docs/module-doc/base_8h-source.html') diff --git a/docs/module-doc/base_8h-source.html b/docs/module-doc/base_8h-source.html index 437322d94..9a2058149 100644 --- a/docs/module-doc/base_8h-source.html +++ b/docs/module-doc/base_8h-source.html @@ -53,9 +53,40 @@ 00088 char* GetExt(std::string key); 00089 }; 00090 -00091 #endif -00092 -
Generated on Wed May 25 22:02:04 2005 for InspIRCd by +00091 const int bitfields[] = {1,2,4,8,16,32,64,128}; +00092 const int inverted_bitfields[] = {~1,~2,~4,~8,~16,~32,~64,~128}; +00093 +00098 class BoolSet +00099 { +00100 char bits; +00101 +00102 public: +00103 +00106 BoolSet(); +00107 +00110 BoolSet(char bitmask); +00111 +00116 void Set(int number); +00117 +00124 bool Get(int number); +00125 +00130 void Unset(int number); +00131 +00136 void Invert(int number); +00137 +00140 bool operator==(BoolSet other); +00141 +00144 BoolSet operator|(BoolSet other); +00145 +00148 BoolSet operator&(BoolSet other); +00149 +00152 bool operator=(BoolSet other); +00153 }; +00154 +00155 +00156 #endif +00157 +
Generated on Mon May 30 05:15:18 2005 for InspIRCd by doxygen 1.3.3
-- cgit v1.2.3