Holds a one-dimensional collection of DODS data types.
Holds a one-dimensional array of DODS data types. This class takes two forms, depending on whether the elements of the vector are themselves simple or compound objects. This class contains common functionality for the List and Array classes, and should rarely be used directly. When each element of the class is a simple data type, the Vector is implemented as a simple array of C types, rather than as an array of BaseType data types. A single private ``template'' BaseType instance (#_var#) is used to hold information in common to all the members of the array. The template is also used as a container to pass values back and forth to an application program, as in #var()#. If the elements of the vector are themselves compound data types, the array is stored as a vector of BaseType pointers (see the DODS class {\bf BaseTypePtrVec}). The template is still used to hold information in common to all the members of the array, but is not used to pass information to and from the application program.
Vector(const Vector &rhs)
virtual void set_send_p(bool state)
virtual void set_read_p(bool state)
virtual unsigned int width()
virtual int length()
virtual void set_length(int l)
virtual unsigned int val2buf(void *val, bool reuse = false)
reuse - A boolean value, indicating whether the class
internal data storage can be reused or not. If this argument is
TRUE, the class buffer is assumed to be large enough to hold the
incoming data, and it is {\it not} reallocated. If FALSE, new
storage is allocated. If the internal buffer has not been
allocated at all, this argument has no effect. virtual unsigned int buf2val(void **val)
bool set_vec(unsigned int i, BaseType *val)
val - A pointer to the value to be inserted into the
array.
void vec_resize(int l)
virtual BaseType* var(const string &name = "", bool exact_match = true)
exact_match - Unused.
virtual BaseType* var(const string &name, btp_stack &s)
s - Record the path to {\it name}.
virtual BaseType* var(unsigned int i)
virtual void add_var(BaseType *v, Part p = nil)
alphabetic index hierarchy of classes
generated by doc++