class os_literalThis class is part of the ObjectStore metaobject protocol, which provides access to ObjectStore schemas. Instances of this class represent literals that designate values. They can be used as actual parameters of class templates.
static os_literal& create_char(char);Creates a literal representing the specified char.
static os_literal& create_enum_literal(os_enumerator_literal&);Creates a literal representing the specified enumerator.
static os_literal& create_pointer_literal(os_pointer_literal&);Creates a literal representing the specified pointer.
static os_literal& create_signed_char(signed char);Creates a literal representing the specified signed char.
static os_literal& create_signed_int(signed int);Creates a literal representing the specified signed int.
static os_literal& create_signed_long(signed long);Creates a literal representing the specified signed long.
static os_literal& create_signed_short(signed short);Creates a literal representing the specified signed short.
static os_literal& create_unsigned_char(unsigned char);Creates a literal representing the specified unsigned char.
static os_literal& create_unsigned_int(unsigned int);Creates a literal representing the specified unsigned int.
static os_literal& create_unsigned_long(unsigned long);Creates a literal representing the specified unsigned long.
static os_literal& create_unsigned_short(unsigned short);Creates a literal representing the specified unsigned short.
static os_literal& create_wchar_t(wchar_t);Creates a literal representing the specified wchar_t.
char get_char_value() const;Returns the value designated by the specified literal.
const os_enumerator_literal& get_enum_literal() const;Returns a reference to the const os_enumerator_literal designated by the specified literal.
os_enumerator_literal& get_enum_literal();Returns a reference to the os_enumerator_literal designated by the specified literal.
enum os_literal_kind { Enumerator_literal, Function_literal, Function_literal_template, Unsigned_char_literal, Signed_char_literal, Unsigned_short_literal, Signed_short_literal, Integer_literal, Unsigned_integer_literal, Signed_long_literal, Unsigned_long_literal, Char_literal, Pointer_literal, Wchar_t_literal, }; os_literal_kind get_kind() const;Returns an enumerator indicating the kind of the specified literal.
const os_pointer_literal& get_pointer_literal() const;Returns a reference to the const os_pointer_literal designated by the specified literal.
os_pointer_literal& get_pointer_literal();Returns a reference to the os_pointer_literal designated by the specified literal.
long get_signed_integral_value() const;Returns the value designated by the specified literal.
const os_type& get_type() const;Returns the type of the value designated by the specified literal.
long get_unsigned_integral_value() const;Returns the value designated by the specified literal.
wchar_t get_wchar_t_value() const;Returns the value designated by the specified literal.
Updated: 03/31/98 17:25:09