include
ecl
utilities
void.hpp
Go to the documentation of this file.
1
15
/*****************************************************************************
16
** Defines
17
*****************************************************************************/
18
19
#ifndef ECL_UTILITIES_VOID_HPP_
20
#define ECL_UTILITIES_VOID_HPP_
21
22
/*****************************************************************************
23
** Namespaces
24
*****************************************************************************/
25
26
namespace
ecl
{
27
28
/*****************************************************************************
29
** Typedefs
30
*****************************************************************************/
44
typedef
void (*
VoidFunction
)();
45
46
/*****************************************************************************
47
** Classes
48
*****************************************************************************/
57
class
Void
{
58
public
:
59
template
<
typename
OutputStream>
60
friend
OutputStream&
operator <<
(OutputStream& ostream,
const
Void
void_object);
61
62
virtual
~Void
() {}
63
};
64
75
template
<
typename
OutputStream>
76
OutputStream&
operator <<
(OutputStream& ostream,
const
Void void_object) {
return
ostream; }
77
78
};
// Namespace ecl
79
80
81
82
#endif
/*ECL_UTILITIES_VOID_HPP_*/
ecl::Void::~Void
virtual ~Void()
Definition:
void.hpp:68
ecl::Void
A void (null) object.
Definition:
void.hpp:61
ecl::Void::operator<<
friend OutputStream & operator<<(OutputStream &ostream, const Void void_object)
Output stream operator for Void objects.
Definition:
void.hpp:80
ecl::VoidFunction
void(* VoidFunction)()
Convenient type definition for empty functions (void pointers).
Definition:
void.hpp:48
ecl::operator<<
OutputStream & operator<<(OutputStream &ostream, const Void void_object)
Output stream operator for Void objects.
Definition:
void.hpp:80
ecl
Embedded control libraries.
ecl_utilities
Author(s): Daniel Stonier
autogenerated on Wed Mar 2 2022 00:16:32