XWOS API  4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
xwos::Bmp< TNum > 模板类 参考

#include <Bmp.hxx>

结构体

class  Bit
 

Public 成员函数

 Bmp (const Bmp &other)
 
 Bmp (const Bmp &&other)
 
 Bmp ()
 
 Bmp (xwu8_t x[], xwsz_t sz)
 
 Bmp (unsigned long long x)
 
 Bmp (unsigned long x)
 
 Bmp (unsigned int x)
 
 Bmp (long long x)
 
 Bmp (long x)
 
 Bmp (int x)
 
 ~Bmp ()
 
void set ()
 
void set (int pos)
 
void set (unsigned int pos)
 
void set (long pos)
 
void set (unsigned long pos)
 
void set (Bmp< TNum > *msk)
 
void set (Bmp< TNum > &msk)
 
void clear ()
 
void clear (int pos)
 
void clear (unsigned int pos)
 
void clear (long pos)
 
void clear (unsigned long pos)
 
void clear (Bmp< TNum > *msk)
 
void clear (Bmp< TNum > &msk)
 
void flip ()
 
void flip (int pos)
 
void flip (unsigned int pos)
 
void flip (long pos)
 
void flip (unsigned long pos)
 
void flip (Bmp< TNum > *msk)
 
void flip (Bmp< TNum > &msk)
 
xwssq_t ffs ()
 
xwssq_t fls ()
 
xwssq_t ffz ()
 
xwssq_t flz ()
 
xwsz_t weight ()
 
bool all ()
 
bool any ()
 
bool none ()
 
Bmp< TNum > & operator= (const Bmp< TNum > &other)
 
Bmp< TNum > & operator= (const Bmp< TNum > &&other)
 
Bmp< TNum > operator& (const Bmp< TNum > &other)
 
Bmp< TNum > operator& (const Bmp< TNum > &&other)
 
Bmp< TNum > operator| (const Bmp< TNum > &other)
 
Bmp< TNum > operator| (const Bmp< TNum > &&other)
 
Bmp< TNum > operator^ (const Bmp< TNum > &other)
 
Bmp< TNum > operator^ (const Bmp< TNum > &&other)
 
Bmp< TNum > & operator&= (const Bmp< TNum > &other)
 
Bmp< TNum > & operator&= (const Bmp< TNum > &&other)
 
Bmp< TNum > & operator|= (const Bmp< TNum > &other)
 
Bmp< TNum > & operator|= (const Bmp< TNum > &&other)
 
Bmp< TNum > & operator^= (const Bmp< TNum > &other)
 
Bmp< TNum > & operator^= (const Bmp< TNum > &&other)
 
Bmp< TNum > & operator~ ()
 
bool operator== (const Bmp< TNum > &other)
 
bool operator== (const Bmp< TNum > &&other)
 
bool operator!= (const Bmp< TNum > &other)
 
bool operator!= (const Bmp< TNum > &&other)
 
bool operator> (const Bmp< TNum > &other)
 
bool operator> (const Bmp< TNum > &&other)
 
bool operator< (const Bmp< TNum > &other)
 
bool operator< (const Bmp< TNum > &&other)
 
bool operator>= (const Bmp< TNum > &other)
 
bool operator>= (const Bmp< TNum > &&other)
 
bool operator<= (const Bmp< TNum > &other)
 
bool operator<= (const Bmp< TNum > &&other)
 
 operator bool ()
 
Bit operator[] (xwsq_t pos)
 

成员变量

xwbmp_t mData [(((TNum)+(8U *sizeof(xwbmp_t)) - 1U)/(8U *sizeof(xwbmp_t)))]
 

详细描述

template<xwsz_t TNum>
class xwos::Bmp< TNum >

在文件 Bmp.hxx37 行定义.

构造及析构函数说明

◆ Bmp() [1/10]

template<xwsz_t TNum>
xwos::Bmp< TNum >::Bmp ( const Bmp< TNum > &  other)
inline

