本文整理汇总了C++中StateWriter::write方法的典型用法代码示例。如果您正苦于以下问题:C++ StateWriter::write方法的具体用法?C++ StateWriter::write怎么用?C++ StateWriter::write使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StateWriter
的用法示例。
在下文中一共展示了StateWriter::write方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: dump_state
// DebugAllocator::dump_state
void DebugAllocator::dump_state( StateWriter & i_state_writer )
{
i_state_writer.write( "type", "debug" );
i_state_writer.write_mem_size( "heading_nomansland_size", m_heading_nomansland_size );
i_state_writer.write_mem_size( "tailing_nomansland_size", m_tailing_nomansland_size );
DecoratorAllocator::dump_state( i_state_writer );
}
示例2: dump_state
// DecoratorAllocator::dump_state
void DecoratorAllocator::dump_state( StateWriter & i_state_writer )
{
if( m_dest_allocator != nullptr )
{
i_state_writer.tab( "allocator" );
m_dest_allocator->dump_state( i_state_writer );
i_state_writer.untab();
}
else
{
i_state_writer.write( "target", "null" );
}
}