Commit Graph

515 Commits

Author SHA1 Message Date
Peter D. Barnes, Jr
1dc223f85a core: mark event impl function typedefs as maybe_unused 2021-12-02 21:00:50 +00:00
Gabriel Ferreira
3c604d5b2e Update docs with CMake and ns3 wrapper 2021-12-01 12:29:56 -08:00
Gabriel Ferreira
9c876c7f5a CMake buildsystem 2021-12-01 12:29:55 -08:00
Tommaso Pecorella
3ec15efca2 core: fix some doxygen warnings 2021-11-25 00:17:52 +01:00
Eduardo Almeida
5dc117216a Fix doxygen warning 2021-11-04 14:19:29 -07:00
Eduardo Almeida
a2efceffb2 Simplify trivial bool statements 2021-11-04 14:19:29 -07:00
Tommaso Pecorella
d1169d40ad core: fix some doxygen warnings 2021-10-24 17:14:32 +02:00
Alexander Krotov
d8fe6bac00 core: (merges !623) Print available values on EnumChecker::GetValue () error 2021-09-25 12:42:23 -07:00
Peter D. Barnes, Jr
7c48447ffa core: Add hashing functor for creating hash of a Ptr 2021-09-15 22:01:48 +02:00
Tommaso Pecorella
dbb8b67ad8 core (fixes #452) Add TracedCallback::IsEmpty 2021-09-01 04:13:57 +02:00
Tommaso Pecorella
73a14518e7 core: (fixes #444) Remove Pareto::Mean attribute 2021-08-30 20:57:24 +00:00
Tommaso Pecorella
6ed23c3ae1 core: (fixes #445) update doc for Timer::State 2021-08-23 19:52:57 +00:00
Michael Scoggin
0f3fbffcd7 core: (merges !621) Add DistanceSquared and LengthSquared methods to Vectors
Complements existing methods to avoid unnecessary square roots in some cases
2021-08-18 20:56:40 -07:00
Michael Scoggin
a02b47a08a core: (merges !620) add operator to ptr to facilitate std alg 2021-08-18 16:22:55 -07:00
Tom Henderson
f1f2877c81 core: Update deprecation macro definitions 2021-07-31 07:48:30 -07:00
Stefano Avallone
ac6c4c2e69 core: Create<>() forwards parameters to constructors
Just like CreateObject does.
2021-07-22 07:29:42 +00:00
Peter D. Barnes, Jr
09d2a6e9c6 build: (fixes #52) Fix and standardize boost detection 2021-06-17 12:09:25 -07:00
Tommaso Pecorella
e2f1ff084b core: fix doxygen warnings 2021-05-01 00:19:55 +02:00
Steven Smith
bbcea3e502 core: (fixes #387) Fix MakeCallbackAccessor compilation error
Use more specific properties of containers to identify containers for specialization
2021-04-20 10:11:05 -07:00
Tommaso Pecorella
b6ee0842ac internet: deprecate Icmpv6RA::[G,S]etFlags 2021-03-19 01:11:00 +00:00
Chappidi Yoga Satwik
854ca2ed34 core (fixes #349): Warn about Config::SetDefault() of deprecated attribute 2021-03-01 09:25:33 -08:00
Tommaso Pecorella
d2d5459888 core: fix trickle-timer compilation on clang gt 10 2021-02-07 10:12:44 +00:00
Tommaso Pecorella
457142a618 core: Trickle timer implementation 2021-02-06 04:47:50 +00:00
Tom Henderson
84ead2465d core: (fixes #302) Fix NormalRandomVariable cache values
Credit to Peter Barnes for finding bug and suggesting solution.  Also
affected the GammaRandomVariable (also fixed in this pach).
2020-12-28 13:38:49 -08:00
Peter D. Barnes, Jr
11231ff23c Complete the doxy, show parallelism of GetDefault specializations. 2020-12-22 07:08:14 -08:00
Peter D. Barnes, Jr
c631ccbac5 core: (fixes #277) make Time::As() print with autoscaled unit 2020-12-22 07:08:14 -08:00
Mathew Bielejeski
d72ef6ed2f core: (fixes #310) Change Length::Unit from enum class to plain enum
The script to generate python bindings does not currently support
c++11 strongly typed enums (enum class).
2020-12-19 13:23:49 -08:00
Mathew Bielejeski
60f11eedb9 core: (fixes #313) Manually parse input string when using libc++
There appears to be a bug in the libc++ implementation of istream
where it fails to extract values from strings that do not have a space
between the value and the unit symbol.  This patch provides a string
parsing method that does not rely on istream.
2020-12-19 11:54:49 -08:00
Mathew Bielejeski
2cea1e4ccd core: (merges !434) Length class to support length values with units 2020-12-02 20:05:29 -08:00
Peter D. Barnes, Jr
7889786c30 core: (fixes #265) Time is not rounded when created from int64x64_t 2020-11-27 21:10:11 -08:00
Peter D. Barnes, Jr
2340fcf260 core: Time::RoundTo (unit) to round Time to any unit
Merge of !475
2020-11-27 17:59:51 -08:00
Peter D. Barnes, Jr
eb432c90a5 core: int64x64_t GetInt() and Round(), with test cases
Merge of !473
2020-11-27 16:54:51 -08:00
Tom Henderson
7c8776111c core: Update Doxygen for ShowProgress class 2020-10-18 07:42:27 -07:00
Tommaso Pecorella
eeadfbb182 core: (fixes !426) Align TimeWithUnit printing to the "normal" double behaviour
The new time printing format uses "automatic" promotion to scientific
notation - just like for normal doubles.
2020-09-30 08:37:41 +00:00
Tom Henderson
a7df3b6a2e core: Add NS_DEPRECATED_3_32 tag 2020-09-29 09:42:11 -07:00
Mathew Bielejeski
cbf04e69e1 build: (fix #259, merge !411) Minimize rebuilds due to git repository update
* Add --enable-build-version option to control build version feature
 * Disable build version when --enable-build-version is not specified
 * Update getting started tutorial to reflect the new build option
2020-09-27 16:20:50 -07:00
Peter D. Barnes, Jr
b90d4dee6d core: Move Set (void) to .h to terminate recursion. 2020-09-26 08:44:08 -07:00
Tommaso Pecorella
35271f301f core: fix AttributeContainerValue::Get 2020-09-22 11:57:16 +02:00
Jared Dulmage
d244597a2b Documentation, better conformance to AttributeChecker conventions
Both PairChecker and AttributeContainerChecker factory functions
modified to return more generic AttributeCheckers similar to other
attribute types. By removing the templated return type, the internal
templated classes become necessary to define checkers for each
templated type. This follows the pattern in PointerChecker and
ObjectContainerChecker.

The pair-value-test-suite and attribute-container-test-suite were
amended to account for the changes in the checker factories. All
tests continue to pass.

Plenty of documentation was added to PairValue and AttributeContainerValue
and I also removed some dead code.
2020-09-20 15:33:38 -07:00
Jared Dulmage
c8f2bf250e Addressed comments for nsnam/ns-3-dev MR 91
- Removed unnecessary files src/core/model/{attribute-container,pair}.cc
- Removed 'explicit' modifier to PairChecker
- Modified output stream operator for PairValue; update PairValueTestCase
- Updated src/core/wscript to latest master
- Added Pair and AttributeContainer to utils/print-introspected-doxygen.cc
2020-09-20 14:52:02 -07:00
Jared Dulmage
9392a452d8 Copyright and contact to Caliola Engineering, LLC 2020-09-20 14:52:02 -07:00
Jared Dulmage
643378b816 Removed extended-attribute-helper.h
This file should be part of another merge request.
2020-09-20 14:52:02 -07:00
Jared Dulmage
4f4c893e52 STL container and pair attributes
This commit adds the ability to read / write attributes corresponding
to STL containers or pair structures.  Testcases are included and
demonstrate how to add container or pair member variables as
attributes to your class.
2020-09-20 14:52:02 -07:00
Stefano Avallone
787a711ca3 core: Pass an arbitrary number of arguments to ObjectFactory::Set 2020-09-15 09:40:30 +02:00
Tom Henderson
fa9e6cc531 core: (fixes #233) Align Config::ConnectWithoutContext with Config::Connect 2020-09-12 15:20:03 -07:00
Peter Barnes
35350ab51d core: (fixes #210): add simulation time and node printers to NS_FATAL... 2020-09-03 08:04:02 +00:00
Peter Barnes
c7c2e76d41 core: (fixes #247) unlimited arguments in MakeEnumChecker 2020-08-24 18:50:07 +00:00
Jordan Dorham
81b740721f Merge pull request #15 in S3/s3-simulator from S3-19-time-arithmetic-implement to develop
Squashed commit of the following:

commit 1162a5c942c7c2a366883a3b4f5f47feface9344
Author: Peter D. Barnes, Jr <barnes26@llnl.gov>
Date:   Wed Mar 18 16:44:50 2020 -0700

    core: assert Time > 0 in operator< (Time, EventId) refinement

commit 83161ebb6f56fd467498528a5b54f2d6ef1bceba
Author: Peter D. Barnes, Jr <barnes26@llnl.gov>
Date:   Wed Mar 18 15:59:38 2020 -0700

    core: check-style nstime.h

commit d8a0c906997bd7608e19dfd93484477c9b121a67
Author: Peter D. Barnes, Jr <barnes26@llnl.gov>
Date:   Wed Mar 18 15:56:34 2020 -0700

    core: assert Time > 0 in operator< (Time, EventId)

commit 466e66031b6f26e7aaede00be7d8c692382f2b04
Author: Peter D. Barnes, Jr <barnes26@llnl.gov>
Date:   Wed Mar 18 14:41:02 2020 -0700

    core: check-style

commit 5fd40536a23ef683d9eb673a45b492efbe175750
Author: Peter D. Barnes, Jr <barnes26@llnl.gov>
Date:   Wed Mar 18 14:21:33 2020 -0700

    core: operator<(Time, EventId), and doxy
2020-08-20 08:43:40 +00:00
Mathew Bielejeski
5d13b2b80c build: Create version.cache file with dummy data when git tags are absent
* Change version tag and ClosestTag values to be ns-3.xx
* Fix string values to have the proper format
* Allow check-version to proceed even if git task is not present
* Remove git package requirement from Docker containers
* Create git_ns3_version_info task only when HAVE_NS3_REPO is defined
* Change tag glob from ns-3* to ns-3.[0-9]*
* Use version tag to make output consistent with waf --check-version
2020-08-18 15:39:34 -07:00
Mathew Bielejeski
32e95f8228 Make build information accessible by programs by extracting data from the local git repository (or a standalone file if a git repository is not present).
Changes

* Adds a new class named Version to the core module
* Adds a template file to the core module named version-defines.h.in
* Adds --PrintVersion and --version arguments to the CommandLine class.
* Creates a new waf tool which queries the local git repository and extracts build information from itCreate a waf task to extract version information from git repository
2020-08-11 20:20:05 +00:00