MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / operator |

Method operator |

TombEngine/Specific/Structures/BitField.cpp:345–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343 }
344
345 BitField BitField::operator |(const BitField& bitField) const
346 {
347 auto chunks = std::vector<ChunkType>(std::max(_chunks.size(), bitField.GetChunks().size()));
348
349 for (unsigned int chunkID = 0; chunkID < _chunks.size(); chunkID++)
350 chunks[chunkID] |= _chunks[chunkID];
351
352 for (unsigned int chunkID = 0; chunkID < bitField.GetChunks().size(); chunkID++)
353 chunks[chunkID] |= bitField.GetChunks()[chunkID];
354
355 return BitField(chunks, std::max(_size, bitField.GetSize()));
356 }
357
358 BitField BitField::operator ^(const BitField& bitField) const
359 {

Callers

nothing calls this directly

Calls 4

BitFieldClass · 0.85
sizeMethod · 0.45
GetSizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected