Libpf::Utility::SmartEnumerator< T > Class Template Reference

Trait type to define the a static set of valid values for a StringOption. More...

#include <SmartEnumerators.h>

Inheritance diagram for Libpf::Utility::SmartEnumerator< T >:

Public Member Functions

const std::string & name (void) const
 
const std::string & description (void) const
 
std::vector< Option >::const_iterator options_cbegin () const
 
std::vector< Option >::const_iterator options_cend () const
 
std::size_t options_size (void) const
 
- Public Member Functions inherited from Libpf::Utility::EnumeratorInterface
virtual ~EnumeratorInterface ()=default
 
virtual const std::string & name (void) const =0
 
virtual const std::string & description (void) const =0
 
virtual std::vector< Option >::const_iterator options_cbegin () const =0
 
virtual std::vector< Option >::const_iterator options_cend () const =0
 
virtual std::size_t options_size (void) const =0
 
std::string json (void) const
 

Detailed Description

template<typename T>
class Libpf::Utility::SmartEnumerator< T >

Trait type to define the a static set of valid values for a StringOption.

See also
StringOption, Option

Member Function Documentation

◆ description()

template<typename T >
const std::string & Libpf::Utility::SmartEnumerator< T >::description ( void  ) const
virtual
Returns
the description of the enumerator

Implements Libpf::Utility::EnumeratorInterface.

◆ name()

template<typename T >
const std::string & Libpf::Utility::SmartEnumerator< T >::name ( void  ) const
virtual
Returns
the name of the enumerator

Implements Libpf::Utility::EnumeratorInterface.

◆ options_cbegin()

template<typename T >
std::vector< Option >::const_iterator Libpf::Utility::SmartEnumerator< T >::options_cbegin ( ) const
virtual

◆ options_cend()

template<typename T >
std::vector< Option >::const_iterator Libpf::Utility::SmartEnumerator< T >::options_cend ( ) const
virtual

◆ options_size()

template<typename T >
std::size_t Libpf::Utility::SmartEnumerator< T >::options_size ( void  ) const
virtual

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