![]() |
convertUNICADO2CPACS
|
Class that represents a mass element, every mass element has a map of mass elements, you can access subelements with .at("name of the mass element") More...
#include <cpacsAcftXML.h>
Public Member Functions | |
massMapElement & | at (std::string elementName) const |
void | emplace (std::string key, massMapElement value) |
Function extends the map of mass Elements by a key + a mass value. More... | |
unsigned int | size () |
massMapElement () | |
Constructor of class massMapElement. More... | |
virtual | ~massMapElement () |
Destructor of class massMapElement. More... | |
![]() | |
massElement () | |
Constructor of class massElement. More... | |
virtual | ~massElement () |
Destructor of class massElement. More... | |
Public Attributes | |
std::shared_ptr< mapElements > | elements |
![]() | |
Vec3 | location |
double | mass |
Class that represents a mass element, every mass element has a map of mass elements, you can access subelements with .at("name of the mass element")
cpacsAcft::cpacsMassBreakdown::massMapElement::massMapElement | ( | ) |
Constructor of class massMapElement.
|
virtual |
Destructor of class massMapElement.
cpacsAcft::cpacsMassBreakdown::massMapElement & cpacsAcft::cpacsMassBreakdown::massMapElement::at | ( | std::string | elementName | ) | const |
Name of the mass element
void cpacsAcft::cpacsMassBreakdown::massMapElement::emplace | ( | std::string | key, |
massMapElement | value | ||
) |
Function extends the map of mass Elements by a key + a mass value.
key | Specifies the function/part of which the respective element belongs to |
value | Mass value of the massMapElement [kg] |
unsigned int cpacsAcft::cpacsMassBreakdown::massMapElement::size | ( | ) |
variable to count the number of elements
std::shared_ptr<mapElements> cpacsAcft::cpacsMassBreakdown::massMapElement::elements |
Pointer on a mass element