43 DeckItem(
const std::string&, std::string);
44 DeckItem(
const std::string&,
double) =
delete;
46 DeckItem(
const std::string&,
UDAValue,
const std::vector<Dimension>& active_dim,
const std::vector<Dimension>& default_dim);
47 DeckItem(
const std::string&,
double,
const std::vector<Dimension>& active_dim,
const std::vector<Dimension>& default_dim);
49 static DeckItem serializationTestObject();
51 const std::string& name()
const;
54 bool defaultApplied(
size_t )
const;
59 bool hasValue(
size_t )
const;
67 size_t data_size()
const;
70 T get(
size_t index )
const;
73 double getSIDouble(
size_t )
const;
74 std::string getTrimmedString(
size_t )
const;
76 template<
typename T >
const std::vector< T >& getData()
const;
77 const std::vector< double >& getSIDoubleData()
const;
78 const std::vector<value::status>& getValueStatus()
const;
85 void push_back(
int );
86 void push_back(
double );
87 void push_back( std::string );
90 void push_back(
int,
size_t );
91 void push_back(
double,
size_t );
92 void push_back( std::string,
size_t );
93 void push_backDefault(
UDAValue, std::size_t n = 1 );
94 void push_backDefault(
int, std::size_t n = 1 );
95 void push_backDefault(
double, std::size_t n = 1 );
96 void push_backDefault( std::string, std::size_t n = 1 );
97 void push_backDefault(
RawString, std::size_t n = 1 );
100 template <
typename T>
101 void push_backDummyDefault( std::size_t n = 1 );
103 type_tag getType()
const;
106 friend std::ostream& operator<<(std::ostream& os,
const DeckItem& item);
119 bool equal(
const DeckItem& other,
bool cmp_default,
bool cmp_numeric)
const;
125 bool operator==(
const DeckItem& other)
const;
126 bool operator!=(
const DeckItem& other)
const;
127 static bool to_bool(std::string string_value);
129 bool is_uda() {
return (type == get_type< UDAValue >()); };
130 bool is_double() {
return type == get_type< double >(); };
131 bool is_int() {
return type == get_type< int >() ; };
132 bool is_string() {
return type == get_type< std::string >(); };
133 bool is_raw_string() {
return type == get_type< RawString >(); };
135 UDAValue& get_uda() {
return uval[0]; };
137 template<
class Serializer>
146 serializer(item_name);
147 serializer(value_status);
148 serializer(raw_data);
149 serializer(active_dimensions);
150 serializer(default_dimensions);
153 void reserve_additionalRawString(std::size_t);
155 mutable std::vector< double > dval;
156 std::vector< int > ival;
157 std::vector< std::string > sval;
158 std::vector< RawString > rsval;
159 std::vector< UDAValue > uval;
161 type_tag type = type_tag::unknown;
163 std::string item_name;
164 std::vector<value::status> value_status;
170 mutable bool raw_data =
true;
171 std::vector< Dimension > active_dimensions;
172 std::vector< Dimension > default_dimensions;
174 template<
typename T > std::vector< T >& value_ref();
175 template<
typename T >
const std::vector< T >& value_ref()
const;
176 template<
typename T >
void push( T );
177 template<
typename T >
void push( T,
size_t );
178 template<
typename T >
void push_default( T, std::size_t n );
179 template<
typename T >
void write_vector(
DeckOutput& writer,
const std::vector<T>& data)
const;
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30