molecular
Public Member Functions | List of all members
molecular::util::DynamicScoping< _Key, _ValueSuperType >::Binding< ValueSubType > Class Template Reference

Automatically binds a variable to the current scope. More...

#include <DynamicScoping.h>

Inheritance diagram for molecular::util::DynamicScoping< _Key, _ValueSuperType >::Binding< ValueSubType >:
molecular::util::DynamicScoping< _Key, _ValueSuperType >::ManualBinding< ValueSubType > molecular::util::DynamicScoping< _Key, _ValueSuperType >::SkeletalManualBinding

Public Member Functions

 Binding (Key key, DynamicScoping &scoping)
 
 ~Binding ()
 
void operator= (ValueSubType value)
 
ValueSubType & operator* ()
 
ValueSubType * operator-> ()
 

Additional Inherited Members

- Protected Member Functions inherited from molecular::util::DynamicScoping< _Key, _ValueSuperType >::ManualBinding< ValueSubType >
 ManualBinding (Key key, DynamicScoping &scoping)
 
void operator= (ValueSubType value)
 
ValueSubType & operator* ()
 
ValueSubType * operator-> ()
 
- Protected Member Functions inherited from molecular::util::DynamicScoping< _Key, _ValueSuperType >::SkeletalManualBinding
 SkeletalManualBinding (Key key, DynamicScoping &scoping, ValueSuperType *value)
 
void Bind ()
 
void Unbind ()
 
- Protected Attributes inherited from molecular::util::DynamicScoping< _Key, _ValueSuperType >::ManualBinding< ValueSubType >
ValueSubType mCurrentValue
 
- Protected Attributes inherited from molecular::util::DynamicScoping< _Key, _ValueSuperType >::SkeletalManualBinding
ValueSuperTypemOriginalPointer = nullptr
 

Detailed Description

template<class _Key, class _ValueSuperType = void>
template<class ValueSubType>
class molecular::util::DynamicScoping< _Key, _ValueSuperType >::Binding< ValueSubType >

Automatically binds a variable to the current scope.

Use this only on the stack. Access the contained data by dereferencing the Binding.

Constructor & Destructor Documentation

template<class _Key, class _ValueSuperType = void>
template<class ValueSubType>
molecular::util::DynamicScoping< _Key, _ValueSuperType >::Binding< ValueSubType >::Binding ( Key  key,
DynamicScoping scoping 
)
inline
template<class _Key, class _ValueSuperType = void>
template<class ValueSubType>
molecular::util::DynamicScoping< _Key, _ValueSuperType >::Binding< ValueSubType >::~Binding ( )
inline

Member Function Documentation

template<class _Key, class _ValueSuperType = void>
template<class ValueSubType>
ValueSubType& molecular::util::DynamicScoping< _Key, _ValueSuperType >::Binding< ValueSubType >::operator* ( )
inline
template<class _Key, class _ValueSuperType = void>
template<class ValueSubType>
ValueSubType* molecular::util::DynamicScoping< _Key, _ValueSuperType >::Binding< ValueSubType >::operator-> ( )
inline
template<class _Key, class _ValueSuperType = void>
template<class ValueSubType>
void molecular::util::DynamicScoping< _Key, _ValueSuperType >::Binding< ValueSubType >::operator= ( ValueSubType  value)
inline

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