A container for storing property information about a class.
More...
#include <murl_property_info.h>
A container for storing property information about a class.
This class holds an array of individual items each describing a single object property, which is essentially a single class member encapsulating one or more variable elements, which in turn can consist of one or more individual components. For example, a Graph::VectorFieldProperty stores a fixed-size array of NUM_ELEMENTS individual Graph::Vector instances, each of which has 4 components. See also Murl::IFactoryObject and Murl::AttributeInfo.
|
struct | Item |
| A single property information item. More...
|
|
◆ PropertyInfo()
Murl::PropertyInfo::PropertyInfo |
( |
const Item ** |
items, |
|
|
const UInt32 |
numberOfItems |
|
) |
| |
|
inline |
The constructor.
- Parameters
-
items | An array of pointers to individual property info items. |
numberOfItems | The number of items in the array. |
◆ GetNumberOfItems()
UInt32 Murl::PropertyInfo::GetNumberOfItems |
( |
| ) |
const |
|
inline |
Get the number of items.
- Returns
- The number of items.
◆ GetItemByIndex()
const Item* Murl::PropertyInfo::GetItemByIndex |
( |
const UInt32 |
index | ) |
const |
|
inline |
Get a single item by its index.
- Parameters
-
- Returns
- The item, or null if index is out of range.
◆ GetItemById()
const Item* Murl::PropertyInfo::GetItemById |
( |
const UInt32 |
id | ) |
const |
|
inline |
Get a single item by its ID.
- Parameters
-
- Returns
- The item, or null if the given ID was not found.
◆ GetItemByName()
const Item* Murl::PropertyInfo::GetItemByName |
( |
const String & |
name | ) |
const |
|
inline |
Get a single item by its name.
- Parameters
-
name | The name to search for. |
- Returns
- The item, or null if the given name was not found.
◆ GetIdByNameAndHash()
UInt32 Murl::PropertyInfo::GetIdByNameAndHash |
( |
const String & |
name, |
|
|
const UInt32 |
hash |
|
) |
| const |
|
inline |
Get the ID of an item by its name.
- Parameters
-
name | The name to search for. |
hash | The name string's hash value. |
- Returns
- The ID, 0xffffffff if the name was not found.
The documentation for this class was generated from the following file: