ObjectStore C++ API Reference

os_template_instantiation

This class is part of the ObjectStore metaobject protocol, which provides access to ObjectStore schemas. Instances of this class represent instantiations of a (type or function) template. The class os_type_template is derived from os_template_instantiation.

os_template_instantiation::create()

static os_template_instantiation& create(
      os_template*,
      os_List<os_template_actual_arg*>*
);
Creates an os_template_instantiation from the specified template and actual parameters.

os_template_instantiation::get_args()

os_List<const os_template_actual_arg*> get_args() const;
Returns a list (in declaration order) of the actual arguments used to instantiate the associated template. Each element of the list is a pointer to a const os_template_actual_arg.

os_List<os_template_actual_arg*> get_args();
Returns a list (in declaration order) of the actual arguments used to instantiate the associated template. Each element of the list is a pointer to an os_template_actual_arg.

os_template_instantiation::get_template()

const os_template &get_template() const;
Returns the const template instantiated by the specified os_template_instantiation.

os_template &get_template();
Returns the non-const template instantiated by the specified os_template_instantiation.

os_template_instantiation::set_args()

void set_args(os_List<os_template_actual_arg*>&);
Sets (in declaration order) the actual arguments with which to instantiate the associated template.

os_template_instantiation::set_template()

void set_template(os_template&);
Sets the template instantiated by the specified os_template_instantiation.



[previous] [next]

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

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