Abstract base class for all elements in a BPMN model.
More...
The class provides conveniance methods to cast the element to concrete types.
Definition at line 16228 of file bpmn++.h.
#include <bpmn++.h>
|
| virtual | ~Element ()=default |
| |
| template<typename T > |
| T * | represents () |
| | Attempts to cast the element to the specified type T.
|
| |
| template<typename T > |
| const T * | represents () const |
| | Attempts to cast the element to the specified type T.
|
| |
| template<typename T > |
| T * | as () |
| | Casts the element to the specified type T.
|
| |
| template<typename T > |
| const T * | as () const |
| | Casts the element to the specified type T.
|
| |
◆ ~Element()
| virtual BPMN::Element::~Element |
( |
| ) |
|
|
virtualdefault |
◆ as() [1/2]
template<typename T >
| T * BPMN::Element::as |
( |
| ) |
|
|
inline |
- Returns
- A pointer to casted object
- Exceptions
-
| std::runtime_error | if cast fails |
Definition at line 16253 of file bpmn++.h.
◆ as() [2/2]
template<typename T >
| const T * BPMN::Element::as |
( |
| ) |
const |
|
inline |
- Returns
- A pointer to casted object
- Exceptions
-
| std::runtime_error | if cast fails |
Definition at line 16266 of file bpmn++.h.
◆ represents() [1/2]
template<typename T >
| T * BPMN::Element::represents |
( |
| ) |
|
|
inline |
- Returns
- A pointer to casted object or
nullptr if the cast fails
Definition at line 16236 of file bpmn++.h.
◆ represents() [2/2]
template<typename T >
| const T * BPMN::Element::represents |
( |
| ) |
const |
|
inline |
- Returns
- A pointer to casted object or
nullptr if the cast fails
Definition at line 16244 of file bpmn++.h.
The documentation for this class was generated from the following file: