Class TextInterface::VectorOfProxy

template<class V, class E, class Get, class Size>
class VectorOfProxy : public TextInterface::AttributeAdapter<V, E>

Proxy enables attribute interface of elements in a vector.

In this template: V is a vector of E; Get is the method of V that returns E*; and Size is the method of V that returns the number of elements in it

Public Functions

inline VectorOfProxy(const std::string &p, const Attribute<E> *a, Get g, Size s)

Construct from a pointer to element attribute interface.

inline VectorOfProxy(const VectorOfProxy &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.

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.

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

Return true if the name argument matches.