Public Member Functions | |
const CustomAttributeList & | getCustomAttributes () const |
Returns the const list of custom attributes. | |
CustomAttributeList & | getCustomAttributes () |
Returns the list of custom attributes. | |
CustomAttributeProvider * | addAttribute (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 CustomAttribute * | 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. | |
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 () |
Methods defined in this class provide the means for adding, retrieving and searching for attributes.
virtual osgIntrospection::CustomAttributeProvider::~CustomAttributeProvider | ( | ) | [inline, protected, virtual] |
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.
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.
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.