20 #include "SheafSystem/dof_tuple_types_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());
206 while(lstream >> ltuple_id_pod)
215 getline(lstream, ltype_name);
225 map_type::value_type lval(ltuple_id_pod, ltype_id);
243 require(
scaffold().structure().state_is_read_accessible());
247 stringstream lstream;
249 lstream <<
"Dof tuple types:" << endl;
251 poset_scaffold::dof_tuple_types_type::const_iterator itr;
253 for(itr =
scaffold().dof_tuple_types().begin();
257 lstream << itr->first <<
" " << itr->second << endl;
dof_tuple_types_record(poset_scaffold &xscaffold)
Creates an instance with type map xtype_map.
poset_scaffold & scaffold()
The scaffold for the poset associated with this record (mutable version).
virtual bool is_ancestor_of(const any *other) const
Conformance test; true if other conforms to this.
dof_tuple_types_type & dof_tuple_types()
Dof tuple type ids (mutable version).
SHEAF_DLL_SPEC dof_tuple_type dof_tuple_type_from_name(const std::string &xname)
The enumerator with name xname.
virtual dof_tuple_types_record * clone() const
Virtual constructor; makes a new instance of the same type as this.
A wrapper/adapter for the dof type types record. Intended for transferring dof tuple type id data bet...
unordered::unordered_map< pod_index_type, dof_tuple_type > dof_tuple_types_type
Type of dof tuple types map.
virtual ~dof_tuple_types_record()
Destructor.
Abstract base class with useful features for all objects.
std::string _str_buf
The internal/external buffer.
virtual bool invariant() const
Class invariant.
bool is_internal() const
True if the internal buffer has been initialized.
dof_tuple_type
Identifiers for dof tuple types.
void transfer_internal_buffer_to_poset()
Initializes the poset from the internal buffer.
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.
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.
void transfer_poset_to_internal_buffer()
Initializes the internal buffer from the poset.
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.