本文整理汇总了C++中Registry::size方法的典型用法代码示例。如果您正苦于以下问题:C++ Registry::size方法的具体用法?C++ Registry::size怎么用?C++ Registry::size使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Registry
的用法示例。
在下文中一共展示了Registry::size方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Pointer
static Registry ®istry()
{
static Registry r;
if( !r.size() )
{
// register standard pointers
r["moveDiagonallyUp"] = new Pointer( "moveDiagonallyUp.png", Imath::V2i( 7 ) );
r["moveDiagonallyDown"] = new Pointer( "moveDiagonallyDown.png", Imath::V2i( 7 ) );
r["moveHorizontally"] = new Pointer( "moveHorizontally.png", Imath::V2i( 9, 5 ) );
r["moveVertically"] = new Pointer( "moveVertically.png", Imath::V2i( 5, 9 ) );
r["nodes"] = new Pointer( "nodes.png", Imath::V2i( 11, 8 ) );
r["objects"] = new Pointer( "objects.png", Imath::V2i( 18 ) );
r["plug"] = new Pointer( "plug.png", Imath::V2i( 9 ) );
r["rgba"] = new Pointer( "rgba.png", Imath::V2i( 12, 7 ) );
r["values"] = new Pointer( "values.png", Imath::V2i( 19, 14 ) );
r["paths"] = new Pointer( "paths.png", Imath::V2i( 8 ) );
r["contextMenu"] = new Pointer( "pointerContextMenu.png", Imath::V2i( 1 ) );
}
return r;
}