Skip to content

Commit e70df9c

Browse files
Update to version 1.4, prepare tutorial (#14)
1 parent b2c45d2 commit e70df9c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+92
-159
lines changed

Examples/Primes/LibPrimes_component/Bindings/Cpp/libprimes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.3.2.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
88
99
Abstract: This is an autogenerated C++ Wrapper Implementation file in order to allow
1010
an easy use of Prime Numbers Library

Examples/Primes/LibPrimes_component/Bindings/Cpp/libprimes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.3.2.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
88
99
Abstract: This is an autogenerated plain C Header file in order to allow an easy
1010
use of Prime Numbers Library

Examples/Primes/LibPrimes_component/Bindings/Cpp/libprimes.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.3.2.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
88
99
Abstract: This is an autogenerated C++ Header file in order to allow an easy use
1010
of Prime Numbers Library

Examples/Primes/LibPrimes_component/Bindings/Cpp/libprimes_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.3.2.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
88
99
Abstract: This is an autogenerated plain C Header file with basic types in
1010
order to allow an easy use of Prime Numbers Library

Examples/Primes/LibPrimes_component/Bindings/CppDynamic/libprimes_dynamic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.3.2.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
88
99
Abstract: This is an autogenerated plain C Header file in order to allow an easy
1010
use of Prime Numbers Library

Examples/Primes/LibPrimes_component/Bindings/CppDynamic/libprimes_dynamic.hpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.3.2.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
88
99
Abstract: This is an autogenerated C++ Header file in order to allow an easy
1010
use of Prime Numbers Library
@@ -158,11 +158,11 @@ class CLibPrimesWrapper {
158158
}
159159

160160

161-
void ReleaseInstance (CLibPrimesBaseClass * pInstance);
162-
void GetLibraryVersion (LibPrimes_uint32 & nMajor, LibPrimes_uint32 & nMinor, LibPrimes_uint32 & nMicro);
163-
PLibPrimesFactorizationCalculator CreateFactorizationCalculator ();
164-
PLibPrimesSieveCalculator CreateSieveCalculator ();
165-
void SetJournal (const std::string & sFileName);
161+
inline void ReleaseInstance (CLibPrimesBaseClass * pInstance);
162+
inline void GetLibraryVersion (LibPrimes_uint32 & nMajor, LibPrimes_uint32 & nMinor, LibPrimes_uint32 & nMicro);
163+
inline PLibPrimesFactorizationCalculator CreateFactorizationCalculator ();
164+
inline PLibPrimesSieveCalculator CreateSieveCalculator ();
165+
inline void SetJournal (const std::string & sFileName);
166166

167167
private:
168168
sLibPrimesDynamicWrapperTable m_WrapperTable;
@@ -247,10 +247,10 @@ class CLibPrimesCalculator : public CLibPrimesBaseClass {
247247
{
248248
}
249249

250-
LibPrimes_uint64 GetValue ();
251-
void SetValue (const LibPrimes_uint64 nValue);
252-
void Calculate ();
253-
void SetProgressCallback (const LibPrimesProgressCallback pProgressCallback);
250+
inline LibPrimes_uint64 GetValue ();
251+
inline void SetValue (const LibPrimes_uint64 nValue);
252+
inline void Calculate ();
253+
inline void SetProgressCallback (const LibPrimesProgressCallback pProgressCallback);
254254
};
255255

256256
/*************************************************************************************************************************
@@ -267,7 +267,7 @@ class CLibPrimesFactorizationCalculator : public CLibPrimesCalculator {
267267
{
268268
}
269269

270-
void GetPrimeFactors (std::vector<sLibPrimesPrimeFactor> & PrimeFactorsBuffer);
270+
inline void GetPrimeFactors (std::vector<sLibPrimesPrimeFactor> & PrimeFactorsBuffer);
271271
};
272272

273273
/*************************************************************************************************************************
@@ -284,7 +284,7 @@ class CLibPrimesSieveCalculator : public CLibPrimesCalculator {
284284
{
285285
}
286286

287-
void GetPrimes (std::vector<LibPrimes_uint64> & PrimesBuffer);
287+
inline void GetPrimes (std::vector<LibPrimes_uint64> & PrimesBuffer);
288288
};
289289

290290
/**

Examples/Primes/LibPrimes_component/Bindings/CppDynamic/libprimes_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.3.2.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
88
99
Abstract: This is an autogenerated plain C Header file with basic types in
1010
order to allow an easy use of Prime Numbers Library

Examples/Primes/LibPrimes_component/Bindings/Pascal/Unit_LibPrimes.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
All rights reserved.
77
8-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.3.2.
8+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
99
1010
Abstract: This is an autogenerated Pascal Header file in order to allow an easy
1111
use of Prime Numbers Library
@@ -91,7 +91,7 @@ interface
9191

9292
type
9393

94-
PLibPrimes_ProgressCallback = function(const fProgressPercentage: Single; out pShouldAbort: Cardinal): Integer; cdecl;
94+
PLibPrimes_ProgressCallback = function(const fProgressPercentage: Single; out pShouldAbort: Byte): Integer; cdecl;
9595

9696
(*************************************************************************************************************************
9797
Declaration of handle classes

Examples/Primes/LibPrimes_component/Bindings/Python/LibPrimes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.3.2.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
88
99
Abstract: This is an autogenerated Python file in order to allow an easy
1010
use of Prime Numbers Library

Examples/Primes/LibPrimes_component/Examples/CPP/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.3.2.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
88
99
Abstract: This is an autogenerated CMake Project that demonstrates the
1010
usage of the C++ bindings of Prime Numbers Library

Examples/Primes/LibPrimes_component/Examples/CPP/LibPrimes_example.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.3.2.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
88
99
Abstract: This is an autogenerated C++ application that demonstrates the
1010
usage of the C++ bindings of Prime Numbers Library

Examples/Primes/LibPrimes_component/Examples/CppDynamic/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#[[++
22
3-
Copyright (C) 2018 Automatic Component Toolkit Developers
3+
Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.2.6.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
88
99
Abstract: This is an autogenerated CMake Project that demonstrates the
10-
usage of the Dynamic C++ bindings of Prime Numbers Interface
10+
usage of the Dynamic C++ bindings of Prime Numbers Library
1111
1212
Interface version: 1.2.0
1313

Examples/Primes/LibPrimes_component/Examples/CppDynamic/LibPrimes_example.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
/*++
22
3-
Copyright (C) 2018 Automatic Component Toolkit Developers
3+
Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
8+
79
Abstract: This is an autogenerated C++ application that demonstrates the
8-
usage of the Dynamic C++ bindings of Prime Numbers Interface
9-
Interface version: 1.0.0
10+
usage of the Dynamic C++ bindings of Prime Numbers Library
11+
12+
Interface version: 1.2.0
1013
1114
*/
1215

Examples/Primes/LibPrimes_component/Examples/Pascal/LibPrimes_Example.lpr

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
(*++
22
3-
Copyright (C) 2018 Automatic Component Toolkit Developers
3+
Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
8+
79
Abstract: This is an autogenerated Pascal application that demonstrates the
8-
usage of the Pascal bindings of Prime Numbers Interface
9-
Interface version: 1.0.0
10+
usage of the Pascal bindings of Prime Numbers Library
11+
12+
Interface version: 1.2.0
1013
1114
*)
1215

Examples/Primes/LibPrimes_component/Examples/Python/LibPrimes_Example.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
'''++
22
3-
Copyright (C) 2018 Automatic Component Toolkit Developers
3+
Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
8+
79
Abstract: This is an autogenerated Python application that demonstrates the
8-
usage of the Python bindings of Prime Numbers Interface
9-
Interface version: 1.0.0
10+
usage of the Python bindings of Prime Numbers Library
11+
12+
Interface version: 1.2.0
1013
1114
'''
1215

16+
1317
import os
1418
import sys
1519
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "Bindings", "Python"))

