ObjectStore C++ API Reference

os_template_formal_arg

This class is part of the ObjectStore metaobject protocol, which provides access to ObjectStore schemas. Instances of this class represent formal arguments for (type or function) templates. This class has no public members.

os_template_formal_arg::get_kind()

enum os_template_formal_arg_kind { Type, Value };
os_template_formal_arg_kind get_kind() const;
Returns an enumerator indicating whether the specified formal is a type parameter or value parameter (that is, whether its actuals are types or values).

os_template_formal_arg::get_name()

const char* get_name() const;
Returns the name of the specified formal parameter.

os_template_formal_arg::operator const os_template_type_formal&()

operator const os_template_type_formal&() const;
Provides for safe conversion to const os_template_type_formal&. If the specified os_template_formal_arg is not an os_template_type_formal, err_mop_illegal_cast is signaled.

os_template_formal_arg::operator const os_template_value_formal&()

operator const os_template_value_formal&()const;
Provides for safe conversion to const os_template_value_formal&. If the specified os_template_formal_arg is not an os_template_value_formal, err_mop_illegal_cast is signaled.

os_template_formal_arg::operator os_template_type_formal&()

operator os_template_type_formal&();
Provides for safe conversion to os_template_type_formal&. If the specified os_template_formal_arg is not an os_template_type_formal, err_mop_illegal_cast is signaled.

os_template_formal_arg::operator os_template_value_formal&()

operator os_template_value_formal&();
Provides for safe conversion to os_template_value_formal&. If the specified os_template_formal_arg is not an os_template_value_formal, err_mop_illegal_cast is signaled.

os_template_formal_arg::set_name()

void set_name (const char *name);
Sets the name of the specified formal parameter.



[previous] [next]

Copyright © 1997 Object Design, Inc. All rights reserved.

Updated: 03/31/98 17:25:09