glibmm 2.66.6
Glib::Value_Enum< T > Class Template Reference

Base class of Glib::Value<T> specializations for enum types. More...

#include <glibmm/value.h>

Inheritance diagram for Glib::Value_Enum< T >:

Public Types

using CppType = T
Public Types inherited from Glib::ValueBase_Enum
using CType = gint

Public Member Functions

void set (CppType data)
CppType get () const
Public Member Functions inherited from Glib::ValueBase
 ValueBase ()
 Initializes the GValue, but without a type.
 ValueBase (const ValueBase & other)
ValueBaseoperator= (const ValueBase & other)
 ~ValueBase () noexcept
void init (GType type)
 Setup the GValue for storing the specified type.
void init (const GValue * value)
 Setup the GValue storing the type and value of the specified value.
void reset ()
 Reset contents to the default value of its type.
GValue * gobj ()
const GValue * gobj () const

Additional Inherited Members

Static Public Member Functions inherited from Glib::ValueBase_Enum
static GType value_type ()
Protected Member Functions inherited from Glib::ValueBase_Enum
void set_enum (int data)
int get_enum () const
Protected Attributes inherited from Glib::ValueBase
GValue gobject_

Detailed Description

template<class T>
class Glib::Value_Enum< T >

Base class of Glib::Value<T> specializations for enum types.

Member Typedef Documentation

◆ CppType

template <class T>
using Glib::Value_Enum< T >::CppType = T

Member Function Documentation

◆ get()

template <class T>
CppType Glib::Value_Enum< T >::get ( ) const
inline

◆ set()

template <class T>
void Glib::Value_Enum< T >::set ( CppType data)
inline