Just set the id of the node to a value like, for example 0x1, then the bitmask would be 0x1. Ok, maybe this was no good example. But if you know how to use bitmasks in C or C++, I hope you'll understand. Otherwise just search to web how to use bitmasks there are lots of good resources available.