Class TextInterface::VectorOfInterfaces

template<class V, class Get, class Size>
class VectorOfInterfaces : public TextInterface::Attribute<V>

Dynamically embeds the interfaces of elements in a vector.

In this template: V is a vector of elements; Get is the method of V that returns the element at the specified index; and Size is the method of V that returns the number of elements in it

Public Functions

inline VectorOfInterfaces(const std::string &p, Get g, Size s)

Construct from a pointer to element attribute interface.

inline VectorOfInterfaces(const VectorOfInterfaces &copy)

Copy constructor.

inline virtual Attribute<V> *clone() const

Retun a newly constructed copy.

inline virtual std::string get_name() const

Get the name of the attribute.

inline virtual std::string get_description() const

Get the description of the attribute.

std::string get_value(const V *ptr) const

Get the value of the attribute.

void set_value(V *ptr, const std::string &value)

Set the value of the attribute.

inline virtual void set_description(const std::string&)

Set the description of the attribute.

inline virtual void set_detailed_description(const std::string&)

Set the detailed description of the attribute.

virtual bool matches(const std::string &name) const

Return true if the name argument matches.

inline virtual void set_modifiers(const std::string &mod) const

Parse any modifiers that will alter the behaviour of the output stream.

inline virtual void reset_modifiers() const

Reset any output stream modifiers.