convertUNICADO2CPACS
cpacsAcft::cpacsMassBreakdown::massMapElement Class Reference

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>

Inheritance diagram for cpacsAcft::cpacsMassBreakdown::massMapElement:
Inheritance graph
Collaboration diagram for cpacsAcft::cpacsMassBreakdown::massMapElement:
Collaboration graph

Public Member Functions

massMapElementat (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...
 
- Public Member Functions inherited from cpacsAcft::cpacsMassBreakdown::massElement
 massElement ()
 Constructor of class massElement. More...
 
virtual ~massElement ()
 Destructor of class massElement. More...
 

Public Attributes

std::shared_ptr< mapElementselements
 
- Public Attributes inherited from cpacsAcft::cpacsMassBreakdown::massElement
Vec3 location
 
double mass
 

Detailed Description

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")

Constructor & Destructor Documentation

◆ massMapElement()

cpacsAcft::cpacsMassBreakdown::massMapElement::massMapElement ( )

Constructor of class massMapElement.

◆ ~massMapElement()

cpacsAcft::cpacsMassBreakdown::massMapElement::~massMapElement ( )
virtual

Destructor of class massMapElement.

Member Function Documentation

◆ at()

cpacsAcft::cpacsMassBreakdown::massMapElement & cpacsAcft::cpacsMassBreakdown::massMapElement::at ( std::string  elementName) const

Name of the mass element

Here is the call graph for this function:
Here is the caller graph for this function:

◆ emplace()

void cpacsAcft::cpacsMassBreakdown::massMapElement::emplace ( std::string  key,
massMapElement  value 
)

Function extends the map of mass Elements by a key + a mass value.

Parameters
keySpecifies the function/part of which the respective element belongs to
valueMass value of the massMapElement [kg]
Here is the caller graph for this function:

◆ size()

unsigned int cpacsAcft::cpacsMassBreakdown::massMapElement::size ( )

variable to count the number of elements

Member Data Documentation

◆ elements

std::shared_ptr<mapElements> cpacsAcft::cpacsMassBreakdown::massMapElement::elements

Pointer on a mass element


The documentation for this class was generated from the following files: