Loading...
Searching...
No Matches
cv::v4d::detail Namespace Reference

Classes

class  CLExecScope_t
 
class  FrameBufferContext
 
struct  fun_ptr_helper
 
struct  function_traits
 
struct  function_traits< R(*)(Args...)>
 
struct  function_traits< R(Args...)>
 
struct  function_traits< R(T::*)(Args...) const >
 
struct  function_traits< R(T::*)(Args...)>
 
struct  function_traits< std::function< R(Args...)> >
 
class  GLContext
 
class  Global
 
class  ImGuiContextImpl
 
struct  is_function
 
struct  is_stateless_lambda
 
struct  Lambda
 
class  NanoVGContext
 
class  ParallelContext
 
class  SingleContext
 
class  SinkContext
 
class  SourceContext
 
class  ThreadLocal
 
class  TransactionImpl
 
class  V4DContext
 

Typedefs

typedef cv::ocl::OpenCLExecutionContext CLExecContext_t
 
template<typename T >
using static_not = std::integral_constant< bool, !T::value >
 

Functions

size_t cnz (const cv::UMat &m)
 
std::string demangle (const char *name)
 
uint64_t get_epoch_nanos ()
 
template<const size_t _UniqueId, typename _Res , typename... _ArgTypes>
fun_ptr_helper< _UniqueId, _Res, _ArgTypes... >::pointer_type get_fn_ptr (const std::function< _Res(_ArgTypes...)> &f)
 
static std::size_t index (const std::thread::id id)
 
template<typename T >
std::string int_to_hex (T i)
 
template<typename Tlamba >
std::string lambda_ptr_hex (Tlamba &&l)
 
template<typename T >
std::function< typename std::enable_if< std::is_function< T >::value, T >::type > make_function (T *t)
 
template<typename Tfn >
const string make_id (const string &name, Tfn &&fn, const string &extra="")
 
template<typename Tfn , typename Textra >
const string make_id (const string &name, Tfn &&fn, const Textra &extra)
 
template<typename Tfn >
void print_id (const string &name, Tfn &&fn, const string &extra="")
 
template<typename Tfn , typename Textra >
void print_id (const string &name, Tfn &&fn, const Textra &extra)
 
template<std::size_t Tid>
void run_sync_on_main (std::function< void()> fn)
 

Variables

static thread_local std::mutex mtx_
 
static thread_local bool sync_run_ = false
 

Detailed Description

Private namespace

Typedef Documentation

◆ CLExecContext_t

◆ static_not

template<typename T >
using cv::v4d::detail::static_not = typedef std::integral_constant<bool, !T::value>

Function Documentation

◆ cnz()

size_t cv::v4d::detail::cnz ( const cv::UMat m)

◆ demangle()

std::string cv::v4d::detail::demangle ( const char *  name)

◆ get_epoch_nanos()

uint64_t cv::v4d::detail::get_epoch_nanos ( )
inline

◆ get_fn_ptr()

template<const size_t _UniqueId, typename _Res , typename... _ArgTypes>
fun_ptr_helper< _UniqueId, _Res, _ArgTypes... >::pointer_type cv::v4d::detail::get_fn_ptr ( const std::function< _Res(_ArgTypes...)> &  f)

◆ index()

static std::size_t cv::v4d::detail::index ( const std::thread::id  id)
static

◆ int_to_hex()

template<typename T >
std::string cv::v4d::detail::int_to_hex ( i)

◆ lambda_ptr_hex()

template<typename Tlamba >
std::string cv::v4d::detail::lambda_ptr_hex ( Tlamba &&  l)

◆ make_function()

template<typename T >
std::function< typename std::enable_if< std::is_function< T >::value, T >::type > cv::v4d::detail::make_function ( T *  t)

◆ make_id() [1/2]

template<typename Tfn >
const string cv::v4d::detail::make_id ( const string &  name,
Tfn &&  fn,
const string &  extra = "" 
)

◆ make_id() [2/2]

template<typename Tfn , typename Textra >
const string cv::v4d::detail::make_id ( const string &  name,
Tfn &&  fn,
const Textra &  extra 
)

◆ print_id() [1/2]

template<typename Tfn >
void cv::v4d::detail::print_id ( const string &  name,
Tfn &&  fn,
const string &  extra = "" 
)

◆ print_id() [2/2]

template<typename Tfn , typename Textra >
void cv::v4d::detail::print_id ( const string &  name,
Tfn &&  fn,
const Textra &  extra 
)

◆ run_sync_on_main()

template<std::size_t Tid>
void cv::v4d::detail::run_sync_on_main ( std::function< void()>  fn)

Variable Documentation

◆ mtx_

thread_local std::mutex cv::v4d::detail::mtx_
static

◆ sync_run_

thread_local bool cv::v4d::detail::sync_run_ = false
static