-
Notifications
You must be signed in to change notification settings - Fork 163
/
Copy pathheader.h
61 lines (52 loc) · 1.56 KB
/
header.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef HEADER_H_
#define HEADER_H_
#include <stdint.h>
#include <stdbool.h>
/*!
@brief Free function brief description
@par Details
Free function longer description.
@param[in] x - the parameter x
@returns pointer to a static array
*/
uint8_t const *free_fun(uint32_t x);
/**
@brief Class Foo brief description
@par Details
Class Foo longer description.
*/
typedef struct Foo {
//! @brief Attribute x of class Foo brief description
//! @par Details
//! Attribute x of class Foo: longer description.
uint32_t x;
/// \brief Foo::x_dis, Duplicate Inverse Storage for attribute Foo::x
/// \par Details
/// Duplicate Inverse Storage (DIS) for attribute Foo::x: longer description.
uint32_t x_dis;
} Foo;
/*!
@brief Constructor of class Foo brief description
@par Details
Constructor of class Foo longer description.
@param[in] me - the instance pointer (OOP in C)
@param[in] x - the initial value for me->x
*/
void Foo_ctor(Foo * const me, uint32_t const x);
/*!
@brief Verify operation to check the class invariant
@par Details
Operation verify_() of class Foo longer description.
@param[in] me - the instance pointer (OOP in C)
@returns 'true' when the Foo instance verification succeeds, 'false' otherwise.
*/
bool Foo_verify_(Foo const * const me);
/*!
@brief Update operation to update the class invariant
@par Details
Constructor of class Foo longer description.
@param[in] me - the instance pointer (OOP in C)
*/
void Foo_update_(Foo* const me);
extern Foo const Foo_inst; //!< @brief Foo instance brief description (singleton)
#endif // HEADER_H_