Examples/Primes/LibPrimes_component/Implementations/Cpp/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#[[++
22
3-
Copyright (C) 2018 Automatic Component Toolkit Developers
3+
Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.3.2.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
88
9-
Abstract: This is an autogenerated CMakeLists file for the development of Prime Numbers Interface.
9+
Abstract: This is an autogenerated CMakeLists file for the development of Prime Numbers Library.
1010
1111
Interface version: 1.2.0
1212
@@ -15,7 +15,7 @@ Interface version: 1.2.0
1515

1616
cmake_minimum_required(VERSION 3.5)
1717

18-
### The implementation of the Prime Numbers Interface component
18+
### The implementation of the Prime Numbers Library component
1919
project(LibPrimes)
2020

2121
set (CMAKE_CXX_STANDARD 11)

Examples/Primes/LibPrimes_component/Implementations/Cpp/Interfaces/libprimes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.3.2.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
88
99
Abstract: This is an autogenerated plain C Header file in order to allow an easy
1010
use of Prime Numbers Library

Examples/Primes/LibPrimes_component/Implementations/Cpp/Interfaces/libprimes_interfaceexception.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.3.2.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
88
99
Abstract: This is an autogenerated C++ Implementation file with the basic internal
1010
exception type in order to allow an easy use of Prime Numbers Library

Examples/Primes/LibPrimes_component/Implementations/Cpp/Interfaces/libprimes_interfaceexception.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.3.2.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
88
99
Abstract: This is an autogenerated C++ Header file with the basic internal
1010
exception type in order to allow an easy use of Prime Numbers Library

Examples/Primes/LibPrimes_component/Implementations/Cpp/Interfaces/libprimes_interfacejournal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.3.2.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
88
99
Abstract: This is an autogenerated C++ implementation file in order to allow easy
1010
development of Prime Numbers Library. It provides an automatic Journaling mechanism for the library implementation.

Examples/Primes/LibPrimes_component/Implementations/Cpp/Interfaces/libprimes_interfacejournal.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.3.2.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
88
99
Abstract: This is an autogenerated C++ header file in order to allow easy
1010
development of Prime Numbers Library. It provides an automatic Journaling mechanism for the library implementation.

Examples/Primes/LibPrimes_component/Implementations/Cpp/Interfaces/libprimes_interfaces.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.3.2.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
88
99
Abstract: This is an autogenerated C++ header file in order to allow easy
1010
development of Prime Numbers Library. The implementer of Prime Numbers Library needs to

Examples/Primes/LibPrimes_component/Implementations/Cpp/Interfaces/libprimes_interfacewrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.3.2.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
88
99
Abstract: This is an autogenerated C++ implementation file in order to allow easy
1010
development of Prime Numbers Library. The functions in this file need to be implemented. It needs to be generated only once.

Examples/Primes/LibPrimes_component/Implementations/Cpp/Interfaces/libprimes_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.3.2.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
88
99
Abstract: This is an autogenerated plain C Header file with basic types in
1010
order to allow an easy use of Prime Numbers Library

Examples/Primes/LibPrimes_component/Implementations/Cpp/Stub/libprimes.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
/*++
22
3-
Copyright (C) 2018 Automatic Component Toolkit Developers
3+
Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.4.0.
8+
79
Abstract: This is an autogenerated C++ implementation file in order to allow easy
8-
development of Prime Numbers Interface. It needs to be generated only once.
10+
development of Prime Numbers Library. It needs to be generated only once.
11+
12+
Interface version: 1.2.0
913
1014
*/
1115

Examples/Primes/LibPrimes_component/Implementations/Cpp/Stub/libprimes_calculator.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*++
22
3-
Copyright (C) 2018 Automatic Component Toolkit Developers
3+
Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
@@ -42,4 +42,3 @@ void CLibPrimesCalculator::SetProgressCallback (const LibPrimesProgressCallback
4242
m_Callback = pProgressCallback;
4343
}
4444

45-

Examples/Primes/LibPrimes_component/Implementations/Cpp/Stub/libprimes_calculator.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*++
22
3-
Copyright (C) 2018 Automatic Component Toolkit Developers
3+
Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66

Examples/Primes/LibPrimes_component/Implementations/Cpp/Stub/libprimes_factorizationcalculator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*++
22
3-
Copyright (C) 2018 Automatic Component Toolkit Developers
3+
Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66

Examples/Primes/LibPrimes_component/Implementations/Cpp/Stub/libprimes_factorizationcalculator.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*++
22
3-
Copyright (C) 2018 Automatic Component Toolkit Developers
3+
Copyright (C) 2018 PrimeDevelopers
44
55
All rights reserved.
66
@@ -53,7 +53,8 @@ class CLibPrimesFactorizationCalculator : public virtual ILibPrimesFactorization
5353
* Public member functions to implement.
5454
*/
5555

56-
void GetPrimeFactors(LibPrimes_uint64 nPrimeFactorsBufferSize, LibPrimes_uint64 * pPrimeFactorsNeededCount, sLibPrimesPrimeFactor * pPrimeFactorsBuffer);
56+
void GetPrimeFactors(LibPrimes_uint64 nPrimeFactorsBufferSize, LibPrimes_uint64* pPrimeFactorsNeededCount, sLibPrimesPrimeFactor* pPrimeFactorsBuffer);
57+
5758
};
5859

5960
} // namespace Impl

0 commit comments

Comments
 (0)