bioformats  5.1.6
Public Types | Public Member Functions | Private Attributes | List of all members
ome::bioformats::tiff::ValueProxy< V > Class Template Reference

Proxy for getting and setting a Field value. More...

#include <ome/bioformats/tiff/Field.h>

Public Types

typedef V value_type
 The value type being wrapped.
 

Public Member Functions

 ValueProxy (value_type &value)
 Construct from value. More...
 
 ~ValueProxy ()
 Destructor.
 
ValueProxyoperator= (const ValueProxy &value)
 Assign from a ValueProxy. More...
 
ValueProxyoperator= (const value_type &value)
 Assign from value_type. More...
 
template<typename F >
ValueProxyoperator= (const Field< F > &field)
 Assign from Field. More...
 
value_typeget ()
 Get the wrapped value. More...
 
const value_typeget () const
 Get the wrapped value. More...
 

Private Attributes

V & value
 The wrapped value.
 

Detailed Description

template<typename V>
class ome::bioformats::tiff::ValueProxy< V >

Proxy for getting and setting a Field value.

This wraps a value to allow it to be assigned a value from a Field as the left hand side of an expression.

Note
the lifetime of this wrapper may not exceed that of the wrapped value since it is stored by reference.

Constructor & Destructor Documentation

template<typename V >
ome::bioformats::tiff::ValueProxy< V >::ValueProxy ( value_type value)
inlineexplicit

Construct from value.

Parameters
valuethe value to wrap.

Member Function Documentation

template<typename V >
value_type& ome::bioformats::tiff::ValueProxy< V >::get ( )
inline

Get the wrapped value.

Returns
the wrapped value.

References ome::bioformats::tiff::ValueProxy< V >::value.

template<typename V >
const value_type& ome::bioformats::tiff::ValueProxy< V >::get ( ) const
inline

Get the wrapped value.

Returns
the wrapped value.

References ome::bioformats::tiff::ValueProxy< V >::value.

template<typename V >
ValueProxy& ome::bioformats::tiff::ValueProxy< V >::operator= ( const ValueProxy< V > &  value)
inline

Assign from a ValueProxy.

Parameters
valuethe value to assign.
Returns
the ValueProxy.

References ome::bioformats::tiff::ValueProxy< V >::value.

template<typename V >
ValueProxy& ome::bioformats::tiff::ValueProxy< V >::operator= ( const value_type value)
inline

Assign from value_type.

Parameters
valuethe value to assign.
Returns
the ValueProxy.

References ome::bioformats::tiff::ValueProxy< V >::value.

template<typename V >
template<typename F >
ValueProxy& ome::bioformats::tiff::ValueProxy< V >::operator= ( const Field< F > &  field)
inline

Assign from Field.

Parameters
fieldthe field to assign.
Returns
the ValueProxy.

References ome::bioformats::tiff::Field< Tag >::get().


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