libzypp  14.48.5
zypp::base::ContainerTransform< _Container, _UnaryFunction > Struct Template Reference

#include <ValueTransform.h>

Public Types

typedef _Container Container
 
typedef _UnaryFunction Transformator
 
typedef Container::size_type size_type
 
typedef Container::value_type RawType
 
typedef Transformator::result_type TransformedType
 
typedef Container::const_iterator RawConstIterator
 
typedef transform_iterator
< Transformator, typename
Container::const_iterator > 
TransformedConstIterator
 

Public Member Functions

 ContainerTransform ()
 
 ContainerTransform (Container raw_r)
 
 ContainerTransform (Container raw_r, Transformator transform_r)
 
bool empty () const
 
size_type size () const
 
RawConstIterator rawBegin () const
 
RawConstIterator rawEnd () const
 
const Containerraw () const
 Get the raw value. More...
 
Containerraw ()
 Set the raw value. More...
 
TransformedConstIterator transformedBegin () const
 
TransformedConstIterator transformedEnd () const
 
Container transformed () const
 Return copy with transformed variables (expensive) More...
 
TransformedType transformed (const RawType &raw_r) const
 Return a transformed copy of an arbitrary RawType. More...
 
TransformedType transformed (const RawConstIterator &rawIter_r) const
 Return a transformed copy of a RawConstIterator raw value. More...
 
const Transformatortransformator () const
 Return the transformator. More...
 

Private Attributes

Container _raw
 
Transformator _transform
 

Detailed Description

template<class _Container, class _UnaryFunction>
struct zypp::base::ContainerTransform< _Container, _UnaryFunction >

Definition at line 91 of file ValueTransform.h.

Member Typedef Documentation

template<class _Container, class _UnaryFunction>
typedef _Container zypp::base::ContainerTransform< _Container, _UnaryFunction >::Container

Definition at line 93 of file ValueTransform.h.

template<class _Container, class _UnaryFunction>
typedef _UnaryFunction zypp::base::ContainerTransform< _Container, _UnaryFunction >::Transformator

Definition at line 94 of file ValueTransform.h.

template<class _Container, class _UnaryFunction>
typedef Container::size_type zypp::base::ContainerTransform< _Container, _UnaryFunction >::size_type

Definition at line 95 of file ValueTransform.h.

template<class _Container, class _UnaryFunction>
typedef Container::value_type zypp::base::ContainerTransform< _Container, _UnaryFunction >::RawType

Definition at line 96 of file ValueTransform.h.

template<class _Container, class _UnaryFunction>
typedef Transformator::result_type zypp::base::ContainerTransform< _Container, _UnaryFunction >::TransformedType

Definition at line 97 of file ValueTransform.h.

template<class _Container, class _UnaryFunction>
typedef Container::const_iterator zypp::base::ContainerTransform< _Container, _UnaryFunction >::RawConstIterator

Definition at line 118 of file ValueTransform.h.

template<class _Container, class _UnaryFunction>
typedef transform_iterator<Transformator, typename Container::const_iterator> zypp::base::ContainerTransform< _Container, _UnaryFunction >::TransformedConstIterator

Definition at line 135 of file ValueTransform.h.

Constructor & Destructor Documentation

template<class _Container, class _UnaryFunction>
zypp::base::ContainerTransform< _Container, _UnaryFunction >::ContainerTransform ( )
inline

Definition at line 100 of file ValueTransform.h.

template<class _Container, class _UnaryFunction>
zypp::base::ContainerTransform< _Container, _UnaryFunction >::ContainerTransform ( Container  raw_r)
inlineexplicit

Definition at line 103 of file ValueTransform.h.

template<class _Container, class _UnaryFunction>
zypp::base::ContainerTransform< _Container, _UnaryFunction >::ContainerTransform ( Container  raw_r,
Transformator  transform_r 
)
inline

Definition at line 107 of file ValueTransform.h.

Member Function Documentation

template<class _Container, class _UnaryFunction>
bool zypp::base::ContainerTransform< _Container, _UnaryFunction >::empty ( ) const
inline

Definition at line 112 of file ValueTransform.h.

template<class _Container, class _UnaryFunction>
size_type zypp::base::ContainerTransform< _Container, _UnaryFunction >::size ( ) const
inline

Definition at line 115 of file ValueTransform.h.

template<class _Container, class _UnaryFunction>
RawConstIterator zypp::base::ContainerTransform< _Container, _UnaryFunction >::rawBegin ( ) const
inline

Definition at line 120 of file ValueTransform.h.

template<class _Container, class _UnaryFunction>
RawConstIterator zypp::base::ContainerTransform< _Container, _UnaryFunction >::rawEnd ( ) const
inline

Definition at line 123 of file ValueTransform.h.

template<class _Container, class _UnaryFunction>
const Container& zypp::base::ContainerTransform< _Container, _UnaryFunction >::raw ( ) const
inline

Get the raw value.

Definition at line 127 of file ValueTransform.h.

template<class _Container, class _UnaryFunction>
Container& zypp::base::ContainerTransform< _Container, _UnaryFunction >::raw ( )
inline

Set the raw value.

Definition at line 131 of file ValueTransform.h.

template<class _Container, class _UnaryFunction>
TransformedConstIterator zypp::base::ContainerTransform< _Container, _UnaryFunction >::transformedBegin ( ) const
inline

Definition at line 137 of file ValueTransform.h.

template<class _Container, class _UnaryFunction>
TransformedConstIterator zypp::base::ContainerTransform< _Container, _UnaryFunction >::transformedEnd ( ) const
inline

Definition at line 140 of file ValueTransform.h.

template<class _Container, class _UnaryFunction>
Container zypp::base::ContainerTransform< _Container, _UnaryFunction >::transformed ( ) const
inline

Return copy with transformed variables (expensive)

Definition at line 144 of file ValueTransform.h.

template<class _Container, class _UnaryFunction>
TransformedType zypp::base::ContainerTransform< _Container, _UnaryFunction >::transformed ( const RawType raw_r) const
inline

Return a transformed copy of an arbitrary RawType.

Definition at line 148 of file ValueTransform.h.

template<class _Container, class _UnaryFunction>
TransformedType zypp::base::ContainerTransform< _Container, _UnaryFunction >::transformed ( const RawConstIterator rawIter_r) const
inline

Return a transformed copy of a RawConstIterator raw value.

Definition at line 152 of file ValueTransform.h.

template<class _Container, class _UnaryFunction>
const Transformator& zypp::base::ContainerTransform< _Container, _UnaryFunction >::transformator ( ) const
inline

Return the transformator.

Definition at line 156 of file ValueTransform.h.

Member Data Documentation

template<class _Container, class _UnaryFunction>
Container zypp::base::ContainerTransform< _Container, _UnaryFunction >::_raw
private

Definition at line 160 of file ValueTransform.h.

template<class _Container, class _UnaryFunction>
Transformator zypp::base::ContainerTransform< _Container, _UnaryFunction >::_transform
private

Definition at line 161 of file ValueTransform.h.


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