|
My Project
|
Wrapper type for field properties. More...
#include <FieldProps.hpp>
Public Member Functions | |
| FieldDataManager (const std::string &k, GetStatus s, const Fieldprops::FieldData< T > *d) | |
| Constructor. | |
| void | verify_status (const KeywordLocation &loc, const std::string &descr, const std::string &operation) const |
| Validate result of. | |
| void | verify_status () const |
| Validate result of. | |
| const std::vector< T > * | ptr () const |
| Access underlying property data elements. | |
| const std::vector< T > & | data () const |
| Access underlying property data elements. | |
| const Fieldprops::FieldData< T > & | field_data () const |
| Read-only access to contained FieldData object. | |
| bool | valid () const |
| Property validity predicate. | |
Public Attributes | |
| const std::string & | keyword |
| Property name. | |
| GetStatus | status |
| Request status. | |
| const Fieldprops::FieldData< T > * | data_ptr |
| Property data. | |
Wrapper type for field properties.
| T | Property element type. Typically double or int. |
|
inline |
Constructor.
| [in] | k | Property name |
| [in] | s | Request status |
| [in] | d | Property data. Pass nullptr for missing property data. |
|
inline |
Access underlying property data elements.
Throws an exception as outlined in GetStatus if property data is not fully defined.
|
inline |
Read-only access to contained FieldData object.
Throws an exception as outlined in GetStatus if property data is not fully defined.
|
inline |
Access underlying property data elements.
Returns nullptr if property data is not fully defined.
|
inline |
Property validity predicate.
Returns true if property exists and has fully defined data elements. False otherwise.
|
inline |
Validate result of.
request
Throws an exception as outlined in GetStatus if
is not
. Does nothing otherwise.
|
inline |
Validate result of.
request
Throws an exception of type
if
is not
. Does nothing otherwise.
| [in] | Input | keyword which prompted request. |
| [in] | descr | Textual description of context in which request occurred. |
| [in] | operation | Name of operation which prompted request. |