neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::basic_scoped_units< Units > Class Template Reference

#include <units.hpp>

Classes

struct  units_scope_ended
 

Public Types

typedef Units units
 

Public Member Functions

 basic_scoped_units (units aNewUnits=current_units())
 
 basic_scoped_units (i_units_context const &aNewContext, units aNewUnits=current_units())
 
 ~basic_scoped_units ()
 
units saved_units () const
 
void end ()
 

Static Public Member Functions

static units current_units ()
 

Detailed Description

template<typename Units>
class neogfx::basic_scoped_units< Units >

Definition at line 146 of file units.hpp.

Member Typedef Documentation

◆ units

template<typename Units >
typedef Units neogfx::basic_scoped_units< Units >::units

Definition at line 153 of file units.hpp.

Constructor & Destructor Documentation

◆ basic_scoped_units() [1/2]

template<typename Units >
neogfx::basic_scoped_units< Units >::basic_scoped_units ( units  aNewUnits = current_units())
inline

Definition at line 156 of file units.hpp.

◆ basic_scoped_units() [2/2]

template<typename Units >
neogfx::basic_scoped_units< Units >::basic_scoped_units ( i_units_context const &  aNewContext,
units  aNewUnits = current_units() 
)
inline

Definition at line 160 of file units.hpp.

◆ ~basic_scoped_units()

template<typename Units >
neogfx::basic_scoped_units< Units >::~basic_scoped_units ( )
inline

Definition at line 164 of file units.hpp.

Member Function Documentation

◆ current_units()

template<typename Units >
static units neogfx::basic_scoped_units< Units >::current_units ( )
inlinestatic

Definition at line 170 of file units.hpp.

◆ end()

template<typename Units >
void neogfx::basic_scoped_units< Units >::end ( )
inline

Definition at line 180 of file units.hpp.

◆ saved_units()

template<typename Units >
units neogfx::basic_scoped_units< Units >::saved_units ( ) const
inline

Definition at line 174 of file units.hpp.


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