在文件 Bmp.hxx115 行定义.

116 {
117 xwbmpop_assign(mData, other.mData, TNum);
118 }
xwbmp_t mData[(((TNum)+(8U *sizeof(xwbmp_t)) - 1U)/(8U *sizeof(xwbmp_t)))]
Definition Bmp.hxx:112
void xwbmpop_assign(xwbmp_t *bmp, const xwbmp_t opd[], xwsz_t num)
赋值操作数到位图
Definition xwbop.c:614
函数调用图:

◆ Bmp() [2/10]

template<xwsz_t TNum>
xwos::Bmp< TNum >::Bmp ( const Bmp< TNum > &&  other)
inline

在文件 Bmp.hxx119 行定义.

120 {
121 xwbmpop_assign(mData, other.mData, TNum);
122 }
函数调用图:

◆ Bmp() [3/10]

template<xwsz_t TNum>
xwos::Bmp< TNum >::Bmp ( )
inline

在文件 Bmp.hxx123 行定义.

124 {
125 xwbmpop_c0all(mData, TNum);
126 }
void xwbmpop_c0all(xwbmp_t *bmp, xwsq_t num)
将位图中所有位清0
Definition xwbop.c:658
函数调用图:

◆ Bmp() [4/10]

template<xwsz_t TNum>
xwos::Bmp< TNum >::Bmp ( xwu8_t  x[],
xwsz_t  sz 
)
inline

在文件 Bmp.hxx127 行定义.

128 {
129 xwbmpop_c0all(mData, TNum);
130 if (sz < sizeof(mData)) {
131 memcpy(mData, x, sz);
132 } else {
133 memcpy(mData, x, sizeof(mData));
134 }
135 }
函数调用图:

◆ Bmp() [5/10]

template<xwsz_t TNum>
xwos::Bmp< TNum >::Bmp ( unsigned long long  x)
inline

在文件 Bmp.hxx136 行定义.

137 {
138 xwbmpop_c0all(mData, TNum);
139 if (sizeof(x) < sizeof(mData)) {
140 memcpy(mData, &x, sizeof(x));
141 } else {
142 memcpy(mData, &x, sizeof(mData));
143 }
144 }
函数调用图:

◆ Bmp() [6/10]

template<xwsz_t TNum>
xwos::Bmp< TNum >::Bmp ( unsigned long  x)
inline

在文件 Bmp.hxx145 行定义.

146 {
147 xwbmpop_c0all(mData, TNum);
148 if (sizeof(x) < sizeof(mData)) {
149 memcpy(mData, &x, sizeof(x));
150 } else {
151 memcpy(mData, &x, sizeof(mData));
152 }
153 }
函数调用图:

◆ Bmp() [7/10]

template<xwsz_t TNum>
xwos::Bmp< TNum >::Bmp ( unsigned int  x)
inline

在文件 Bmp.hxx154 行定义.

155 {
156 xwbmpop_c0all(mData, TNum);
157 if (sizeof(x) < sizeof(mData)) {
158 memcpy(mData, &x, sizeof(x));
159 } else {
160 memcpy(mData, &x, sizeof(mData));
161 }
162 }
函数调用图:

◆ Bmp() [8/10]

template<xwsz_t TNum>
xwos::Bmp< TNum >::Bmp ( long long  x)
inline

在文件 Bmp.hxx163 行定义.

164 {
165 xwbmpop_c0all(mData, TNum);
166 if (sizeof(x) < sizeof(mData)) {
167 memcpy(mData, &x, sizeof(x));
168 } else {
169 memcpy(mData, &x, sizeof(mData));
170 }
171 }
函数调用图:

◆ Bmp() [9/10]

template<xwsz_t TNum>
xwos::Bmp< TNum >::Bmp ( long  x)
inline

在文件 Bmp.hxx172 行定义.

173 {
174 xwbmpop_c0all(mData, TNum);
175 if (sizeof(x) < sizeof(mData)) {
176 memcpy(mData, &x, sizeof(x));
177 } else {
178 memcpy(mData, &x, sizeof(mData));
179 }
180 }
函数调用图:

◆ Bmp() [10/10]

template<xwsz_t TNum>
xwos::Bmp< TNum >::Bmp ( int  x)
inline

在文件 Bmp.hxx181 行定义.

182 {
183 xwbmpop_c0all(mData, TNum);
184 if (sizeof(x) < sizeof(mData)) {
185 memcpy(mData, &x, sizeof(x));
186 } else {
187 memcpy(mData, &x, sizeof(mData));
188 }
189 }
函数调用图:

◆ ~Bmp()

template<xwsz_t TNum>
xwos::Bmp< TNum >::~Bmp ( )
inline

在文件 Bmp.hxx190 行定义.

191 {
192 }

成员函数说明

◆ set() [1/7]

template<xwsz_t TNum>
void xwos::Bmp< TNum >::set ( )
inline

在文件 Bmp.hxx193 行定义.

194 {
195 xwbmpop_s1all(mData, TNum);
196 }
void xwbmpop_s1all(xwbmp_t *bmp, xwsq_t num)
将位图中所有位置1
Definition xwbop.c:647
函数调用图:
这是这个函数的调用关系图:

◆ set() [2/7]

template<xwsz_t TNum>
void xwos::Bmp< TNum >::set ( int  pos)
inline

在文件 Bmp.hxx197 行定义.

198 {
199 if ((xwsq_t)pos < TNum) {
200 xwbmpop_s1i(mData, (xwsq_t)pos);
201 }
202 }
unsigned long xwsq_t
Definition type.h:445
void xwbmpop_s1i(xwbmp_t *bmp, xwsq_t n)
将位图中单个位置1
函数调用图:

◆ set() [3/7]

template<xwsz_t TNum>
void xwos::Bmp< TNum >::set ( unsigned int  pos)
inline

在文件 Bmp.hxx203 行定义.

204 {
205 if ((xwsq_t)pos < TNum) {
206 xwbmpop_s1i(mData, (xwsq_t)pos);
207 }
208 }
函数调用图:

◆ set() [4/7]

template<xwsz_t TNum>
void xwos::Bmp< TNum >::set ( long  pos)
inline

在文件 Bmp.hxx209 行定义.

210 {
211 if ((xwsq_t)pos < TNum) {
212 xwbmpop_s1i(mData, (xwsq_t)pos);
213 }
214 }
函数调用图:

◆ set() [5/7]

template<xwsz_t TNum>
void xwos::Bmp< TNum >::set ( unsigned long  pos)
inline

在文件 Bmp.hxx215 行定义.

216 {
217 if ((xwsq_t)pos < TNum) {
218 xwbmpop_s1i(mData, (xwsq_t)pos);
219 }
220 }
函数调用图:

◆ set() [6/7]

template<xwsz_t TNum>
void xwos::Bmp< TNum >::set ( Bmp< TNum > *  msk)
inline

在文件 Bmp.hxx221 行定义.

222 {
223 xwbmpop_s1m(mData, msk->mData, TNum);
224 }
void xwbmpop_s1m(xwbmp_t *bmp, const xwbmp_t msk[], xwsz_t num)
将位图中掩码部分置1
Definition xwbop.c:678
函数调用图:

◆ set() [7/7]

template<xwsz_t TNum>
void xwos::Bmp< TNum >::set ( Bmp< TNum > &  msk)
inline

在文件 Bmp.hxx225 行定义.

226 {
227 xwbmpop_s1m(mData, msk.mData, TNum);
228 }
函数调用图:

◆ clear() [1/7]

template<xwsz_t TNum>
void xwos::Bmp< TNum >::clear ( )
inline

在文件 Bmp.hxx229 行定义.

230 {
231 xwbmpop_c0all(mData, TNum);
232 }
函数调用图:
这是这个函数的调用关系图:

◆ clear() [2/7]

