OpenSceneGraph 3.6.5
osgWidget::UIObjectParent< T > Class Template Reference

#include <UIObjectParent>

Inheritance diagram for osgWidget::UIObjectParent< T >:

Public Types

typedef T object_type
 
typedef osg::observer_ptr< object_typeptr_type
 
typedef std::vector< ptr_typeVector
 
typedef Vector::iterator Iterator
 
typedef Vector::const_iterator ConstIterator
 

Public Member Functions

Iterator begin ()
 
ConstIterator begin () const
 
Iterator end ()
 
ConstIterator end () const
 
Vector::size_type size () const
 
object_typegetByName (const std::string &name)
 
const object_typegetByName (const std::string &name) const
 
object_typegetByIndex (unsigned int index)
 
const object_typegetByIndex (unsigned int index) const
 
unsigned int getNumObjects () const
 
VectorgetObjects ()
 
const VectorgetObjects () const
 

Protected Member Functions

bool _remove (object_type *obj)
 
bool _removeByName (const std::string &name)
 

Protected Attributes

Vector _objects
 

Member Typedef Documentation

◆ ConstIterator

template<typename T >
Vector::const_iterator osgWidget::UIObjectParent< T >::ConstIterator

◆ Iterator

template<typename T >
Vector::iterator osgWidget::UIObjectParent< T >::Iterator

◆ object_type

template<typename T >
T osgWidget::UIObjectParent< T >::object_type

◆ ptr_type

template<typename T >
osg::observer_ptr<object_type> osgWidget::UIObjectParent< T >::ptr_type

◆ Vector

template<typename T >
std::vector<ptr_type> osgWidget::UIObjectParent< T >::Vector

Member Function Documentation

◆ _remove()

template<typename T >
bool osgWidget::UIObjectParent< T >::_remove ( object_type * obj)
inlineprotected

◆ _removeByName()

template<typename T >
bool osgWidget::UIObjectParent< T >::_removeByName ( const std::string & name)
inlineprotected

◆ begin() [1/2]

template<typename T >
Iterator osgWidget::UIObjectParent< T >::begin ( )
inline

◆ begin() [2/2]

template<typename T >
ConstIterator osgWidget::UIObjectParent< T >::begin ( ) const
inline

◆ end() [1/2]

template<typename T >
Iterator osgWidget::UIObjectParent< T >::end ( )
inline

◆ end() [2/2]

template<typename T >
ConstIterator osgWidget::UIObjectParent< T >::end ( ) const
inline

◆ getByIndex() [1/2]

template<typename T >
object_type * osgWidget::UIObjectParent< T >::getByIndex ( unsigned int index)
inline

◆ getByIndex() [2/2]

template<typename T >
const object_type * osgWidget::UIObjectParent< T >::getByIndex ( unsigned int index) const
inline

◆ getByName() [1/2]

template<typename T >
object_type * osgWidget::UIObjectParent< T >::getByName ( const std::string & name)
inline

◆ getByName() [2/2]

template<typename T >
const object_type * osgWidget::UIObjectParent< T >::getByName ( const std::string & name) const
inline

◆ getNumObjects()

template<typename T >
unsigned int osgWidget::UIObjectParent< T >::getNumObjects ( ) const
inline

◆ getObjects() [1/2]

template<typename T >
Vector & osgWidget::UIObjectParent< T >::getObjects ( )
inline

◆ getObjects() [2/2]

template<typename T >
const Vector & osgWidget::UIObjectParent< T >::getObjects ( ) const
inline

◆ size()

template<typename T >
Vector::size_type osgWidget::UIObjectParent< T >::size ( ) const
inline

Member Data Documentation

◆ _objects

template<typename T >
Vector osgWidget::UIObjectParent< T >::_objects
protected

The documentation for this class was generated from the following file:

osg logo
Generated at Sat Nov 9 2024 00:00:00 for the OpenSceneGraph by doxygen 1.12.0.