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


C++ DataArray::id方法代码示例

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


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

示例1: hasReference

bool Tag::hasReference(const DataArray &reference) const {
    if (!util::checkEntityInput(reference, false)) {
        return false;
    }
    DataArray da = backend()->getReference(reference.name());
    return da && da.id() == reference.id();
}
开发者ID:G-Node,项目名称:nix,代码行数:7,代码来源:Tag.cpp

示例2: data

void Feature::data(const DataArray &data) {
    util::checkEntityInput(data);
    if (!data.isValidEntity()) {
        throw UninitializedEntity();
    }
    backend()->data(data.id());
}
开发者ID:G-Node,项目名称:nix,代码行数:7,代码来源:Feature.cpp

示例3: extents

void MultiTag::extents(const DataArray &extents) {
    if (extents == none) {
        backend()->extents(none);
    }
    else {
        backend()->extents(extents.id());
    }
}
开发者ID:neurodebian,项目名称:nix,代码行数:8,代码来源:MultiTag.cpp

示例4: data

void Feature::data(const DataArray &data) {
    if (data == none) {
        throw std::runtime_error("Empty data entity (DataArray) given");
    }
    else {
        backend()->data(data.id());
    }
}
开发者ID:asobolev,项目名称:nix,代码行数:8,代码来源:Feature.cpp

示例5: block

FeatureHDF5::FeatureHDF5(const shared_ptr<IFile> &file, const shared_ptr<IBlock> &block, const Group &group,
                         const string &id, DataArray data, LinkType link_type, time_t time)
    : EntityHDF5(file, group, id, time), block(block)
{
    linkType(link_type);
    // TODO: the line below currently throws an exception if the DataArray
    // is not in block - to consider if we prefer copying it to the block
    this->data(data.id());
}
开发者ID:neurodebian,项目名称:nix,代码行数:9,代码来源:FeatureHDF5.cpp

示例6: EntityFS

FeatureFS::FeatureFS(const std::shared_ptr<base::IFile> &file, const std::shared_ptr<base::IBlock> &block, const std::string &loc,
                     const std::string &id, DataArray data, LinkType link_type, time_t time)
    : EntityFS(file, (bfs::path(loc) / bfs::path(id)).string(), id, time), block(block)
{
    linkType(link_type);
    // TODO: the line below currently throws an exception if the DataArray
    // is not in block - to consider if we prefer copying it to the block
    this->data(data.id());
}
开发者ID:G-Node,项目名称:nix,代码行数:9,代码来源:FeatureFS.cpp

示例7: createFeature

Feature Tag::createFeature(const DataArray &data, LinkType link_type) {
    if (data == none) {
        throw std::runtime_error("Tag::createFeature: Empty DataArray entity given!");
    }
    return backend()->createFeature(data.id(), link_type);
}
开发者ID:asobolev,项目名称:nix,代码行数:6,代码来源:Tag.cpp

示例8: removeReference

bool Tag::removeReference(const DataArray &reference) {
    if (reference == none) {
        throw std::runtime_error("Tag::removeReference: Empty DataArray entity given!");
    }
    return backend()->removeReference(reference.id());
}
开发者ID:asobolev,项目名称:nix,代码行数:6,代码来源:Tag.cpp

示例9: addReference

void Tag::addReference(const DataArray &reference) {
    if (reference == none) {
        throw std::runtime_error("Tag::addReference: Empty DataArray entity given!");
    }
    backend()->addReference(reference.id());
}
开发者ID:asobolev,项目名称:nix,代码行数:6,代码来源:Tag.cpp

示例10: createFeature

Feature Tag::createFeature(const DataArray &data, LinkType link_type) {
    if (!util::checkEntityInput(data)) {
        throw UninitializedEntity();
    }
    return backend()->createFeature(data.id(), link_type);
}
开发者ID:G-Node,项目名称:nix,代码行数:6,代码来源:Tag.cpp

示例11: removeReference

bool MultiTag::removeReference(const DataArray &reference) {
    util::checkEntityInput(reference);
    return backend()->removeReference(reference.id());
}
开发者ID:neurodebian,项目名称:nix,代码行数:4,代码来源:MultiTag.cpp

示例12: addReference

void MultiTag::addReference(const DataArray &reference) {
    util::checkEntityInput(reference);
    backend()->addReference(reference.id());
}
开发者ID:neurodebian,项目名称:nix,代码行数:4,代码来源:MultiTag.cpp

示例13: hasReference

bool MultiTag::hasReference(const DataArray &reference) const {
    util::checkEntityInput(reference);
    return backend()->hasReference(reference.id());
}
开发者ID:neurodebian,项目名称:nix,代码行数:4,代码来源:MultiTag.cpp

示例14: positions

void MultiTag::positions(const DataArray &positions) {
    util::checkEntityInput(positions);
    backend()->positions(positions.id());
}
开发者ID:neurodebian,项目名称:nix,代码行数:4,代码来源:MultiTag.cpp

示例15: removeDataArray

bool Group::removeDataArray(const DataArray &data_array) {
    if (!util::checkEntityInput(data_array, false)) {
        return false;
    }
    return backend()->removeDataArray(data_array.id());
}
开发者ID:Prabhnith,项目名称:nix,代码行数:6,代码来源:Group.cpp


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