Go to the documentation of this file.
48 int main(
int argc,
char *argv[])
55 const word listType(is);
60 if (listType ==
"stringList")
62 Info<<
"contiguous = " << contiguous<string>() <<
endl <<
endl;
74 else if (listType ==
"labelList")
76 Info<<
"contiguous = " << contiguous<label>() <<
endl <<
endl;
89 <<
" (seeded: " << hash2 <<
")"
90 <<
": " <<
dec << lst[i] <<
endl;
93 if (contiguous<label>())
101 Info<<
"contiguous hashed value " <<
hex << hash3 <<
endl;
104 else if (listType ==
"labelListList")
113 lst[i].size() *
sizeof(
label)
117 <<
": " <<
dec << lst[i] <<
endl;
121 else if (listType ==
"edgeList")
132 unsigned hash2 = labelPair::Hash<>()(lst[i]);
134 Info<<
hex << hash1 <<
" (as FixedList: " << hash2
135 <<
"): " <<
dec << lst[i] <<
endl;
138 else if (listType ==
"triFaceList")
150 Info<<
hex << hash1 <<
" (as FixedList: " << hash2
151 <<
"): " <<
dec << lst[i] <<
endl;
156 Info<<
"unknown type: " << listType <<
endl;
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
unsigned Hasher(const void *data, size_t len, unsigned seed=0)
Bob Jenkins's 96-bit mixer hashing function (lookup3)
Ostream & endl(Ostream &os)
Add newline and flush stream.
int main(int argc, char *argv[])
bool contiguous< triFace >()
bool contiguous< edge >()
Hash function class for primitives. All non-primitives used to hash entries on hash tables likely nee...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
IOstream & dec(IOstream &io)
static Stream & writeDivider(Stream &os)
Write the standard file section divider.
IOstream & hex(IOstream &io)
Hashing function class, shared by all the derived classes.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T> with a fixed size <Size>.
void size(const label)
Override size to be inconsistent with allocated storage.
bool good() const
Return true if next operation might succeed.