KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
List of all members
Kratos::PrimeNumbers Class Reference

Gives a prime number before or after given number. More...

#include <prime_numbers.h>

Collaboration diagram for Kratos::PrimeNumbers:

Public Member Functions

Life Cycle
 PrimeNumbers ()
 Default constructor. More...
 
 PrimeNumbers (PrimeNumbers const &rOther)=delete
 Copy constructor. More...
 
virtual ~PrimeNumbers ()
 Destructor. More...
 
Operators
PrimeNumbersoperator= (PrimeNumbers const &rOther)=delete
 Assignment operator. More...
 
std::size_t operator[] (std::size_t Index)
 

Static Public Member Functions

Access
static std::size_t GetNumberOfPreCalculatedPrimes ()
 
static std::size_t LargestPreCalculatedPrime ()
 
static std::size_t GetPreCalculatedPrime (std::size_t Index)
 
Inquiry
static bool IsPrime (std::size_t TheNumber)
 

Detailed Description

Gives a prime number before or after given number.

Has an array of precalculated value up to 1e8 and calculates the rest.

Constructor & Destructor Documentation

◆ PrimeNumbers() [1/2]

Kratos::PrimeNumbers::PrimeNumbers ( )
inline

Default constructor.

◆ PrimeNumbers() [2/2]

Kratos::PrimeNumbers::PrimeNumbers ( PrimeNumbers const &  rOther)
delete

Copy constructor.

◆ ~PrimeNumbers()

virtual Kratos::PrimeNumbers::~PrimeNumbers ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ GetNumberOfPreCalculatedPrimes()

static std::size_t Kratos::PrimeNumbers::GetNumberOfPreCalculatedPrimes ( )
inlinestatic

◆ GetPreCalculatedPrime()

static std::size_t Kratos::PrimeNumbers::GetPreCalculatedPrime ( std::size_t  Index)
inlinestatic

◆ IsPrime()

bool Kratos::PrimeNumbers::IsPrime ( std::size_t  TheNumber)
static

◆ LargestPreCalculatedPrime()

static std::size_t Kratos::PrimeNumbers::LargestPreCalculatedPrime ( )
inlinestatic

◆ operator=()

PrimeNumbers& Kratos::PrimeNumbers::operator= ( PrimeNumbers const &  rOther)
delete

Assignment operator.

◆ operator[]()

std::size_t Kratos::PrimeNumbers::operator[] ( std::size_t  Index)
inline

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