PLCnext API Documentation 25.0.2.69
|
Provide array information. More...
#include <ArrayDimensions.hpp>
Public Types | |
using | Values = std::vector< ArrayDimension > |
Public Member Functions | |
ArrayDimensions (void)=default | |
Constructs an ArrayDimension instance. | |
ArrayDimensions (size_t count) | |
Constructs an ArrayDimension instance. | |
ArrayDimensions (const ArrayDimension &entry) | |
Constructs an ArrayDimension instance. | |
ArrayDimensions (const Values &values) | |
Constructs an ArrayDimension instance. | |
ArrayDimensions (const std::initializer_list< int > &dimensions) | |
Constructs an ArrayDimension instance. | |
ArrayDimensions (const std::initializer_list< ArrayDimension > &entries) | |
Constructs an ArrayDimension instance. | |
ArrayDimensions (const ArrayDimensions &arg)=default | |
Copy constructor. | |
ArrayDimensions (ArrayDimensions &&arg) noexcept=default | |
Move constructor. | |
ArrayDimensions & | operator= (const ArrayDimensions &arg)=default |
Copy assignment operator. | |
ArrayDimensions & | operator= (ArrayDimensions &&arg) noexcept=default |
Move assignment operator. | |
~ArrayDimensions (void) noexcept=default | |
Destructs this instance and frees all resources. | |
ArrayDimension & | operator[] (size_t index) |
const ArrayDimension & | operator[] (size_t index) const |
bool | IsEmpty (void) const |
size_t | GetCount (void) const |
Get the number of array dimensions for this vector element. More... | |
const Values & | GetValues (void) const |
size_t | GetCacheSize (void) const |
Get the cache size More... | |
size_t | GetDimensionsProduct (void) const |
Gets the element count total. More... | |
void | Append (const ArrayDimension &dimension) |
Static Public Attributes | |
static const ArrayDimensions | Empty |
Protected Member Functions | |
void | EraseFrontDimension (void) |
Friends | |
class | ArrayNavigator |
Provide array information.
size_t Arp::Plc::Commons::Meta::ArrayDimensions::GetCacheSize | ( | void | ) | const |
Get the cache size
size_t Arp::Plc::Commons::Meta::ArrayDimensions::GetCount | ( | void | ) | const |
Get the number of array dimensions for this vector element.
size_t Arp::Plc::Commons::Meta::ArrayDimensions::GetDimensionsProduct | ( | void | ) | const |
Gets the element count total.