tbx  0.7.5
Public Member Functions | List of all members
tbx::view::MethodItemViewStringValue< T, C, I > Class Template Reference

Convenience template to return a member of the class in a collection as the value for a view. More...

#include <stringviewvalue.h>

Inheritance diagram for tbx::view::MethodItemViewStringValue< T, C, I >:
tbx::view::ItemViewStringValue tbx::view::ItemViewValue< std::string >

Public Member Functions

 MethodItemViewStringValue (C *collection, T(I::*method)() const)
 Construct for the given collection with the given data retrieval method.
 
virtual std::string value (unsigned int index) const
 Get the value for the index by calling the method from the constructor on the object.
 

Detailed Description

template<class T, class C, class I>
class tbx::view::MethodItemViewStringValue< T, C, I >

Convenience template to return a member of the class in a collection as the value for a view.

T is the type returned and is converted using the tbx::to_string method C is the collection to return from I is the type of the items in the collection


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