• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ NotImplemented函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中NotImplemented函数的典型用法代码示例。如果您正苦于以下问题:C++ NotImplemented函数的具体用法?C++ NotImplemented怎么用?C++ NotImplemented使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: NotImplemented

size_t RandomNumberStore::TransferTo2(BufferedTransformation &target, lword &transferBytes, const std::string &channel, bool blocking)
{
	if (!blocking)
		throw NotImplemented("RandomNumberStore: nonblocking transfer is not implemented by this object");

	transferBytes = UnsignedMin(transferBytes, m_length - m_count);
	m_rng->GenerateIntoBufferedTransformation(target, channel, transferBytes);
	m_count += transferBytes;

	return 0;
}
开发者ID:PearsonDevelopersNetwork,项目名称:LearningStudio-HelloWorld-Python,代码行数:11,代码来源:filters.cpp


示例2: CRYPTOPP_UNUSED

void RandomNumberGenerator::GenerateBlock(byte *output, size_t size)
{
	CRYPTOPP_UNUSED(output), CRYPTOPP_UNUSED(size);

#if 0
	// This breaks AutoSeededX917RNG<T> generators.
	throw NotImplemented("RandomNumberGenerator: GenerateBlock not implemented");
#endif

	ArraySink s(output, size);
	GenerateIntoBufferedTransformation(s, DEFAULT_CHANNEL, size);
}
开发者ID:13971643458,项目名称:qtum,代码行数:12,代码来源:cryptlib.cpp


示例3: areas

Real3 MeshSurface::draw_position(boost::shared_ptr<RandomNumberGenerator>& rng) const
{
#ifdef HAVE_VTK
    vtkPolyData* polydata = reader_->GetOutput();
    std::vector<double> areas(polydata->GetNumberOfCells());
    for (vtkIdType i(0); i < polydata->GetNumberOfCells(); i++)
    {
        vtkCell* cell = polydata->GetCell(i);
        vtkTriangle* triangle = dynamic_cast<vtkTriangle*>(cell);
        double p0[3];
        double p1[3];
        double p2[3];
        triangle->GetPoints()->GetPoint(0, p0);
        triangle->GetPoints()->GetPoint(1, p1);
        triangle->GetPoints()->GetPoint(2, p2);
        const double area = vtkTriangle::TriangleArea(p0, p1, p2);
        // std::cout << "p0: " << p0[0] << " " << p0[1] << " " << p0[2] << std::endl;
        // std::cout << "p1: " << p1[0] << " " << p1[1] << " " << p1[2] << std::endl;
        // std::cout << "p2: " << p2[0] << " " << p2[1] << " " << p2[2] << std::endl;
        // std::cout << "area of triangle " << i << ": " << area << std::endl;
        areas[i] = area;
    }
    const double rnd = rng->uniform(0.0, std::accumulate(areas.begin(), areas.end(), 0.0));
    double totarea = 0.0;
    for (vtkIdType i(0); i < polydata->GetNumberOfCells(); i++)
    {
        totarea += areas[i];
        if (rnd < totarea)
        {
            vtkCell* cell = polydata->GetCell(i);
            vtkTriangle* triangle = dynamic_cast<vtkTriangle*>(cell);
            double p0[3];
            double p1[3];
            double p2[3];
            triangle->GetPoints()->GetPoint(0, p0);
            triangle->GetPoints()->GetPoint(1, p1);
            triangle->GetPoints()->GetPoint(2, p2);
            const Real3 P0(p0[0], p0[1], p0[2]);
            const Real3 P1(p1[0], p1[1], p1[2]);
            const Real3 P2(p2[0], p2[1], p2[2]);
            const Real p(rng->uniform(0.0, 1.0)), q(rng->uniform(0.0, 1.0 - p));
            return (((P1 - P0) * p + (P2 - P0) * q + P0) + shift_) * ratio_;
        }
    }
    throw IllegalState("Never reach here.");
#else
    throw NotImplemented("not implemented yet.");
#endif
}
开发者ID:kozo2,项目名称:ecell4,代码行数:49,代码来源:Mesh.cpp


示例4: GetMessageEncodingInterface

void TF_SignerBase::InputRecoverableMessage(PK_MessageAccumulator &messageAccumulator, const byte *recoverableMessage, unsigned int recoverableMessageLength) const
{
	PK_MessageAccumulatorBase &ma = static_cast<PK_MessageAccumulatorBase &>(messageAccumulator);
	const MessageEncodingInterface &mei = GetMessageEncodingInterface();
	unsigned int maxRecoverableLength = mei.MaxRecoverableLength(MessageRepresentativeBitLength(), GetHashIdentifier().second, ma.AccessHash().DigestSize());

	if (maxRecoverableLength == 0)
		{throw NotImplemented("TF_SignerBase: this algorithm does not support messsage recovery or the key is too short");}
	if (recoverableMessageLength > maxRecoverableLength)
		throw InvalidArgument("TF_SignerBase: the recoverable message part is too long for the given key and algorithm");

	ma.m_recoverableMessage.Assign(recoverableMessage, recoverableMessageLength);
	mei.ProcessRecoverableMessage(
		ma.AccessHash(), 
		recoverableMessage, recoverableMessageLength,
		NULL, 0, ma.m_semisignature);
}
开发者ID:digitalpeer,项目名称:turnstile,代码行数:17,代码来源:pubkey.cpp


示例5: while

std::unique_ptr<CanvasCommand> CanvasCommandFactory::create(CommandLine& commandLine)
{
    std::unique_ptr<CanvasCommand> canvasCommand;
    std::string nextToken;
    while ((nextToken = commandLine.nextToken()).length() > 0)
    {
        try
        {
            if (nextToken==CREATE_CANVAS_TOKEN)
            {
                canvasCommand.reset(new CreateCanvasCommand(commandLine.nextParameter(), commandLine.nextParameter()));
            }
            else if (nextToken==DRAW_LINE_TOKEN)
            {
                canvasCommand.reset(new DrawLineCommand(commandLine.nextParameter(), commandLine.nextParameter(), commandLine.nextParameter(), commandLine.nextParameter()));
            }
            else if (nextToken==DRAW_RECTANGLE_TOKEN)
            {
                canvasCommand.reset(new DrawRectangleCommand(commandLine.nextParameter(), commandLine.nextParameter(), commandLine.nextParameter(), commandLine.nextParameter()));
            }
            else if (nextToken==BUCKET_FILL_TOKEN)
            {
                canvasCommand.reset(new BucketFillCommand(commandLine.nextParameter(), commandLine.nextParameter(), commandLine.nextToken().at(0)));
            }
            else if (nextToken==QUIT_TOKEN)
            {
                // return null
            }
            else
            {
                throw NotImplemented("unknown command request");
            }
        }
        catch (std::logic_error& ex)
        {
            throw BadParameter("invalid parameter");
        }
    }
    return std::move(canvasCommand);
}
开发者ID:jonsl,项目名称:canvas,代码行数:40,代码来源:CanvasCommandFactory.cpp


示例6: switch

Type* Op2::getTypeConstant() {
	switch (op) {
	case ADD:
	case SUB:
	case MUL:
	case DIV:
		return Type::higherType(left->getTypeConstant(), right->getTypeConstant());
	case LT:
	case GT:
	case LEQ:
	case GEQ:
	case EQ:
	case NEQ:
	case LOG_AND:
	case LOG_OR:
	case LOG_XOR:
		return &Type::Bool;
	default:
		throw NotImplemented(std::string("constant caculation ") + left->getTypeConstant()->getName() +
			OpNames[op] + right->getTypeConstant()->getName());
	}
}
开发者ID:rododo-meow,项目名称:jcc,代码行数:22,代码来源:Op2.cpp


示例7: NotImplemented

unsigned int RandomPool::TransferTo2(BufferedTransformation &target, unsigned long &transferBytes, const std::string &channel, bool blocking)
{
    if (!blocking)
        throw NotImplemented("RandomPool: nonblocking transfer is not implemented by this object");

    unsigned int t;
    unsigned long size = transferBytes;

    while (size > (t = pool.size() - getPos))
    {
        target.ChannelPut(channel, pool+getPos, t);
        size -= t;
        Stir();
    }

    if (size)
    {
        target.ChannelPut(channel, pool+getPos, size);
        getPos += size;
    }

    return 0;
}
开发者ID:johntalbain28,项目名称:Stepmania-AMX,代码行数:23,代码来源:randpool.cpp


示例8: NotImplemented

// virtual
LLSD LLHTTPNode::simplePost(const LLSD& input) const
{
	throw NotImplemented();
}
开发者ID:9skunks,项目名称:imprudence,代码行数:5,代码来源:llhttpnode.cpp


示例9: TEST

TEST(PointCloudFactory, Default)
{
    NotImplemented();
}
开发者ID:rvbust,项目名称:Open3D,代码行数:4,代码来源:PointCloudFactory.cpp


示例10: NotImplemented

bool mime::HandlesEverything() const
{
    NotImplemented(_T("mime::HandlesEverything()"));
    return false;
}
开发者ID:DowerChest,项目名称:cb_misc,代码行数:5,代码来源:mime.cpp


示例11: TEST

TEST(RenderOption, Default)
{
    NotImplemented();
}
开发者ID:rvbust,项目名称:Open3D,代码行数:4,代码来源:RenderOption.cpp


示例12: step

 void step(void)
 {
     throw NotImplemented("a step size must be specified.");
 }
开发者ID:hongbopeng,项目名称:ecell4,代码行数:4,代码来源:ODESimulator.hpp


示例13: NotImplemented

IntPoint ClipboardBal::dragLocation() const
{
    // OWB_PRINTF("ClipboardBal::dragLocation\n");
    NotImplemented();
    return IntPoint(0, 0);
}
开发者ID:Chingliu,项目名称:EAWebkit,代码行数:6,代码来源:BCClipboardEA.cpp


示例14: TEST

TEST(RenderOptionWithEditing, Default)
{
    NotImplemented();
}
开发者ID:rvbust,项目名称:Open3D,代码行数:4,代码来源:RenderOptionWithEditing.cpp


示例15: TEST

TEST(GeometryRenderer, Default)
{
    NotImplemented();
}
开发者ID:rvbust,项目名称:Open3D,代码行数:4,代码来源:GeometryRenderer.cpp


示例16: GenerateByte

	byte GenerateByte() {throw NotImplemented("NullRNG: NullRNG should only be passed to functions that don't need to generate random bytes");}
开发者ID:LjApps,项目名称:eMule-VeryCD,代码行数:1,代码来源:cryptlib.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ NotImplementedError函数代码示例发布时间:2022-05-30
下一篇:
C++ NotFoundException函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap