PandA-2024.02
Macros | Functions
strong_typedef.hpp File Reference

This class macros for the definition of strong typedef. More...

#include <boost/functional/hash/hash.hpp>
Include dependency graph for strong_typedef.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define STRONG_TYPEDEF_FORWARD_DECL(OriginalType, NewType)   class NewType
 
#define STRONG_TYPEDEF(OriginalType, NewType)
 This is quite similar to boost strong typedef, but implicit conversion are disabled. More...
 
#define UINT_STRONG_TYPEDEF(new_type)   STRONG_TYPEDEF(unsigned int, new_type)
 
#define UINT_STRONG_TYPEDEF_FORWARD_DECL(new_type)   STRONG_TYPEDEF_FORWARD_DECL(unsigned int, new_type)
 

Functions

template<typename Dest , typename Source >
Dest from_strongtype_cast (Source source)
 

Detailed Description

This class macros for the definition of strong typedef.

Author
Fabrizio Ferrandi fabri.nosp@m.zio..nosp@m.ferra.nosp@m.ndi@.nosp@m.polim.nosp@m.i.it
Marco Lattuada lattu.nosp@m.ada@.nosp@m.elet..nosp@m.poli.nosp@m.mi.it

Definition in file strong_typedef.hpp.

Macro Definition Documentation

◆ STRONG_TYPEDEF

#define STRONG_TYPEDEF (   OriginalType,
  NewType 
)

This is quite similar to boost strong typedef, but implicit conversion are disabled.

Definition at line 80 of file strong_typedef.hpp.

◆ STRONG_TYPEDEF_FORWARD_DECL

#define STRONG_TYPEDEF_FORWARD_DECL (   OriginalType,
  NewType 
)    class NewType

Definition at line 78 of file strong_typedef.hpp.

◆ UINT_STRONG_TYPEDEF

#define UINT_STRONG_TYPEDEF (   new_type)    STRONG_TYPEDEF(unsigned int, new_type)

Definition at line 244 of file strong_typedef.hpp.

◆ UINT_STRONG_TYPEDEF_FORWARD_DECL

#define UINT_STRONG_TYPEDEF_FORWARD_DECL (   new_type)    STRONG_TYPEDEF_FORWARD_DECL(unsigned int, new_type)

Definition at line 245 of file strong_typedef.hpp.

Function Documentation

◆ from_strongtype_cast()

template<typename Dest , typename Source >
Dest from_strongtype_cast ( Source  source)
inline

Generated on Mon Feb 12 2024 13:03:36 for PandA-2024.02 by doxygen 1.8.13