QVectorProxyRo<Container,resize> internal class members

QVectorProxyRo()  

Create a QVectorProxy object with no attached container

QVectorProxyRo(Container &vector)  

Create a QVectorProxy object and attach given container

Container *_vector  

This member access is protected.

typedef Ref<const QVectorProxyRo, QVectorProxyRo> const_ptr  

Shortcut for Ref smart pointer class to QVectorProxyRo type provided for convenience

virtual bool meta_contains(State &ls, const Value &key)  

This virtual function overrides the meta_contains virtual function defined in the UserData base class.

Documentation inherited from base class:

This function returns true if either the Value::OpIndex operation or the alue::OpNewindex operation is supported and an entry is associated to the given key.

The default implementation returns !meta_index(ls, key).is_nil() or false if UserData::meta_index throws.

virtual Value meta_index(State &ls, const Value &key)  

This virtual function overrides the meta_index virtual function defined in the UserData base class.

Documentation inherited from base class:

This function is called when a table read access operation is attempted on a userdata object. The default implementation throws an error message. The UserData::support function should be reimplemented along with this function to report Value::OpIndex as supported.

Parameters list:

  • key: Value used as table index.

The return value is Table access result value.

virtual Value meta_operation(State &ls, Value::Operation op, const Value &a, const Value &b)  

This virtual function overrides the meta_operation virtual function defined in the UserData base class.

Documentation inherited from base class:

This function is called when a lua operator is used with a UserData object. The default implementation throws an error message. The UserData::support function should be reimplemented along with this function.

Parameters list:

  • op: Specify invoked lua operator (see Value::Operation).
  • a: First value involved in operation.
  • b: Second value involved in operation for binary operators.

The return value is Operation result value.

virtual Ref<Iterator> new_iterator(State &ls)  

This virtual function overrides the new_iterator virtual function defined in the UserData base class.

Documentation inherited from base class:

This function may return an Iterator object used to iterate over an userdata object. The default implementation throws an error message. The UserData::support function should be reimplemented along with this function to report Value::OpIterate as supported.

The return value is an Iterator based iterator object.

Shortcut for Ref smart pointer class to QVectorProxyRo type provided for convenience

void set_container(Container *vector)  

Attach or detach container. argument may be NULL

virtual bool support(Value::Operation c) const  

This virtual function overrides the support virtual function defined in the UserData base class.

Documentation inherited from base class:

Check given operation support.

See also Value::support function.

Valid XHTML 1.0 StrictGenerated by diaxen on Tue Jan 3 00:32:11 2012 using MkDoc