tbx
0.7.5
|
Convenience template to return a member of the class in a collection of pointers as the value for a view. More...
#include <stringviewvalue.h>
Public Member Functions | |
MethodItemPtrViewStringValue (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. | |
Convenience template to return a member of the class in a collection of pointers 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