template<xwsz_t TNum>
void xwos::Bmp< TNum >::clear ( int  pos)
inline

在文件 Bmp.hxx233 行定义.

234 {
235 if ((xwsq_t)pos < TNum) {
236 xwbmpop_c0i(mData, (xwsq_t)pos);
237 }
238 }
void xwbmpop_c0i(xwbmp_t *bmp, xwsq_t n)
将位图中单个位清0
函数调用图:

◆ clear() [3/7]

template<xwsz_t TNum>
void xwos::Bmp< TNum >::clear ( unsigned int  pos)
inline

在文件 Bmp.hxx239 行定义.

240 {
241 if ((xwsq_t)pos < TNum) {
242 xwbmpop_c0i(mData, (xwsq_t)pos);
243 }
244 }
函数调用图:

◆ clear() [4/7]

template<xwsz_t TNum>
void xwos::Bmp< TNum >::clear ( long  pos)
inline

在文件 Bmp.hxx245 行定义.

246 {
247 if ((xwsq_t)pos < TNum) {
248 xwbmpop_c0i(mData, (xwsq_t)pos);
249 }
250 }
函数调用图:

◆ clear() [5/7]

template<xwsz_t TNum>
void xwos::Bmp< TNum >::clear ( unsigned long  pos)
inline

在文件 Bmp.hxx251 行定义.

252 {
253 if ((xwsq_t)pos < TNum) {
254 xwbmpop_c0i(mData, (xwsq_t)pos);
255 }
256 }
函数调用图:

◆ clear() [6/7]

template<xwsz_t TNum>
void xwos::Bmp< TNum >::clear ( Bmp< TNum > *  msk)
inline

在文件 Bmp.hxx257 行定义.

258 {
259 xwbmpop_c0m(mData, msk->mData, TNum);
260 }
void xwbmpop_c0m(xwbmp_t *bmp, const xwbmp_t msk[], xwsz_t num)
将位图中掩码部分清0
Definition xwbop.c:699
函数调用图:

◆ clear() [7/7]

template<xwsz_t TNum>
void xwos::Bmp< TNum >::clear ( Bmp< TNum > &  msk)
inline

在文件 Bmp.hxx261 行定义.

262 {
263 xwbmpop_c0m(mData, msk.mData, TNum);
264 }
函数调用图:

◆ flip() [1/7]

template<xwsz_t TNum>
void xwos::Bmp< TNum >::flip ( )
inline

在文件 Bmp.hxx265 行定义.

266 {
267 xwbmpop_not(mData, TNum);
268 }
void xwbmpop_not(xwbmp_t *bmp, xwsz_t num)
将位图按位取反
Definition xwbop.c:910
函数调用图:
这是这个函数的调用关系图:

◆ flip() [2/7]

template<xwsz_t TNum>
void xwos::Bmp< TNum >::flip ( int  pos)
inline

在文件 Bmp.hxx269 行定义.

270 {
271 if ((xwsq_t)pos < TNum) {
272 xwbmpop_x1i(mData, (xwsq_t)pos);
273 }
274 }
void xwbmpop_x1i(xwbmp_t *bmp, xwsq_t n)
将位图中单个位翻转
函数调用图:

◆ flip() [3/7]

template<xwsz_t TNum>
void xwos::Bmp< TNum >::flip ( unsigned int  pos)
inline

在文件 Bmp.hxx275 行定义.

276 {
277 if ((xwsq_t)pos < TNum) {
278 xwbmpop_x1i(mData, (xwsq_t)pos);
279 }
280 }
函数调用图:

◆ flip() [4/7]

template<xwsz_t TNum>
void xwos::Bmp< TNum >::flip ( long  pos)
inline

在文件 Bmp.hxx281 行定义.

282 {
283 if ((xwsq_t)pos < TNum) {
284 xwbmpop_x1i(mData, (xwsq_t)pos);
285 }
286 }
函数调用图:

◆ flip() [5/7]

template<xwsz_t TNum>
void xwos::Bmp< TNum >::flip ( unsigned long  pos)
inline

在文件 Bmp.hxx287 行定义.

288 {
289 if ((xwsq_t)pos < TNum) {
290 xwbmpop_x1i(mData, (xwsq_t)pos);
291 }
292 }
函数调用图:

◆ flip() [6/7]

template<xwsz_t TNum>
void xwos::Bmp< TNum >::flip ( Bmp< TNum > *  msk)
inline

在文件 Bmp.hxx293 行定义.

294 {
295 xwbmpop_x1m(mData, msk->mData, TNum);
296 }
void xwbmpop_x1m(xwbmp_t *bmp, const xwbmp_t msk[], xwsz_t num)
将位图中掩码部分翻转
Definition xwbop.c:720
函数调用图:

◆ flip() [7/7]

template<xwsz_t TNum>
void xwos::Bmp< TNum >::flip ( Bmp< TNum > &  msk)
inline

在文件 Bmp.hxx297 行定义.

298 {
299 xwbmpop_x1m(mData, msk.mData, TNum);
300 }
函数调用图:

◆ ffs()

template<xwsz_t TNum>
xwssq_t xwos::Bmp< TNum >::ffs ( )
inline

在文件 Bmp.hxx301 行定义.

302 {
303 return xwbmpop_ffs(mData, TNum);
304 }
xwssq_t xwbmpop_ffs(xwbmp_t *bmp, xwsz_t num)
在位图中从最低位起查找第一个被置1的位
函数调用图:

◆ fls()

template<xwsz_t TNum>
xwssq_t xwos::Bmp< TNum >::fls ( )
inline

在文件 Bmp.hxx305 行定义.

306 {
307 return xwbmpop_fls(mData, TNum);
308 }
xwssq_t xwbmpop_fls(xwbmp_t *bmp, xwsz_t num)
在位图中从最高位起查找第一个被置1的位
函数调用图:

◆ ffz()

template<xwsz_t TNum>
xwssq_t xwos::Bmp< TNum >::ffz ( )
inline

在文件 Bmp.hxx309 行定义.

310 {
311 return xwbmpop_ffz(mData, TNum);
312 }
xwssq_t xwbmpop_ffz(xwbmp_t *bmp, xwsz_t num)
在位图中从最低位起查找第一个被清0的位
函数调用图:

◆ flz()

template<xwsz_t TNum>
xwssq_t xwos::Bmp< TNum >::flz ( )
inline

在文件 Bmp.hxx313 行定义.

314 {
315 return xwbmpop_flz(mData, TNum);
316 }
xwssq_t xwbmpop_flz(xwbmp_t *bmp, xwsz_t num)
在位图中从最高位起查找第一个被清0的位
函数调用图:

◆ weight()

template<xwsz_t TNum>
xwsz_t xwos::Bmp< TNum >::weight ( )
inline

在文件 Bmp.hxx317 行定义.

318 {
319 return xwbmpop_weight(mData, TNum);
320 }
xwsz_t xwbmpop_weight(xwbmp_t *bmp, xwsz_t num)
在位图中统计被置1的位的个数
Definition xwbop.c:1068
函数调用图:

◆ all()

template<xwsz_t TNum>
bool xwos::Bmp< TNum >::all ( )
inline

在文件 Bmp.hxx322 行定义.

323 {
324 return xwbmpop_t1ma(mData);
325 }
bool xwbmpop_t1ma(xwbmp_t *bmp, const xwbmp_t msk[], xwsz_t num)
测试位图中掩码部分是否全部为1
Definition xwbop.c:746
函数调用图:

◆ any()

template<xwsz_t TNum>
bool xwos::Bmp< TNum >::any ( )
inline

在文件 Bmp.hxx326 行定义.

327 {
328 return xwbmpop_t1mo(mData);
329 }
bool xwbmpop_t1mo(xwbmp_t *bmp, const xwbmp_t msk[], xwsz_t num)
测试位图中掩码部分是否至少有一位为1
Definition xwbop.c:787
函数调用图:
这是这个函数的调用关系图:

◆ none()

template<xwsz_t TNum>
bool xwos::Bmp< TNum >::none ( )
inline

在文件 Bmp.hxx330 行定义.

331 {
332 return xwbmpop_t0ma(mData);
333 }
bool xwbmpop_t0ma(xwbmp_t *bmp, const xwbmp_t msk[], xwsz_t num)
测试位图中掩码部分是否全部为0
Definition xwbop.c:828
函数调用图:

◆ operator=() [1/2]

template<xwsz_t TNum>
Bmp< TNum > & xwos::Bmp< TNum >::operator= ( const Bmp< TNum > &  other)
inline

在文件 Bmp.hxx335 行定义.

336 {
337 if (this != &other) {
338 xwbmpop_assign(mData, other.mData, TNum);
339 }
340 return *this;
341 }
函数调用图:

◆ operator=() [2/2]

template<xwsz_t TNum>
Bmp< TNum > & xwos::Bmp< TNum >::operator= ( const Bmp< TNum > &&  other)
inline

在文件 Bmp.hxx342 行定义.

343 {
344 if (this != &other) {
345 xwbmpop_assign(mData, other.mData, TNum);
346 }
347 return *this;
348 }
函数调用图:

◆ operator&() [1/2]

template<xwsz_t TNum>
Bmp< TNum > xwos::Bmp< TNum >::operator& ( const Bmp< TNum > &  other)
inline

在文件 Bmp.hxx349 行定义.

350 {
351 Bmp tmp(*this);
352 xwbmpop_and(tmp.mData, other.mData, TNum);
353 return tmp;
354 }
void xwbmpop_and(xwbmp_t *bmp, const xwbmp_t opd[], xwsz_t num)
将位图与操作数进行逐位“与”运算
Definition xwbop.c:922
函数调用图:

◆ operator&() [2/2]

template<xwsz_t TNum>
Bmp< TNum > xwos::Bmp< TNum >::operator& ( const Bmp< TNum > &&  other)
inline

在文件 Bmp.hxx355 行定义.

356 {
357 Bmp tmp(*this);
358 xwbmpop_and(tmp.mData, other.mData, TNum);
359 return tmp;
360 }
函数调用图:

◆ operator|() [1/2]

template<xwsz_t TNum>
Bmp< TNum > xwos::Bmp< TNum >::operator| ( const Bmp< TNum > &  other)
inline

在文件 Bmp.hxx361 行定义.

362 {
363 Bmp tmp(*this);
364 xwbmpop_or(tmp.mData, other.mData, TNum);
365 return tmp;
366 }
void xwbmpop_or(xwbmp_t *bmp, const xwbmp_t opd[], xwsz_t num)
将位图与操作数进行逐位“或”运算
Definition xwbop.c:934
函数调用图:

◆ operator|() [2/2]

template<xwsz_t TNum>
Bmp< TNum > xwos::Bmp< TNum >::operator| ( const Bmp< TNum > &&  other)
inline

在文件 Bmp.hxx367 行定义.

368 {
369 Bmp tmp(*this);
370 xwbmpop_or(tmp.mData, other.mData, TNum);
371 return tmp;
372 }
函数调用图:

◆ operator^() [1/2]

template<xwsz_t TNum>
Bmp< TNum > xwos::Bmp< TNum >::operator^ ( const Bmp< TNum > &  other)
inline

在文件 Bmp.hxx373 行定义.

374 {
375 Bmp tmp(*this);
376 xwbmpop_xor(tmp.mData, other.mData, TNum);
377 return tmp;
378 }
void xwbmpop_xor(xwbmp_t *bmp, const xwbmp_t opd[], xwsz_t num)
将位图与操作数进行逐位“异或”运算
Definition xwbop.c:946
函数调用图:

◆ operator^() [2/2]

template<xwsz_t TNum>
Bmp< TNum > xwos::Bmp< TNum >::operator^ ( const Bmp< TNum > &&  other)
inline

在文件 Bmp.hxx379 行定义.

380 {
381 Bmp tmp(*this);
382 xwbmpop_xor(tmp.mData, other.mData, TNum);
383 return tmp;
384 }
函数调用图:

◆ operator&=() [1/2]

template<xwsz_t TNum>
Bmp< TNum > & xwos::Bmp< TNum >::operator&= ( const Bmp< TNum > &  other)
inline

在文件 Bmp.hxx385 行定义.

386 {
387 xwbmpop_and(mData, other.mData, TNum);
388 return *this;
389 }
函数调用图:

◆ operator&=() [2/2]

template<xwsz_t TNum>
Bmp< TNum > & xwos::Bmp< TNum >::operator&= ( const Bmp< TNum > &&  other)
inline

在文件 Bmp.hxx390 行定义.

391 {
392 xwbmpop_and(mData, other.mData, TNum);
393 return *this;
394 }
函数调用图:

◆ operator|=() [1/2]

template<xwsz_t TNum>
Bmp< TNum > & xwos::Bmp< TNum >::operator|= ( const Bmp< TNum > &  other)
inline

在文件 Bmp.hxx395 行定义.

396 {
397 xwbmpop_or(mData, other.mData, TNum);
398 return *this;
399 }
函数调用图:

◆ operator|=() [2/2]

template<xwsz_t TNum>
Bmp< TNum > & xwos::Bmp< TNum >::operator|= ( const Bmp< TNum > &&  other)
inline

在文件 Bmp.hxx400 行定义.

401 {
402 xwbmpop_or(mData, other.mData, TNum);
403 return *this;
404 }
函数调用图:

◆ operator^=() [1/2]

template<xwsz_t TNum>
Bmp< TNum > & xwos::Bmp< TNum >::operator^= ( const Bmp< TNum > &  other)
inline

在文件 Bmp.hxx405 行定义.

406 {
407 xwbmpop_xor(mData, other.mData, TNum);
408 return *this;
409 }
函数调用图:

◆ operator^=() [2/2]

template<xwsz_t TNum>
Bmp< TNum > & xwos::Bmp< TNum >::operator^= ( const Bmp< TNum > &&  other)
inline

在文件 Bmp.hxx410 行定义.

411 {
412 xwbmpop_xor(mData, other.mData, TNum);
413 return *this;
414 }
函数调用图:

◆ operator~()

template<xwsz_t TNum>
Bmp< TNum > & xwos::Bmp< TNum >::operator~ ( )
inline

在文件 Bmp.hxx415 行定义.

416 {
417 xwbmpop_not(mData, TNum);
418 return *this;
419 }
函数调用图:

◆ operator==() [1/2]

template<xwsz_t TNum>
bool xwos::Bmp< TNum >::operator== ( const Bmp< TNum > &  other)
inline

在文件 Bmp.hxx420 行定义.

421 {
422 return (0 == xwbmpop_cmp(mData, other.mData, TNum));
423 }
xwssq_t xwbmpop_cmp(xwbmp_t *bmp, const xwbmp_t opd[], xwsz_t num)
从数组最高元素开始比较两个位图的数值大小
Definition xwbop.c:625
函数调用图:

◆ operator==() [2/2]

template<xwsz_t TNum>
bool xwos::Bmp< TNum >::operator== ( const Bmp< TNum > &&  other)
inline

在文件 Bmp.hxx424 行定义.

425 {
426 return (0 == xwbmpop_cmp(mData, other.mData, TNum));
427 }
函数调用图:

◆ operator!=() [1/2]

template<xwsz_t TNum>
bool xwos::Bmp< TNum >::operator!= ( const Bmp< TNum > &  other)
inline

在文件 Bmp.hxx428 行定义.

429 {
430 return (0 != xwbmpop_cmp(mData, other.mData, TNum));
431 }
函数调用图:

◆ operator!=() [2/2]

template<xwsz_t TNum>
bool xwos::Bmp< TNum >::operator!= ( const Bmp< TNum > &&  other)
inline

在文件 Bmp.hxx432 行定义.

433 {
434 return (0 != xwbmpop_cmp(mData, other.mData, TNum));
435 }
函数调用图:

◆ operator>() [1/2]

template<xwsz_t TNum>
bool xwos::Bmp< TNum >::operator> ( const Bmp< TNum > &  other)
inline

在文件 Bmp.hxx436 行定义.

437 {
438 return (xwbmpop_cmp(mData, other.mData, TNum) > 0);
439 }
函数调用图:

◆ operator>() [2/2]

template<xwsz_t TNum>
bool xwos::Bmp< TNum >::operator> ( const Bmp< TNum > &&  other)
inline

在文件 Bmp.hxx440 行定义.

441 {
442 return (xwbmpop_cmp(mData, other.mData, TNum) > 0);
443 }
函数调用图:

◆ operator<() [1/2]

template<xwsz_t TNum>
bool xwos::Bmp< TNum >::operator< ( const Bmp< TNum > &  other)
inline

在文件 Bmp.hxx444 行定义.

445 {
446 return (xwbmpop_cmp(mData, other.mData, TNum) < 0);
447 }
函数调用图:

◆ operator<() [2/2]

template<xwsz_t TNum>
bool xwos::Bmp< TNum >::operator< ( const Bmp< TNum > &&  other)
inline

在文件 Bmp.hxx448 行定义.

449 {
450 return (xwbmpop_cmp(mData, other.mData, TNum) < 0);
451 }
函数调用图:

◆ operator>=() [1/2]

template<xwsz_t TNum>
bool xwos::Bmp< TNum >::operator>= ( const Bmp< TNum > &  other)
inline

在文件 Bmp.hxx452 行定义.

453 {
454 return (xwbmpop_cmp(mData, other.mData, TNum) >= 0);
455 }
函数调用图:

◆ operator>=() [2/2]

template<xwsz_t TNum>
bool xwos::Bmp< TNum >::operator>= ( const Bmp< TNum > &&  other)
inline

在文件 Bmp.hxx456 行定义.

457 {
458 return (xwbmpop_cmp(mData, other.mData, TNum) >= 0);
459 }
函数调用图:

◆ operator<=() [1/2]

template<xwsz_t TNum>
bool xwos::Bmp< TNum >::operator<= ( const Bmp< TNum > &  other)
inline

在文件 Bmp.hxx460 行定义.

461 {
462 return (xwbmpop_cmp(mData, other.mData, TNum) <= 0);
463 }
函数调用图:

◆ operator<=() [2/2]

template<xwsz_t TNum>
bool xwos::Bmp< TNum >::operator<= ( const Bmp< TNum > &&  other)
inline

在文件 Bmp.hxx464 行定义.

465 {
466 return (xwbmpop_cmp(mData, other.mData, TNum) <= 0);
467 }
函数调用图:

◆ operator bool()

template<xwsz_t TNum>
xwos::Bmp< TNum >::operator bool ( )
inlineexplicit

在文件 Bmp.hxx468 行定义.

469 {
470 return any();
471 }
bool any()
Definition Bmp.hxx:326
函数调用图:

◆ operator[]()

template<xwsz_t TNum>
Bit xwos::Bmp< TNum >::operator[] ( xwsq_t  pos)
inline

在文件 Bmp.hxx472 行定义.

473 {
474 return Bit(this, pos);
475 }

结构体成员变量说明

◆ mData

template<xwsz_t TNum>
xwbmp_t xwos::Bmp< TNum >::mData[(((TNum)+( 8U *sizeof(xwbmp_t)) - 1U)/( 8U *sizeof(xwbmp_t)))]

在文件 Bmp.hxx112 行定义.


该类的文档由以下文件生成: