C++ Library Extensions 2022.12.09
To help learn modern C++ programming
tpf::ncrnpr::permutation Class Reference

#include <tpf_ncrnpr.hpp>

Public Types

using number_t = big_unsigned_t
 

Public Member Functions

 permutation ()
 
template<typename Type1 , typename Type2 >
 permutation (Type1 n, Type2 r)
 
 permutation (const permutation &)=default
 
permutationoperator= (const permutation &)=default
 
number_t operator() () const
 
template<typename Type1 , typename Type2 >
number_t operator() (Type1 n, Type2 r)
 
template<typename Type >
 operator Type () const
 

Protected Member Functions

void reset ()
 

Protected Attributes

number_t m_n {}
 
number_t m_r {}
 
number_t m_npr {1}
 

Friends

std::ostream & operator<< (std::ostream &os, const permutation &p)
 

Detailed Description

Definition at line 1221 of file tpf_ncrnpr.hpp.

Member Typedef Documentation

◆ number_t

Constructor & Destructor Documentation

◆ permutation() [1/3]

tpf::ncrnpr::permutation::permutation ( )
inline

Definition at line 1237 of file tpf_ncrnpr.hpp.

◆ permutation() [2/3]

template<typename Type1 , typename Type2 >
tpf::ncrnpr::permutation::permutation ( Type1  n,
Type2  r 
)
inline

Definition at line 1240 of file tpf_ncrnpr.hpp.

◆ permutation() [3/3]

tpf::ncrnpr::permutation::permutation ( const permutation )
default

Member Function Documentation

◆ operator Type()

template<typename Type >
tpf::ncrnpr::permutation::operator Type ( ) const
inline

Definition at line 1258 of file tpf_ncrnpr.hpp.

◆ operator()() [1/2]

number_t tpf::ncrnpr::permutation::operator() ( ) const
inline

Definition at line 1246 of file tpf_ncrnpr.hpp.

◆ operator()() [2/2]

template<typename Type1 , typename Type2 >
number_t tpf::ncrnpr::permutation::operator() ( Type1  n,
Type2  r 
)
inline

Definition at line 1249 of file tpf_ncrnpr.hpp.

Here is the call graph for this function:

◆ operator=()

permutation & tpf::ncrnpr::permutation::operator= ( const permutation )
default

◆ reset()

void tpf::ncrnpr::permutation::reset ( )
inlineprotected

Definition at line 1230 of file tpf_ncrnpr.hpp.

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const permutation p 
)
friend

Definition at line 1260 of file tpf_ncrnpr.hpp.

Member Data Documentation

◆ m_n

number_t tpf::ncrnpr::permutation::m_n {}
mutableprotected

Definition at line 1227 of file tpf_ncrnpr.hpp.

◆ m_npr

number_t tpf::ncrnpr::permutation::m_npr {1}
mutableprotected

Definition at line 1228 of file tpf_ncrnpr.hpp.

◆ m_r

number_t tpf::ncrnpr::permutation::m_r {}
protected

Definition at line 1227 of file tpf_ncrnpr.hpp.


The documentation for this class was generated from the following file: