42 DeckItem(
const std::string&, std::string);
43 DeckItem(
const std::string&,
double) =
delete;
45 DeckItem(
const std::string&,
UDAValue,
const std::vector<Dimension>& active_dim,
const std::vector<Dimension>& default_dim);
46 DeckItem(
const std::string&,
double,
const std::vector<Dimension>& active_dim,
const std::vector<Dimension>& default_dim);
48 static DeckItem serializationTestObject();
49 DeckItem emptyStructuralCopy()
const;
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;
79 const std::vector<Dimension>& getActiveDimensions()
const
81 return this->active_dimensions;
89 void push_back(
int );
90 void push_back(
double );
91 void push_back( std::string );
94 void push_back(
int,
size_t );
95 void push_back(
double,
size_t );
96 void push_back( std::string,
size_t );
97 void push_backDefault(
UDAValue, std::size_t n = 1 );
98 void push_backDefault(
int, std::size_t n = 1 );
99 void push_backDefault(
double, std::size_t n = 1 );
100 void push_backDefault( std::string, std::size_t n = 1 );
101 void push_backDefault(
RawString, std::size_t n = 1 );
104 template <
typename T>
105 void push_backDummyDefault( std::size_t n = 1 );
107 type_tag getType()
const;
110 friend std::ostream& operator<<(std::ostream& os,
const DeckItem& item);
123 bool equal(
const DeckItem& other,
bool cmp_default,
bool cmp_numeric)
const;
129 bool operator==(
const DeckItem& other)
const;
130 bool operator!=(
const DeckItem& other)
const;
131 static bool to_bool(std::string string_value);
133 bool is_uda() {
return (type == get_type< UDAValue >()); };
134 bool is_double() {
return type == get_type< double >(); };
135 bool is_int() {
return type == get_type< int >() ; };
136 bool is_string() {
return type == get_type< std::string >(); };
137 bool is_raw_string() {
return type == get_type< RawString >(); };
139 UDAValue& get_uda() {
return uval[0]; };
141 template<
class Serializer>
150 serializer(item_name);
151 serializer(value_status);
152 serializer(raw_data);
153 serializer(active_dimensions);
154 serializer(default_dimensions);
157 void reserve_additionalRawString(std::size_t);
160 mutable std::vector< double > dval;
161 std::vector< int > ival;
162 std::vector< std::string > sval;
163 std::vector< RawString > rsval;
164 std::vector< UDAValue > uval;
166 type_tag type = type_tag::unknown;
168 std::string item_name;
169 std::vector<value::status> value_status;
175 mutable bool raw_data =
true;
176 std::vector< Dimension > active_dimensions;
177 std::vector< Dimension > default_dimensions;
179 template<
typename T > std::vector< T >& value_ref();
180 template<
typename T >
const std::vector< T >& value_ref()
const;
181 template<
typename T >
void push( T );
182 template<
typename T >
void push( T,
size_t );
183 template<
typename T >
void push_default( T, std::size_t n );
184 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