In file List.h:

class List : public Vector

Holds a List of other objects.

Inheritance:


Public Methods

List(const string &n = "", BaseType *v = 0)
The List constructor.
List(const List &rhs)
The List copy constructor
virtual bool member(BaseType *btp, DDS &dds)
Determine whether an object is a member of the list
virtual bool null()
Returns TRUE if the list is empty

Inherited from Vector:

Public Methods

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)
virtual unsigned int buf2val(void **val)
bool set_vec(unsigned int i, BaseType *val)
void vec_resize(int l)
virtual BaseType* var(const string &name = "", bool exact_match = true)
virtual BaseType* var(const string &name, btp_stack &s)
virtual BaseType* var(unsigned int i)
virtual void add_var(BaseType *v, Part p = nil)

Inherited from BaseType:

Public Methods

virtual BaseType* ptr_duplicate()
string name() const
void set_name(const string &n)
Type type() const
void set_type(const Type &t)
string type_name() const
bool is_simple_type()
bool is_vector_type()
bool is_constructor_type()
virtual int element_count(bool leaves = false)
bool synthesized_p()
void set_synthesized_p(bool state)
bool read_p()
bool send_p()
xdrproc_t xdr_coder()
virtual bool read(const string &dataset, int &error)
virtual bool serialize(const string &dataset, DDS &dds, XDR *sink, bool ce_eval = true)
virtual bool deserialize(XDR *source, DDS *dds, bool reuse = false)
virtual void print_decl(ostream &os, string space = " ", bool print_semi = true, bool constraint_info = false, bool constrained = false)
virtual void print_val(ostream &os, string space = "", bool print_decl_p = true)
virtual bool check_semantics(string &msg, bool all = false)
virtual bool ops(BaseType *b, int op, const string &dataset)

Documentation

This class uses the Vector class to implement a simple list of DODS data types. A list is a simple sequence of data items, without the sophisticated subsetting and array indexing features of an Array. DODS does not support Lists of Lists.
List(const string &n = "", BaseType *v = 0)
The List constructor requires the name of the variable to be created, and the type of data the list is to hold. The name may be omitted, which will create a nameless variable. The template pointer may not be omitted.
Parameters:
n - A string containing the name of the variable to be created.
v - A pointer to a variable of the type to be included in the list. This variable may not itself be a List.

List(const List &rhs)
The List copy constructor

virtual bool member(BaseType *btp, DDS &dds)
Determine whether an object is a member of the list.
Returns:
TRUE if {\it *btp} is a member of the list.
Parameters:
btp - A pointer to an object.
dds - The fully-initialized data descriptor object corresponding to the dataset containing the list.

virtual bool null()
Returns TRUE if the list is empty


This class has no child classes.

alphabetic index hierarchy of classes


generated by doc++