Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
ArrayDelegate< C, I, T > Class Template Reference

#include <elm/delegate.h>

Public Member Functions

 ArrayDelegate (C &container, const I &identifier)
 
 ArrayDelegate (const ArrayDelegate &delegate)
 
 operator T (void) const
 
const T & operator* (void) const
 
ArrayDelegate< C, I, T > & operator= (const T &value)
 
ArrayDelegate< C, I, T > & operator= (const ArrayDelegate< C, I, T > &delegate)
 

Detailed Description

template<class C, class I, class T>
class elm::ArrayDelegate< C, I, T >

A delegate for accessing items of a concept::MutableArray.

Parameters
CType of the container.
IType of the index.
TType of the items.

Constructor & Destructor Documentation

◆ ArrayDelegate() [1/2]

ArrayDelegate ( C &  container,
const I &  index 
)
inline

Build a delegate for an item of the given container.

Parameters
containerItem container.
indexItem index.

◆ ArrayDelegate() [2/2]

ArrayDelegate ( const ArrayDelegate< C, I, T > &  delegate)
inline

Build a delegate by cloning.

Parameters
delegateDelegate to clone.

Member Function Documentation

◆ operator T()

operator T ( void  ) const
inline

◆ operator*()

const T& operator* ( void  ) const
inline

◆ operator=() [1/2]

ArrayDelegate<C, I, T>& operator= ( const ArrayDelegate< C, I, T > &  delegate)
inline

◆ operator=() [2/2]

ArrayDelegate<C, I, T>& operator= ( const T &  value)
inline

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