ELC in dev
ELC-lang
载入中...
搜索中...
未找到
elc::defs::base::math::prime_factorization_table_t< number_T, number > 模板结构体 参考
elc::defs::base::math::prime_factorization_table_t< number_T, number > 的协作图:
[图例]

Public 类型

typedef prime_factorization_table_t< number_T, numberthis_t
 

Public 成员函数

constexpr prime_factorization_table_t () noexcept
 
constexpr number_T operator[] (size_t index) const noexcept
 
constexpr number_T * begin () noexcept
 
constexpr number_T * end () noexcept
 
constexpr const number_T * begin () const noexcept
 
constexpr const number_T * end () const noexcept
 
constexpr size_t size () const noexcept
 

Public 属性

number_T _table [table_size]
 

静态 Public 属性

static constexpr size_t table_size
 

友元

template<class T >
requires (type_info<remove_cv<T>> == type_info<number_T>)
auto size_of_array_like (const this_t &) noexcept
 
template<class T >
requires (type_info<remove_cv<T>> == type_info<number_T>)
auto begin_of_array_like (this_t &table) noexcept
 
template<class T >
requires (type_info<remove_cv<T>> == type_info<number_T>)
auto end_of_array_like (this_t &table) noexcept
 
template<class T >
requires (type_info<remove_cv<T>> == type_info<number_T>)
auto begin_of_array_like (const this_t &table) noexcept
 
template<class T >
requires (type_info<remove_cv<T>> == type_info<number_T>)
auto end_of_array_like (const this_t &table) noexcept
 

详细描述

template<unsigned_integer_type number_T, number_T number>
struct elc::defs::base::math::prime_factorization_table_t< number_T, number >

在文件 all_defs.cpp5010 行定义.

成员类型定义说明

◆ this_t

template<unsigned_integer_type number_T, number_T number>
typedef prime_factorization_table_t<number_T,number> elc::defs::base::math::prime_factorization_table_t< number_T, number >::this_t

在文件 all_defs.cpp5011 行定义.

构造及析构函数说明

◆ prime_factorization_table_t()

template<unsigned_integer_type number_T, number_T number>
constexpr elc::defs::base::math::prime_factorization_table_t< number_T, number >::prime_factorization_table_t ( )
inlineconstexprnoexcept

在文件 all_defs.cpp5025 行定义.

5025 {
5026 number_T i=2,m=number;
5027 number_T index=0;
5028 while(m!=1){
5029 while(!(m%i)){
5030 _table[index++]=i;
5031 m/=i;
5032 }
5034 }
5035 }
constexpr auto get_prime_num_big_than(T a) noexcept
求大于某数的素数
constexpr T down_cast(U a) noexcept
向下转型至
函数调用图:

成员函数说明

◆ begin() [1/2]

template<unsigned_integer_type number_T, number_T number>
constexpr const number_T * elc::defs::base::math::prime_factorization_table_t< number_T, number >::begin ( ) const
inlineconstexprnoexcept

在文件 all_defs.cpp5046 行定义.

5046 {
5047 return _table;
5048 }

◆ begin() [2/2]

template<unsigned_integer_type number_T, number_T number>
constexpr number_T * elc::defs::base::math::prime_factorization_table_t< number_T, number >::begin ( )
inlineconstexprnoexcept

在文件 all_defs.cpp5040 行定义.

5040 {
5041 return _table;
5042 }

◆ end() [1/2]

template<unsigned_integer_type number_T, number_T number>
constexpr const number_T * elc::defs::base::math::prime_factorization_table_t< number_T, number >::end ( ) const
inlineconstexprnoexcept

在文件 all_defs.cpp5049 行定义.

5049 {
5050 return _table+table_size;
5051 }

◆ end() [2/2]

template<unsigned_integer_type number_T, number_T number>
constexpr number_T * elc::defs::base::math::prime_factorization_table_t< number_T, number >::end ( )
inlineconstexprnoexcept

在文件 all_defs.cpp5043 行定义.

5043 {
5044 return _table+table_size;
5045 }

◆ operator[]()

template<unsigned_integer_type number_T, number_T number>
constexpr number_T elc::defs::base::math::prime_factorization_table_t< number_T, number >::operator[] ( size_t  index) const
inlineconstexprnoexcept

在文件 all_defs.cpp5036 行定义.

5036 {
5037 return _table[index];
5038 }

◆ size()

template<unsigned_integer_type number_T, number_T number>
constexpr size_t elc::defs::base::math::prime_factorization_table_t< number_T, number >::size ( ) const
inlineconstexprnoexcept

在文件 all_defs.cpp5053 行定义.

5053 {
5054 return table_size;
5055 }

友元及相关函数文档

◆ begin_of_array_like [1/2]

template<unsigned_integer_type number_T, number_T number>
template<class T >
requires (type_info<remove_cv<T>> == type_info<number_T>)
auto begin_of_array_like ( const this_t table)
friend

在文件 all_defs.cpp5070 行定义.

5070 {
5071 return table.begin();
5072 }

◆ begin_of_array_like [2/2]

template<unsigned_integer_type number_T, number_T number>
template<class T >
requires (type_info<remove_cv<T>> == type_info<number_T>)
auto begin_of_array_like ( this_t table)
friend

在文件 all_defs.cpp5062 行定义.

5062 {
5063 return table.begin();
5064 }

◆ end_of_array_like [1/2]

template<unsigned_integer_type number_T, number_T number>
template<class T >
requires (type_info<remove_cv<T>> == type_info<number_T>)
auto end_of_array_like ( const this_t table)
friend

在文件 all_defs.cpp5074 行定义.

5074 {
5075 return table.end();
5076 }

◆ end_of_array_like [2/2]

template<unsigned_integer_type number_T, number_T number>
template<class T >
requires (type_info<remove_cv<T>> == type_info<number_T>)
auto end_of_array_like ( this_t table)
friend

在文件 all_defs.cpp5066 行定义.

5066 {
5067 return table.end();
5068 }

◆ size_of_array_like

template<unsigned_integer_type number_T, number_T number>
template<class T >
requires (type_info<remove_cv<T>> == type_info<number_T>)
auto size_of_array_like ( const this_t )
friend

在文件 all_defs.cpp5058 行定义.

5058 {
5059 return table_size;
5060 }

类成员变量说明

◆ _table

template<unsigned_integer_type number_T, number_T number>
number_T elc::defs::base::math::prime_factorization_table_t< number_T, number >::_table[table_size]

在文件 all_defs.cpp5024 行定义.

◆ table_size

template<unsigned_integer_type number_T, number_T number>
constexpr size_t elc::defs::base::math::prime_factorization_table_t< number_T, number >::table_size
staticconstexpr
初始值:
=λ{
number_T i=2,m=number;
size_t aret=0;
while(m!=1){
while(!(m%i)){
++aret;
m/=i;
}
}
return aret;
}()
#define λ
Definition all_defs.cpp:623

在文件 all_defs.cpp5012 行定义.

5012 {
5013 number_T i=2,m=number;
5014 size_t aret=0;
5015 while(m!=1){
5016 while(!(m%i)){
5017 ++aret;
5018 m/=i;
5019 }
5021 }
5022 return aret;
5023 }();

该结构体的文档由以下文件生成: