osgIntrospection::CustomAttributeProvider Class Reference

This is the base class for custom attribute providers, that is objects that can be assigned a list of custom attributes. More...

Inheritance diagram for osgIntrospection::CustomAttributeProvider:

Inheritance graph
[legend]

List of all members.

Public Member Functions

const
CustomAttributeList
getCustomAttributes () const
 Returns the const list of custom attributes.
CustomAttributeListgetCustomAttributes ()
 Returns the list of custom attributes.
CustomAttributeProvideraddAttribute (const CustomAttribute *attr)
 Adds a new attribute to the list.
bool isDefined (const Type &type, bool inherit) const
 Returns whether at least one attribute of the given type is present in the attribute list.
template<typename T>
bool isDefined (bool inherit) const
 Returns whether at least one attribute of the given type is present in the attribute list.
const CustomAttributegetAttribute (const Type &type, bool inherit) const
 Searchs for an attribute of the given type and returns a pointer to it if found, a null pointer otherwise.
template<typename T>
const T * getAttribute (bool inherit) const
 Searchs for an attribute of the given type and returns a pointer to it if found, a null pointer otherwise.

Protected Member Functions

virtual void getInheritedProviders (CustomAttributeProviderList &providers) const =0
virtual ~CustomAttributeProvider ()


Detailed Description

This is the base class for custom attribute providers, that is objects that can be assigned a list of custom attributes.

Methods defined in this class provide the means for adding, retrieving and searching for attributes.


Constructor & Destructor Documentation

virtual osgIntrospection::CustomAttributeProvider::~CustomAttributeProvider (  )  [inline, protected, virtual]


Member Function Documentation

const CustomAttributeList& osgIntrospection::CustomAttributeProvider::getCustomAttributes (  )  const [inline]

Returns the const list of custom attributes.

CustomAttributeList& osgIntrospection::CustomAttributeProvider::getCustomAttributes (  )  [inline]

Returns the list of custom attributes.

CustomAttributeProvider* osgIntrospection::CustomAttributeProvider::addAttribute ( const CustomAttribute attr  )  [inline]

Adds a new attribute to the list.

bool osgIntrospection::CustomAttributeProvider::isDefined ( const Type type,
bool  inherit 
) const

Returns whether at least one attribute of the given type is present in the attribute list.

If the inherit parameter is set to true, the search is forwarded to base types.

template<typename T>
bool osgIntrospection::CustomAttributeProvider::isDefined ( bool  inherit  )  const [inline]

Returns whether at least one attribute of the given type is present in the attribute list.

If the inherit parameter is set to true, the search is forwarded to base types. [template version]

const CustomAttribute* osgIntrospection::CustomAttributeProvider::getAttribute ( const Type type,
bool  inherit 
) const

Searchs for an attribute of the given type and returns a pointer to it if found, a null pointer otherwise.

If the inherit parameter is set to true, the search is forwarded to base types.

template<typename T>
const T* osgIntrospection::CustomAttributeProvider::getAttribute ( bool  inherit  )  const [inline]

Searchs for an attribute of the given type and returns a pointer to it if found, a null pointer otherwise.

If the inherit parameter is set to true, the search is forwarded to base types. [template version]

virtual void osgIntrospection::CustomAttributeProvider::getInheritedProviders ( CustomAttributeProviderList providers  )  const [protected, pure virtual]

Implemented in osgIntrospection::ConstructorInfo, osgIntrospection::PropertyInfo, and osgIntrospection::Type.


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:25 2007 for the OpenSceneGraph by doxygen 1.5.3.