version 3.3

VRS::AttributeComposite Class Reference

Attribute that consists of an arbitrary number of attributes. More...

#include <vrs/attributecomposite.h>

Inheritance diagram for VRS::AttributeComposite:

VRS::MonoAttribute VRS::Attribute VRS::RenderObj VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 AttributeComposite ()
 Constructs an empty composite.
unsigned int size () const
 Returns the number of contained attributes.
void prepend (Attribute *attribute)
 Prepends a new attribute.
void append (Attribute *attribute)
 Appens a new attribute.
void insert (unsigned int index, Attribute *attribute)
 Inserts an attribute at the given position.
void remove (unsigned int index)
 Removes the attribute at the given position.
void erase (Attribute *attribute)
 Removes the given attribute.
void clear ()
 Removes all attributes.
Attributecomponent (unsigned int index) const
 Returns the attribute at the given position.
Iterator< SO< Attribute > > * components () const
 Returns all contained attributes.
 VRS_TYPEINFO (AttributeComposite, MonoAttribute)
 VRS_SERIALIZABLE (AttributeComposite)

Protected Member Functions

virtual void acceptChildren (std::vector< Visitable * > &appendChildrenHere) const


Detailed Description

Attribute that consists of an arbitrary number of attributes.

Constructor & Destructor Documentation

VRS::AttributeComposite::AttributeComposite (  ) 

Constructs an empty composite.


Member Function Documentation

unsigned int VRS::AttributeComposite::size (  )  const

Returns the number of contained attributes.

void VRS::AttributeComposite::prepend ( Attribute attribute  ) 

Prepends a new attribute.

void VRS::AttributeComposite::append ( Attribute attribute  ) 

Appens a new attribute.

void VRS::AttributeComposite::insert ( unsigned int  index,
Attribute attribute 
)

Inserts an attribute at the given position.

void VRS::AttributeComposite::remove ( unsigned int  index  ) 

Removes the attribute at the given position.

void VRS::AttributeComposite::erase ( Attribute attribute  ) 

Removes the given attribute.

void VRS::AttributeComposite::clear (  ) 

Removes all attributes.

Attribute* VRS::AttributeComposite::component ( unsigned int  index  )  const

Returns the attribute at the given position.

Iterator<SO<Attribute> >* VRS::AttributeComposite::components (  )  const

Returns all contained attributes.

VRS::AttributeComposite::VRS_TYPEINFO ( AttributeComposite  ,
MonoAttribute   
)

VRS::AttributeComposite::VRS_SERIALIZABLE ( AttributeComposite   ) 

virtual void VRS::AttributeComposite::acceptChildren ( std::vector< Visitable * > &  appendChildrenHere  )  const [protected, virtual]

Reimplemented from VRS::Visitable.


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

Generated on Mon May 20 06:00:24 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact