• 大小: 20.16MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-22
  • 语言: 其他
  • 标签: 19.16  64  32  

资源简介

dlib1916最新编译库,32位+64位都有,只能用在2015以上,亲测可用

资源截图

代码片段和文件信息

// Copyright (C) 2008  Davis E. King (davis@dlib.net)
// License: Boost Software License   See LICENSE.txt for the full license.
#ifndef DLIB_STACK_TRACE_CPp_
#define DLIB_STACK_TRACE_CPp_

#if defined(DLIB_ENABLE_STACK_TRACE) && !defined(NO_MAKEFILE)

#include 
#include 
#include “stack_trace.h“
#include “stack.h“
#include “memory_manager.h“

namespace dlib
{

// ----------------------------------------------------------------------------------------

    namespace 
    {
        struct stack_tracer_data
        {
            stack_tracer_data(
            ) :  funct_name(0)
                 file_name(0)
                 line_number(0)
            {}
            const char* funct_name;
            const char* file_name;
            int line_number;
        };

        using stack_tracer_stack_type = stack::kernel_2a>::kernel_1a;

        stack_tracer_stack_type& get_dlib_stack_trace_stack()
        {
            thread_local stack_tracer_stack_type a;
            return a;
        }
    }

// ----------------------------------------------------------------------------------------

    stack_tracer::
    stack_tracer (
        const char* funct_name
        const char* file_name
        const int line_number
    )
    {
        stack_tracer_data data;
        data.funct_name = funct_name;
        data.file_name = file_name;
        data.line_number = line_number;

        // pop the info onto the function stack trace
        get_dlib_stack_trace_stack().push(data);
    }

// ----------------------------------------------------------------------------------------

    stack_tracer::
    ~stack_tracer()
    {
        stack_tracer_data temp;
        get_dlib_stack_trace_stack().pop(temp);
    }

// ----------------------------------------------------------------------------------------

    const std::string get_stack_trace()
    {
        std::ostringstream sout;
        auto& stack = get_dlib_stack_trace_stack();
        stack.reset();
        while (stack.move_next())
        {
            stack_tracer_data data = stack.element();
            sout << data.file_name << “:“ << data.line_number << “\n    “ << data.funct_name << “\n“;
        }
        return sout.str();
    }

// ----------------------------------------------------------------------------------------

}
#endif

#endif // DLIB_STACK_TRACE_CPp_



 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件         53  2018-11-28 11:31  dlib1916\DLIB_JPEG_SUPPORT.txt

     文件      43137  2018-09-29 09:05  dlib1916\include\dlib\algs.h

     文件       3291  2018-09-29 09:05  dlib1916\include\dlib\all\source.cpp

     文件       4038  2018-09-29 09:05  dlib1916\include\dlib\any\any.h

     文件       6267  2018-09-29 09:05  dlib1916\include\dlib\any\any_abstract.h

     文件       5249  2018-09-29 09:05  dlib1916\include\dlib\any\any_decision_function.h

     文件       6865  2018-09-29 09:05  dlib1916\include\dlib\any\any_decision_function_abstract.h

     文件      27672  2018-09-29 09:05  dlib1916\include\dlib\any\any_function.h

     文件       9461  2018-09-29 09:05  dlib1916\include\dlib\any\any_function_abstract.h

     文件      17732  2018-09-29 09:05  dlib1916\include\dlib\any\any_function_impl.h

     文件       1795  2018-09-29 09:05  dlib1916\include\dlib\any\any_function_impl2.h

     文件       5463  2018-09-29 09:05  dlib1916\include\dlib\any\any_trainer.h

     文件       7283  2018-09-29 09:05  dlib1916\include\dlib\any\any_trainer_abstract.h

     文件        321  2018-09-29 09:05  dlib1916\include\dlib\any.h

     文件        651  2018-09-29 09:05  dlib1916\include\dlib\appveyor\dtest.yml

     文件        678  2018-09-29 09:05  dlib1916\include\dlib\appveyor\dtest_vc2017.yml

     文件        403  2018-09-29 09:05  dlib1916\include\dlib\appveyor\examples.yml

     文件        377  2018-09-29 09:05  dlib1916\include\dlib\appveyor\python.yml

     文件      21084  2018-09-29 09:05  dlib1916\include\dlib\array\array_kernel.h

     文件      11872  2018-09-29 09:05  dlib1916\include\dlib\array\array_kernel_abstract.h

     文件        975  2018-09-29 09:05  dlib1916\include\dlib\array\array_tools.h

     文件       1146  2018-09-29 09:05  dlib1916\include\dlib\array\array_tools_abstract.h

     文件        267  2018-09-29 09:05  dlib1916\include\dlib\array.h

     文件       1650  2018-09-29 09:05  dlib1916\include\dlib\array2d\array2d_generic_image.h

     文件      13993  2018-09-29 09:05  dlib1916\include\dlib\array2d\array2d_kernel.h

     文件      10351  2018-09-29 09:05  dlib1916\include\dlib\array2d\array2d_kernel_abstract.h

     文件      11086  2018-09-29 09:05  dlib1916\include\dlib\array2d\serialize_pixel_overloads.h

     文件        340  2018-09-29 09:05  dlib1916\include\dlib\array2d.h

     文件       9391  2018-09-29 09:05  dlib1916\include\dlib\assert.h

     文件      12563  2018-09-29 09:05  dlib1916\include\dlib\base64\base64_kernel_1.cpp

............此处省略1659个文件信息

评论

共有 条评论