Component class is a container for CVB objects.
More...
#include <cvb/composite.hpp>
Component class is a container for CVB objects.
- Example
- CppMultiPartComposite
◆ ContainsItem()
Checks whether item is in this Composite.
- Returns
- true if item is in this composite; false if not.
◆ Create()
Creates a composite with the given optional parameter.
- Parameters
-
[in] | purpose | The purpose of this container. |
- Returns
- Pointer to the created composite.
- Exceptions
-
◆ FromHandle()
Creates a composite from a classic API handle.
- Parameters
-
[in] | guard | Life time guard for C-API handle. |
- Returns
- The composite created from the classic API handle.
- Exceptions
-
The composite takes ownership of the handle, so you must share it before using this function.
◆ FromObject()
Returns a composite object from the given composite compatible object.
- Parameters
-
[in] | object | A composite compatible object to share. |
- Returns
- A composite that shares resources with the given object.
◆ GenDCFinalDescriptor()
If this Composite represents a GenDC container, returns the GenDC final descriptor.
- Returns
- The GenDC final descriptor.
- Exceptions
-
◆ Handle()
Classic API node handle.
- Returns
- Classic API handle.
- Exceptions
-
Does | not throw any exception. |
It is normally not necessary to work with this handle.
◆ InsertItemAt()
Insert a composite item specified at given index.
- Parameters
-
[in] | index | Item index to insert the composite item at given index. |
[in] | item | The composite item to insert. |
- Exceptions
-
◆ ItemAt()
Access to a composite item specified by its index.
- Parameters
-
[in] | index | Item index of the composite item to access. |
- Returns
- A variant.
- Exceptions
-
◆ ItemCount()
Number of variants in the composite.
- Returns
- Number of variants.
- Exceptions
-
Does | not throw any exception. |
◆ Purpose()
CompositePurpose Purpose |
( |
| ) |
const |
|
inlinenoexcept |
Gets the purpose of this Composite.
- Returns
- The Cvb::CompositePurpose of this object.
◆ PushBackItem()
Appends a composite item.
- Parameters
-
[in] | item | The composite item to append. |
- Exceptions
-
◆ RemoveItemAt()
void RemoveItemAt |
( |
int | index | ) |
|
|
inline |
Remove a composite item specified by its index.
- Parameters
-
[in] | index | Item index of the composite item to remove. |
- Exceptions
-