20 #include "SheafSystem/dof_tuple_domain_offsets_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());
201 while(lstream >> ldomain_offset[0])
205 lstream >> ldomain_offset[1];
206 lstream >> ldomain_offset[2];
210 typedef poset_scaffold::dof_tuple_domain_offsets_type::key_type key_type;
211 key_type lkey(ldomain_offset[0], ldomain_offset[1]);
215 typedef poset_scaffold::dof_tuple_domain_offsets_type::value_type value_type;
216 value_type lval(lkey, ldomain_offset[2]);
235 require(
scaffold().structure().state_is_read_accessible());
239 stringstream lstream;
241 lstream <<
"Dof tuple domain offsets:" << endl;
243 poset_scaffold::dof_tuple_domain_offsets_type::iterator itr;
245 for(itr =
scaffold().dof_tuple_domain_offsets().begin();
249 lstream << itr->first.first <<
" " 250 << itr->first.second <<
" " 251 << itr->second << endl;
poset_scaffold & scaffold()
The scaffold for the poset associated with this record (mutable version).
void transfer_poset_to_internal_buffer()
Initializes the internal buffer from the poset.
virtual ~dof_tuple_domain_offsets_record()
Destructor.
Abstract base class with useful features for all objects.
dof_tuple_domain_offsets_record(poset_scaffold &xscaffold)
Creates an instance with type map xtype_map.
std::string _str_buf
The internal/external buffer.
bool is_internal() const
True if the internal buffer has been initialized.
dof_tuple_domain_offsets_type & dof_tuple_domain_offsets()
Dof tuple domain offsets accessor (mutable version).
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.
pod_index_type pod_type
The "plain old data" storage type for this.
virtual bool is_ancestor_of(const any *other) const
Conformance test; true if other conforms to this.
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.
virtual bool invariant() const
Class invariant.
An abstract wrapper/adapter for attributes records. Intended for transferring data between the kernel...
A wrapper/adapter for the dof tuple domain offsets record. Intended for transferring index-offsets ma...
virtual dof_tuple_domain_offsets_record * clone() const
Virtual constructor; makes a new instance of the same type as this.
void put_is_external(bool xis_external)
Sets is_external to xis_external.