OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osgWidget::UIObjectParent< T > Class Template Reference

#include <UIObjectParent.h>

Public Types

typedef T object_type
 
typedef osg::observer_ptr
< object_type
ptr_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
 

Detailed Description

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

Definition at line 25 of file UIObjectParent.h.

Member Typedef Documentation

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

Definition at line 33 of file UIObjectParent.h.

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

Definition at line 32 of file UIObjectParent.h.

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

Definition at line 29 of file UIObjectParent.h.

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

Definition at line 30 of file UIObjectParent.h.

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

Definition at line 31 of file UIObjectParent.h.

Member Function Documentation

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

Definition at line 85 of file UIObjectParent.h.

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

Definition at line 95 of file UIObjectParent.h.

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

Definition at line 35 of file UIObjectParent.h.

Here is the caller graph for this function:

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

Definition at line 39 of file UIObjectParent.h.

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

Definition at line 43 of file UIObjectParent.h.

Here is the caller graph for this function:

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

Definition at line 47 of file UIObjectParent.h.

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

Definition at line 63 of file UIObjectParent.h.

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

Definition at line 67 of file UIObjectParent.h.

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

Definition at line 55 of file UIObjectParent.h.

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

Definition at line 59 of file UIObjectParent.h.

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

Definition at line 71 of file UIObjectParent.h.

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

Definition at line 75 of file UIObjectParent.h.

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

Definition at line 79 of file UIObjectParent.h.

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

Definition at line 51 of file UIObjectParent.h.

Member Data Documentation

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

Definition at line 105 of file UIObjectParent.h.


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