当前位置: 首页>>代码示例>>C++>>正文


C++ Bundle::numCols方法代码示例

本文整理汇总了C++中Bundle::numCols方法的典型用法代码示例。如果您正苦于以下问题:C++ Bundle::numCols方法的具体用法?C++ Bundle::numCols怎么用?C++ Bundle::numCols使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Bundle的用法示例。


在下文中一共展示了Bundle::numCols方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: WUPException

    BundleView(Bundle<T> & bundle, const uint i1, const uint j1, const uint i2, const uint j2) :
        data(&bundle(i1, j1)),
        cols(j2-j1),
        rows(i2-i1),
        stride(bundle.numCols())
    {
#ifndef WUP_UNSAFE
        if (i1 < 0 || j1 < 0 || i2 > bundle.numRows() || j2 > bundle.numCols() || i2 <= i1 || j2 <= j1)
            throw WUPException("Out of bounds");
#endif
    }
开发者ID:diegofps,项目名称:wup,代码行数:11,代码来源:bundle.hpp

示例2: onFinish

    virtual void
    onFinish()
    {
        if (_noPrint)
            return;

        if (_eachStep)
            return;

#ifdef __ANDROID_API__
        const int numRows = _bundle.numRows();
        const int numCols = _bundle.numCols();
        std::stringstream ss;

        LOGD("%s : %d", _label.c_str(), _onlySample);
        for (int i=0;i<numRows; ++i) {
            ss.clear();
            for (int j=0;j<numCols; ++j)
                ss << _bundle(i, j) << ", ";
            LOGD("%d: %s", i, ss.str().c_str());
        }
#else
        print(_label, " : ", _onlySample);
        print(_bundle);
#endif
        _bundle.clear();
    }
开发者ID:diegofps,项目名称:wup,代码行数:27,代码来源:show.hpp

示例3: BundleView

    BundleView(Bundle<T> & _bundle, const uint _rows, const uint _cols) :
        data(&_bundle(0, 0)),
        cols(_cols),
        rows(_rows),
        stride(_bundle.numCols())
    {

    }
开发者ID:diegofps,项目名称:wup,代码行数:8,代码来源:bundle.hpp

示例4: onExport

 virtual
 void onExport(iwriter & writer)
 {
     writer.putUnsignedInt(_bundle.numCols());
     writer.put(_counter);
     writer.putBool(_eachStep);
     writer.putString(_label);
     writer.put(_onlySample);
 }
开发者ID:diegofps,项目名称:wup,代码行数:9,代码来源:show.hpp


注:本文中的Bundle::numCols方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。