Zen
A cross-platform functional programming language

dictbase< derT, K, V >::found Class Reference

Class holding result of a find() in a dict. More...

#include <zbl.hpp>

List of all members.

Public Member Functions

 found (typename QMap< K, V >::const_iterator iter, typename QMap< K, V >::const_iterator end)
 Default constructor.
 operator bool () const
 Return whether the value is found.
const V & operator* () const
 Return a reference to the found value.

Private Attributes

bool _found
 Whether the value is found.
QMap< K, V >::const_iterator _iter
 Iterator pointing to found value.

Detailed Description

template<typename derT, typename K, typename V>
class z::dictbase< derT, K, V >::found

Class holding result of a find() in a dict.


Constructor & Destructor Documentation

found ( typename QMap< K, V >::const_iterator  iter,
typename QMap< K, V >::const_iterator  end 
) [inline]

Default constructor.

Parameters:
iterThe iterator instance
endLast item in the list

Member Function Documentation

operator bool ( ) const [inline]

Return whether the value is found.

Returns:
True if value is found
const V& operator* ( ) const [inline]

Return a reference to the found value.

Returns:
Reference to the found value

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines