Public Member Functions | Private Member Functions | Private Attributes
PreCalculatedPrimeTable Class Reference

#include <prime_tables.h>

Inheritance diagram for PreCalculatedPrimeTable:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual int GetNextPrime (int p) const
virtual int GetNextPrime (int p) const
virtual bool IsPrime (int n) const
virtual bool IsPrime (int n) const
 PreCalculatedPrimeTable (int max)
 PreCalculatedPrimeTable (int max)
virtual ~PreCalculatedPrimeTable ()
virtual ~PreCalculatedPrimeTable ()

Private Member Functions

void CalculatePrimesUpTo (int max)
void CalculatePrimesUpTo (int max)
void operator= (const PreCalculatedPrimeTable &rhs)
void operator= (const PreCalculatedPrimeTable &rhs)

Private Attributes

bool *const is_prime_
const int is_prime_size_

Detailed Description

Definition at line 80 of file gmock/gtest/samples/prime_tables.h.


Constructor & Destructor Documentation

PreCalculatedPrimeTable::PreCalculatedPrimeTable ( int  max) [inline, explicit]

Definition at line 83 of file gmock/gtest/samples/prime_tables.h.

Definition at line 87 of file gmock/gtest/samples/prime_tables.h.

PreCalculatedPrimeTable::PreCalculatedPrimeTable ( int  max) [inline, explicit]

Definition at line 83 of file gtest/samples/prime_tables.h.

Definition at line 87 of file gtest/samples/prime_tables.h.


Member Function Documentation

void PreCalculatedPrimeTable::CalculatePrimesUpTo ( int  max) [inline, private]

Definition at line 102 of file gmock/gtest/samples/prime_tables.h.

void PreCalculatedPrimeTable::CalculatePrimesUpTo ( int  max) [inline, private]

Definition at line 102 of file gtest/samples/prime_tables.h.

virtual int PreCalculatedPrimeTable::GetNextPrime ( int  p) const [inline, virtual]

Implements PrimeTable.

Definition at line 93 of file gmock/gtest/samples/prime_tables.h.

virtual int PreCalculatedPrimeTable::GetNextPrime ( int  p) const [inline, virtual]

Implements PrimeTable.

Definition at line 93 of file gtest/samples/prime_tables.h.

virtual bool PreCalculatedPrimeTable::IsPrime ( int  n) const [inline, virtual]

Implements PrimeTable.

Definition at line 89 of file gtest/samples/prime_tables.h.

virtual bool PreCalculatedPrimeTable::IsPrime ( int  n) const [inline, virtual]

Implements PrimeTable.

Definition at line 89 of file gmock/gtest/samples/prime_tables.h.

void PreCalculatedPrimeTable::operator= ( const PreCalculatedPrimeTable rhs) [private]
void PreCalculatedPrimeTable::operator= ( const PreCalculatedPrimeTable rhs) [private]

Member Data Documentation

bool *const PreCalculatedPrimeTable::is_prime_ [private]

Definition at line 117 of file gmock/gtest/samples/prime_tables.h.

Definition at line 116 of file gmock/gtest/samples/prime_tables.h.


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


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Sat Jun 8 2019 18:24:59