Go to the documentation of this file.
4 #ifndef tools_wroot_base_leaf
5 #define tools_wroot_base_leaf
20 static unsigned int kNullTag() {
return 0;}
23 static const std::string& s_class() {
24 static const std::string s_v(
"tools::wroot::base_leaf");
31 if(
void* p = cmp_cast<base_leaf>(
this,a_class)) {
return p;}
47 if(!a_buffer.
write(fOffset))
return false;
49 bool fIsUnsigned =
false;
50 if(!a_buffer.
write(fIsUnsigned))
return false;
55 if(!a_buffer.
write(kNullTag()))
return false;
64 base_leaf(std::ostream& a_out,
const std::string& a_name,
const std::string& a_title)
75 mem::increment(s_class().c_str());
80 mem::decrement(s_class().c_str());