Main Page   Modules   Namespace List   Class Hierarchy   Compound List   Namespace Members   Compound Members   Related Pages  

openvrml::node_interface_set Class Reference

A group of unique node_interfaces. More...

List of all members.


Public Types

typedef std::set< node_interface,
id_less >::const_iterator 
const_iterator
 An STL const_iterator.


Public Member Functions

void add (const node_interface &interface) throw (std::invalid_argument, std::bad_alloc)
 Add an interface.

const_iterator begin () const throw ()
 Returns an iterator to the beginning of the node_interface_set.

const_iterator end () const throw ()
 Returns an iterator to the end of the node_interface_set.

const_iterator find (const std::string &id) const throw ()
 Find an interface matching id.


Private Attributes

std::set< node_interface,
id_less
interfaces
 Set of node_interfaces.


Detailed Description

A group of unique node_interfaces.

node_interface_sets are used to construct new node_types. node_type objects also expose their interfaces as a node_interface_set. The interfaces in a node_interface_set are guaranteed to be unique and non-conflicting.


Member Typedef Documentation

openvrml::node_interface_set::const_iterator
 

An STL const_iterator.


Member Function Documentation

void openvrml::node_interface_set::add const node_interface interface  )  throw (std::invalid_argument, std::bad_alloc)
 

Add an interface.

Parameters:
interface a node_interface.
Exceptions:
std::invalid argument if nodeInterface conflicts with an interface already in the node_interface_set.
std::bad_alloc if memory allocation fails.

node_interface_set::const_iterator openvrml::node_interface_set::begin  )  const throw () [inline]
 

Returns an iterator to the beginning of the node_interface_set.

Returns:
a const_iterator pointing to the first node_interface in the set.

node_interface_set::const_iterator openvrml::node_interface_set::end  )  const throw () [inline]
 

Returns an iterator to the end of the node_interface_set.

Returns:
a const_iterator pointing to one increment past the last node_interface in the set.

node_interface_set::const_iterator openvrml::node_interface_set::find const std::string &  id  )  const throw ()
 

Find an interface matching id.

If no interface is found with an interface identifier that is an exact match for id, this method will look for set_ and _changed variants.

Parameters:
id the interface id to look for.
Returns:
a const_iterator to the interface, or node_interface_set::end if no interface is found.

Member Data Documentation

std::set< node_interface, node_interface_set::id_less > openvrml::node_interface_set::interfaces [private]
 

Set of node_interfaces.

For internal use only.