Structure with private fields used by the StructValue tests. More...
Public Member Functions | |
| PrivateStructTestData ()=default | |
| Default constructor. | |
| PrivateStructTestData (std::string name, uint16_t count, double value) | |
| Construct an instance with the given field values. | |
| uint16_t | GetCount () const |
| double | GetValue () const |
| bool | operator== (const PrivateStructTestData &) const =default |
| Compare two structures. | |
| void | SetCount (uint16_t count) |
| Set the count field. | |
| void | SetValue (double value) |
| Set the value field. | |
Static Public Member Functions | |
| static PrivateStructTestData | Create (std::string name, uint16_t count, double value) |
| Construct an instance from its field values. | |
Public Attributes | |
| std::string | m_name |
| Name field (publicly accessible). | |
Private Attributes | |
| uint16_t | m_count {} |
| Count field. | |
| double | m_value {} |
| Value field. | |
Structure with private fields used by the StructValue tests.
Definition at line 46 of file struct-value-test-suite.cc.
|
default |
Default constructor.
Referenced by Create(), and operator==().
|
inline |
Construct an instance with the given field values.
| name | The name field. |
| count | The count field. |
| value | The value field. |
Definition at line 59 of file struct-value-test-suite.cc.
|
inlinestatic |
Construct an instance from its field values.
| name | The name field. |
| count | The count field. |
| value | The value field. |
Definition at line 74 of file struct-value-test-suite.cc.
References PrivateStructTestData().
|
inline |
Definition at line 80 of file struct-value-test-suite.cc.
References m_count.
|
inline |
Definition at line 96 of file struct-value-test-suite.cc.
References m_value.
|
default |
Compare two structures.
References PrivateStructTestData().
|
inline |
Set the count field.
| count | The count to set. |
Definition at line 90 of file struct-value-test-suite.cc.
References m_count.
|
inline |
Set the value field.
| value | The value to set. |
Definition at line 106 of file struct-value-test-suite.cc.
References m_value.
|
private |
Count field.
Definition at line 121 of file struct-value-test-suite.cc.
Referenced by PrivateStructTestData(), GetCount(), and SetCount().
| std::string PrivateStructTestData::m_name |
Name field (publicly accessible).
Definition at line 118 of file struct-value-test-suite.cc.
Referenced by PrivateStructTestData().
|
private |
Value field.
Definition at line 122 of file struct-value-test-suite.cc.
Referenced by PrivateStructTestData(), GetValue(), and SetValue().