In file UInt16.h:

class UInt16 : public BaseType

Holds a 16-bit unsigned integer

Inheritance:


Public Fields

friend class Byte
This class allows Byte,

Public Methods

UInt16(const string &n = "")
The UIn16 constructor.

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()
virtual void set_read_p(bool state)
bool send_p()
virtual void set_send_p(bool state)
xdrproc_t xdr_coder()
virtual BaseType* var(const string &name = "", bool exact_match = true)
virtual BaseType* var(const string &name, btp_stack &s)
virtual void add_var(BaseType *v, Part p = nil)
virtual unsigned int width()
virtual bool read(const string &dataset, int &error)
virtual unsigned int buf2val(void **val)
virtual unsigned int val2buf(void *val, bool reuse = false)
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

Holds a 16-bit unsigned integer.
friend class Byte
This class allows Byte, ..., Float64 access to #_buf# to simplify and speed up the relational operators. NB: According to Stroustrup it does not matter where (public, private or protected) friend classes are declared.

UInt16(const string &n = "")
The UInt16 constructor requires only the name of the variable to be created. The name may be omitted, which will create a nameless variable. This may be adequate for some applications.
Parameters:
n - A string containing the name of the variable to be created.


This class has no child classes.
See Also:
BaseType

alphabetic index hierarchy of classes


generated by doc++