SIRIUS 7.5.0
Electronic structure library and applications
Public Member Functions | Private Attributes | List of all members
sirius::strong_type< T, Tag > Class Template Reference

Public Member Functions

 strong_type (T const &val__)
 
 strong_type (T &&val__)
 
get () const
 
 operator T () const
 
bool operator!= (strong_type< T, Tag > const &rhs__)
 
bool operator== (strong_type< T, Tag > const &rhs__)
 
strong_type< T, Tag > & operator++ (int)
 
strong_type< T, Tag > & operator+= (T rhs__)
 

Private Attributes

val_
 

Detailed Description

template<typename T, typename Tag>
class sirius::strong_type< T, Tag >

Definition at line 31 of file strong_type.hpp.

Constructor & Destructor Documentation

◆ strong_type() [1/2]

template<typename T , typename Tag >
sirius::strong_type< T, Tag >::strong_type ( T const &  val__)
inlineexplicit

Definition at line 37 of file strong_type.hpp.

◆ strong_type() [2/2]

template<typename T , typename Tag >
sirius::strong_type< T, Tag >::strong_type ( T &&  val__)
inlineexplicit

Definition at line 42 of file strong_type.hpp.

Member Function Documentation

◆ get()

template<typename T , typename Tag >
T sirius::strong_type< T, Tag >::get ( ) const
inline

Definition at line 47 of file strong_type.hpp.

◆ operator T()

template<typename T , typename Tag >
sirius::strong_type< T, Tag >::operator T ( ) const
inline

Definition at line 52 of file strong_type.hpp.

◆ operator!=()

template<typename T , typename Tag >
bool sirius::strong_type< T, Tag >::operator!= ( strong_type< T, Tag > const &  rhs__)
inline

Definition at line 57 of file strong_type.hpp.

◆ operator==()

template<typename T , typename Tag >
bool sirius::strong_type< T, Tag >::operator== ( strong_type< T, Tag > const &  rhs__)
inline

Definition at line 62 of file strong_type.hpp.

◆ operator++()

template<typename T , typename Tag >
strong_type< T, Tag > & sirius::strong_type< T, Tag >::operator++ ( int  )
inline

Definition at line 67 of file strong_type.hpp.

◆ operator+=()

template<typename T , typename Tag >
strong_type< T, Tag > & sirius::strong_type< T, Tag >::operator+= ( rhs__)
inline

Definition at line 72 of file strong_type.hpp.

Member Data Documentation

◆ val_

template<typename T , typename Tag >
T sirius::strong_type< T, Tag >::val_
private

Definition at line 34 of file strong_type.hpp.


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