Lines Matching refs:attributes
0 // attributes.cc
19 #include "attributes.h"
33 attributes = 0;
41 attributes = a;
69 // Display current attributes to user
78 cout << hex << attributes << dec << ". Set fields are:\n";
80 if ((UINT64_C(1) << i) & attributes) {
91 // Display attributes for a partition. Note that partNum is just passed for
98 bitset = (UINT64_C(1) << bitNum) & attributes;
111 cout << "Known attributes are:\n";
121 if (bitValue & attributes) { // bit is set
122 attributes &= ~bitValue; // so unset it
125 attributes |= bitValue; // so set it
132 // Display all defined attributes on the screen (omits undefined bits).
144 // multifaceted attributes access
150 ao_or, ao_nand, ao_xor, ao_assignall, // operate on all attributes (bitmask)
166 cerr << "Unknown attributes operator: " << attributeOperator << endl;
190 // assign all attributes at once
191 case ao_assignall: attributes = attributeBitMask; break;
195 case ao_or: attributes |= attributeBitMask; break;
199 case ao_nand: attributes &= ~attributeBitMask; break;
203 case ao_xor: attributes ^= attributeBitMask; break;
208 << bool (attributeBitMask & attributes) << endl;
224 // Display attributes