Test::Region Class Reference
Test for Region memory area More...
Public Member Functions | |
| Region (void) | |
| Initialize test. | |
| bool | run (void) |
| Perform actual tests. | |
| Public Member Functions inherited from Test::Base | |
| Base (std::string s) | |
| Create and register a standard test with name s. | |
| Base (std::string s, TestTags t) | |
| Create and register test with name s and tags t. | |
| const std::string & | name (void) const |
| Return name of test. | |
| TestTags | tags (void) const |
| Return tags for test. | |
| Base * | next (void) const |
| Return next test. | |
| void | next (Base *n) |
| Set next test. | |
| bool | fixpoint (void) |
| Throw a coin whether to compute a fixpoint. | |
| virtual | ~Base (void) |
| Destructor. | |
Static Protected Attributes | |
| static const int | n_repeat = 16 |
| How often to repeat. | |
| static const int | n_blocks = 64 |
| How many blocks to allocate. | |
| static const size_t | size |
| The size of a block. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from Test::Base | |
| static void | sort (void) |
| Sort tests alphabetically. | |
| static Base * | tests (void) |
| Return all tests. | |
| static bool | fixpoint (Gecode::Support::RandomGenerator &rand) |
| Throw a coin whether to compute a fixpoint. | |
| static std::string | str (bool b) |
| Map bool to string. | |
| static std::string | str (int i) |
| Map integer to string. | |
| static std::string | str (const Gecode::IntArgs &i) |
| Map integer array to string. | |
| Gecode::Support::RandomGenerator | _rand |
| Random number generator. | |
| Related Symbols inherited from Test::Base | |
| int | run_registered_tests (int argc, char *argv[]) |
| Run the tests in the process-wide registry. | |
Detailed Description
Test for Region memory area
Definition at line 42 of file region.cpp.
Constructor & Destructor Documentation
◆ Region()
|
inline |
Initialize test.
Definition at line 53 of file region.cpp.
Member Function Documentation
◆ run()
|
inlinevirtual |
Member Data Documentation
◆ n_repeat
|
staticprotected |
How often to repeat.
Definition at line 45 of file region.cpp.
◆ n_blocks
|
staticprotected |
How many blocks to allocate.
Definition at line 47 of file region.cpp.
◆ size
|
staticprotected |
Initial value:
=
The size of a block.
Definition at line 49 of file region.cpp.
The documentation for this class was generated from the following file:
- test/region.cpp
