|
Dev Essential
1.6.3
|
#include <dd_common_types.h>
Public Member Functions | |
| ArraySize ()=default | |
| ArraySize (size_t array_size) | |
| ArraySize & | operator= (size_t array_size) |
| ArraySize (std::string array_size_element_name) | |
| ArraySize & | operator= (const std::string &array_size_element_name) |
| void | setArraySizeValue (size_t array_size) |
| size_t | getArraySizeValue () const |
| void | setArraySizeElementName (const std::string &array_size_element_name) |
| const std::string & | getArraySizeElementName () const |
| bool | isDynamicArraySize () const |
| bool | operator== (const ArraySize &other) const |
| bool | operator!= (const ArraySize &other) const |
Sinc DDL 2.0 it is possible to define arraysize with a string that indicates a dynamic array. The string it self is a elementname of the containing struct type.
|
default |
default CTOR.
| ddl::dd::ArraySize::ArraySize | ( | size_t | array_size | ) |
CTOR
| array_size | sets the array size |
| ddl::dd::ArraySize::ArraySize | ( | std::string | array_size_element_name | ) |
CTOR
| array_size_element_name | sets the dynamic array size elment name |
| const std::string & ddl::dd::ArraySize::getArraySizeElementName | ( | ) | const |
gets the dynamic array size
| size_t ddl::dd::ArraySize::getArraySizeValue | ( | ) | const |
get the array size
| bool ddl::dd::ArraySize::isDynamicArraySize | ( | ) | const |
indicates if this is a dynamic erray size.
| bool ddl::dd::ArraySize::operator!= | ( | const ArraySize & | other | ) | const |
compares the Array size with the other
| [other] | the other array size |
| false | if they are equal |
| true | if they are not equal |
| ArraySize & ddl::dd::ArraySize::operator= | ( | const std::string & | array_size_element_name | ) |
assignment operator
| array_size_element_name | sets the dynamic array size elment name |
| ArraySize & ddl::dd::ArraySize::operator= | ( | size_t | array_size | ) |
| bool ddl::dd::ArraySize::operator== | ( | const ArraySize & | other | ) | const |
compares the Array size with the other
| [other] | the other array size |
| true | if they are equal |
| false | if they are not equal |
| void ddl::dd::ArraySize::setArraySizeElementName | ( | const std::string & | array_size_element_name | ) |
sets the dynamic array size
| array_size_element_name | sets the dynamic array size elment name |
| void ddl::dd::ArraySize::setArraySizeValue | ( | size_t | array_size | ) |
set the array size
| array_size | sets the array size |