20 #include "SheafSystem/dof_tuple_class_names_record.h" 22 #include "SheafSystem/assert_contract.h" 23 #include "SheafSystem/std_sstream.h" 47 ensure(is_same_type(result));
68 result = result && attributes_record::invariant();
74 disable_invariant_check();
78 enable_invariant_check();
186 require(
scaffold().structure().state_is_read_write_accessible());
205 while(lstream >> ltuple_id_pod)
214 getline(lstream, lclass_name);
220 map_type::value_type lval(ltuple_id_pod, lclass_name);
238 require(
scaffold().structure().state_is_read_accessible());
242 stringstream lstream;
244 lstream <<
"Dof tuple class names:" << endl;
248 poset_scaffold::dof_tuple_class_names_type::iterator itr;
250 for(itr = lclass_names_map.begin();
251 itr != lclass_names_map.end();
254 lstream << itr->first <<
" " << itr->second << endl;
virtual dof_tuple_class_names_record * clone() const
Virtual constructor; makes a new instance of the same type as this.
poset_scaffold & scaffold()
The scaffold for the poset associated with this record (mutable version).
A wrapper/adapter for the dof tuple class names record. Intended for transferring index-name map data...
unordered::unordered_map< pod_index_type, std::string > dof_tuple_class_names_type
Type of dof tuple class names map.
virtual bool is_ancestor_of(const any *other) const
Conformance test; true if other conforms to this.
virtual bool invariant() const
Class invariant.
dof_tuple_class_names_type & dof_tuple_class_names()
Dof tuple class names (mutable version).
Abstract base class with useful features for all objects.
virtual ~dof_tuple_class_names_record()
Destructor.
std::string _str_buf
The internal/external buffer.
bool is_internal() const
True if the internal buffer has been initialized.
dof_tuple_class_names_record(poset_scaffold &xscaffold)
Creates an instance with type map xtype_map.
void put_is_internal(bool xis_internal)
Sets is_internal to xis_internal.
SHEAF_DLL_SPEC void max(const vd &x0, vd_value_type &xresult, bool xauto_access)
Maximum component of x0, pre-allocated version.
int_type pod_index_type
The plain old data index type.
void transfer_internal_buffer_to_poset()
Initializes the poset from the internal buffer.
void transfer_poset_to_internal_buffer()
Initializes the internal buffer from the poset.
A poset specific collection of data converters, various buffers and other data used while transferrin...
bool is_external() const
True if the external buffer has been initialized.
An abstract wrapper/adapter for attributes records. Intended for transferring data between the kernel...
void put_is_external(bool xis_external)
Sets is_external to xis_external.