Nut/OS  5.0.5
API Reference
TemplateCounter< tp_type > Class Template Reference
Inheritance diagram for TemplateCounter< tp_type >:
[legend]
Collaboration diagram for TemplateCounter< tp_type >:
[legend]

Public Member Functions

tp_type value () const
void inc ()
void dec ()
void set (const tp_type &newValue)

Protected Attributes

tp_type m_value

Detailed Description

template<class tp_type>
class TemplateCounter< tp_type >

Examples:

cppdemo/cppdemo.cc.


Member Function Documentation

template<class tp_type>
tp_type TemplateCounter< tp_type >::value ( ) const [inline]
Examples:
cppdemo/cppdemo.cc.
template<class tp_type>
void TemplateCounter< tp_type >::inc ( ) [inline]
Examples:
cppdemo/cppdemo.cc.

Referenced by main().

template<class tp_type>
void TemplateCounter< tp_type >::dec ( ) [inline]
Examples:
cppdemo/cppdemo.cc.

Referenced by main().

template<class tp_type>
void TemplateCounter< tp_type >::set ( const tp_type &  newValue) [inline]

Referenced by main().


Field Documentation


The documentation for this class was generated from the following file: