EMANE  1.2.1
EMANE::StatisticNonNumeric< T > Class Template Reference

A non-numeric statistic can be a std::string or an INETAddr. More...

#include <statisticnonnumeric.h>

Inheritance diagram for EMANE::StatisticNonNumeric< T >:
EMANE::Statistic

Public Member Functions

 ~StatisticNonNumeric ()
 
StatisticNonNumeric< T > & operator= (const T &value)
 
get () const
 
Any asAny () const override
 
void clear () override
 

Detailed Description

template<typename T>
class EMANE::StatisticNonNumeric< T >

A non-numeric statistic can be a std::string or an INETAddr.

Definition at line 53 of file statisticnonnumeric.h.

Constructor & Destructor Documentation

◆ ~StatisticNonNumeric()

template<typename T >
EMANE::StatisticNonNumeric< T >::~StatisticNonNumeric ( )

Destroys a statistic instance

Definition at line 38 of file statisticnonnumeric.inl.

Member Function Documentation

◆ asAny()

template<typename T >
EMANE::Any EMANE::StatisticNonNumeric< T >::asAny ( ) const
overridevirtual

Converts the current statistic value to an Any

Returns
statistic value any
Exceptions
AnyExpceptionon conversion failure

Implements EMANE::Statistic.

Definition at line 57 of file statisticnonnumeric.inl.

◆ clear()

template<typename T >
void EMANE::StatisticNonNumeric< T >::clear ( )
overridevirtual

Clears the statistic value

Implements EMANE::Statistic.

Definition at line 64 of file statisticnonnumeric.inl.

◆ get()

template<typename T >
T EMANE::StatisticNonNumeric< T >::get ( ) const

Gets the current statistic value

Returns
statistic value

Definition at line 50 of file statisticnonnumeric.inl.

◆ operator=()

template<typename T >
EMANE::StatisticNonNumeric< T > & EMANE::StatisticNonNumeric< T >::operator= ( const T &  value)

Definition at line 42 of file statisticnonnumeric.inl.


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