SheafSystem  0.0.0.0
fiber_bundle::field_dof_map Class Reference

OBSOLETE: Use array_sec_vd_dof_map or sparse_section_dof_map. The abstract map from section_space_schema_member ids to section dof values of homogeneous type double. More...

#include <field_dof_map.h>

Inheritance diagram for fiber_bundle::field_dof_map:
fiber_bundle::section_dof_map sheaf::poset_dof_map sheaf::any fiber_bundle::array_field_dof_map fiber_bundle::sparse_field_dof_map

Public Member Functions

virtual const std::string & class_name () const
 The name of the actual (possibly derived) class of this instance. More...
 
field_dof_mapoperator= (const field_dof_map &xother)
 Assignment operator. More...
 
virtual ~field_dof_map ()
 Destructor. More...
 
virtual bool invariant () const
 The class invariant. More...
 
virtual void get_dofs (const client_index *xclient_ids, int xclient_id_ct, void *xbuf, size_t xbuf_len) const
 
virtual void put_dofs (const client_index *xclient_ids, int xclient_id_ct, const void *xbuf, size_t xbuf_len)
 
void get_dofs (const client_index *xclient_base_ids, int xclient_base_id_ct, const client_index *xclient_fiber_ids, int xclient_fiber_id_ct, double *xbuf, int xbuf_len) const
 Double version of get_dofs. More...
 
void put_dofs (const client_index *xclient_base_ids, int xclient_base_id_ct, const client_index *xclient_fiber_ids, int xclient_fiber_id_ct, const double *xbuf, int xbuf_len)
 Double version of put_dofs. More...
 
- Public Member Functions inherited from fiber_bundle::section_dof_map
section_dof_mapoperator= (const section_dof_map &xother)
 Assignment operator. More...
 
virtual ~section_dof_map ()
 Destructor. More...
 
virtual sec_rep_spacehost () const
 The poset which hosts member() More...
 
virtual section_space_schema_memberschema ()
 The schema on which this is allocated (mutable version). More...
 
virtual const section_space_schema_memberschema () const
 The schema on which this is allocated (const version). More...
 
virtual bool dof_in_bounds (pod_index_type xdof_id, bool xis_table_dofs) const
 True if and only if the dof asociated with id xdof_id is within the current capacity of the dofs storage. More...
 
virtual bool dof_in_bounds (pod_index_type xdisc_id, pod_index_type xfiber_id, bool xis_table_dofs) const
 True if and only if the dof asociated with discretization id xdisc_id and fiber dof id xfiber_id is within the current capacity of the dofs storage. More...
 
virtual void get_dof (pod_index_type xdisc_id, pod_index_type xfiber_dof_id, void *xdof, size_type xdof_size) const =0
 Copies the dof referred to by xdisc_id, xfiber_dof_id into xdof. More...
 
void get_dof (pod_index_type xdisc_id, pod_index_type xfiber_dof_id, void *xdof, size_type xdof_size)
 
void get_dof (const scoped_index &xdisc_id, const scoped_index &xfiber_dof_id, void *xdof, size_type xdof_size) const
 Copies the dof referred to by xdisc_id, xfiber_dof_id into xdof. More...
 
void get_dof (const scoped_index &xdisc_id, const scoped_index &xfiber_dof_id, void *xdof, size_type xdof_size)
 
virtual void put_dof (pod_index_type xdisc_id, pod_index_type xfiber_dof_id, const void *xdof, size_type xdof_size)=0
 Sets the dof referred to by xdof_id to the value at xdof. More...
 
void put_dof (const scoped_index &xdisc_id, const scoped_index &xfiber_dof_id, const void *xdof, size_type xdof_size)
 Sets the dof referred to by xdof_id to the value at xdof. More...
 
virtual bool fiber_in_bounds (pod_index_type xdisc_id, bool xis_table_dofs) const
 True if and only if the fiber asociated with discretization id xdisc_id is within the current capacity of the dofs storage. More...
 
virtual void get_fiber (pod_index_type xdisc_id, void *xfiber, size_type xfiber_size) const
 Sets xfiber to the fiber referred to by discretization id xdisc_id. More...
 
void get_fiber (const scoped_index &xdisc_id, void *xfiber, size_type xfiber_size) const
 Sets xfiber to the fiber referred to by discretization id xdisc_id. More...
 
virtual void put_fiber (pod_index_type xdisc_id, const void *xfiber, size_type xfiber_size)=0
 Sets the fiber referred to by discretization id xdisc_id to xfiber. More...
 
void put_fiber (const scoped_index &xdisc_id, const void *xfiber, size_type xfiber_size)
 Sets the fiber referred to by discretization id xdisc_id to xfiber. More...
 
virtual void force_fiber (pod_index_type xdisc_id, const void *xfiber, size_type xfiber_size)
 Sets the fiber referred to by discretization id xdisc_id to xfiber; allocates additional memory if necessary. More...
 
void force_fiber (const scoped_index &xdisc_id, const void *xfiber, size_type xfiber_size)
 Sets the fiber referred to by discretization id xdisc_id to xfiber; allocates additional memory if necessary. More...
 
virtual void get_component (pod_index_type xfiber_dof_id, void *xcomponent, size_type xcomponent_size) const =0
 Sets xcomponent to the component referred to by fiber id xfiber_dof_id. More...
 
void get_component (const scoped_index &xfiber_dof_id, void *xcomponent, size_type xcomponent_size) const
 Sets xcomponent to the component referred to by fiber id xfiber_dof_id. More...
 
virtual void put_component (pod_index_type xfiber_dof_id, const void *xcomponent, size_type xcomponent_size)=0
 Sets the component referred to by fiber id xfiber_dof_id to xcomponent. More...
 
void put_component (const scoped_index &xfiber_dof_id, const void *xcomponent, size_type xcomponent_size)
 Sets the component referred to by fiber id xfiber_dof_id to xcomponent. More...
 
virtual bool supports_xfr_opt () const
 True if this dof map type supports dof tuple transfer optimization. /. More...
 
- Public Member Functions inherited from sheaf::poset_dof_map
virtual poset_dof_mapclone () const =0
 Virtual default constructor. More...
 
virtual poset_dof_mapcopy () const =0
 Virtual copy constructor. More...
 
poset_dof_mapoperator= (const poset_dof_map &xother)
 Assignment operator. More...
 
virtual ~poset_dof_map ()
 Destructor. More...
 
virtual void init_row_dof_map (const poset_state_handle *xhost, pod_index_type xschema_mbr_id, int xschema_version)
 Initializes this as a map for row dofs in host xhost, with schema member specified by xschema_mbr_id and schema version xschema_version. More...
 
void init_row_dof_map (const poset_state_handle *xhost, const scoped_index &xschema_mbr_id, int xschema_version)
 Initializes this as a map for row dofs in host xhost, with schema member specified by xschema_mbr_id and schema version xschema_version. More...
 
virtual dof_tuple_type type_id () const =0
 An identifer for the type of dof tuple this is. More...
 
bool is_initialized () const
 True if this has been initialized, that is, if the schema has been set and the dof map storage allocated. More...
 
const scoped_indexindex () const
 The index of this in host() dof tuple table. More...
 
bool is_table_dof_map () const
 True if this is a table dof map. More...
 
int dof_ct () const
 The number of dofs in this map. More...
 
primitive_value dof (pod_index_type xdof_id) const
 The dof referred to by xdof_id. More...
 
primitive_value dof (const scoped_index &xdof_id) const
 The dof referred to by xdof_id. More...
 
primitive_value dof (const std::string &xname) const
 The dof with name xname. More...
 
void put_dof (pod_index_type xdof_id, const primitive_value &xdof)
 Sets the dof referred to by xdof_id to xdof. More...
 
void put_dof (const scoped_index &xdof_id, const primitive_value &xdof)
 Sets the dof referred to by xdof_id to xdof. More...
 
void put_dof (const std::string &xname, const primitive_value &xdof)
 Sets the dof with name xname to xdof. More...
 
virtual void get_dof (pod_index_type xdof_id, void *xdof, size_type xdof_size) const
 Copies the dof referred to by xdof_id into xdof. More...
 
void get_dof (const scoped_index &xdof_id, void *xdof, size_type xdof_size) const
 Copies the dof referred to by xdof_id into xdof. More...
 
virtual void put_dof (pod_index_type xdof_id, const void *xdof, size_type xdof_size)
 Sets the dof referred to by xdof_id to the value at xdof. More...
 
void put_dof (const scoped_index &xdof_id, const void *xdof, size_type xdof_size)
 Sets the dof referred to by xdof_id to the value at xdof. More...
 
size_t dof_tuple_ub () const
 The size of the dof tuple in bytes. More...
 
virtual void * dof_tuple ()=0
 The dof tuple (mutable version). More...
 
virtual const void * dof_tuple () const =0
 The dof tuple (const version). More...
 
virtual void get_dof_tuple (void *xbuf, size_t xbuflen) const =0
 Copies the entire dof tuple from internal storage into xbuf. More...
 
virtual void put_dof_tuple (const void *xbuf, size_t xbuflen)=0
 Copies the entire dof tuple from xbuf into internal storage. More...
 
void get_dof_tuple (arg_list &xargs) const
 Copies the entire dof tuple from internal storage into xargs. More...
 
void put_dof_tuple (const arg_list &xargs)
 Copies the entire dof tuple from xargs into internal storage. More...
 
void copy_dof_tuple (const poset_dof_map &xother)
 Copies the dof tuple of xother into this. More...
 
virtual void put_defaults ()
 Sets all dofs to defualt values. More...
 
unsigned int ref_ct () const
 The number of references to this map. More...
 
void inc_ref_ct ()
 Increase the number of references to this map by one;. More...
 
void dec_ref_ct ()
 Decrease the number of references to this map by one. More...
 
int version () const
 The version of the host of the schema this is defined on. More...
 
virtual const index_space_handleclient_id_space () const
 The map from library ids to clients ids for the schema this is defined on. More...
 
std::string to_string (const schema_poset_member &xschema) const
 Return schema member dof value as a string. More...
 
std::string to_string () const
 Return dof values as a formated string. More...
 
- Public Member Functions inherited from sheaf::any
virtual bool is_ancestor_of (const any *other) const
 True if other conforms to this. More...
 
bool is_same_type (const any *other) const
 True if other is the same type as this. More...
 
virtual ~any ()
 Destructor. More...
 
bool invariant_check () const
 True if invariant checking is enabled. More...
 
void enable_invariant_check () const
 Enable invariant checking. More...
 
void disable_invariant_check () const
 Disable invariant check. Intended for preventing recursive calls to invariant and for suppressing invariant checking during multi-phase initialization. More...
 
int disable_invariance_check_request_depth () const
 Number of times disable_invariant_check has been called without matching call to enable_invariant_check. More...
 

Static Public Member Functions

static const std::string & static_class_name ()
 The name of this class. More...
 
- Static Public Member Functions inherited from fiber_bundle::section_dof_map
static const std::string & static_class_name ()
 The name of this class. More...
 
- Static Public Member Functions inherited from sheaf::poset_dof_map
static const std::string & static_class_name ()
 The name of this class. More...
 
static poset_dof_mapnew_dof_map (const std::string &xclass_name, dof_tuple_type xsheaf_base_class_id)
 Creates an uninitialized dof map of type xclass_name, if a prototype of that name exists, otherwise of type xsheaf_base_class_id. More...
 

Protected Member Functions

 field_dof_map ()
 Default constructor. More...
 
 field_dof_map (const field_dof_map &xother)
 Copy constructor. More...
 
 field_dof_map (const sec_rep_space *xhost)
 Creates a map for the poset dofs of xhost. More...
 
- Protected Member Functions inherited from fiber_bundle::section_dof_map
 section_dof_map ()
 Default constructor. More...
 
 section_dof_map (const section_dof_map &xother)
 Copy constructor. More...
 
 section_dof_map (sec_rep_space *xhost, pod_index_type xbase_id, int xversion)
 Creates a map for a (possibly partial) section of xhost defined on version xversion of the base space member identified by xbase_id. More...
 
- Protected Member Functions inherited from sheaf::poset_dof_map
 poset_dof_map ()
 Default constructor;. More...
 
 poset_dof_map (const poset_dof_map &xother)
 Copy constructor. More...
 
 poset_dof_map (const poset_state_handle *xhost, bool xis_table_dof_map)
 Creates a map for the table dofs (xis_table_dofs true) or row dofs (xis_table dofs false) for use in host xhost. More...
 
 poset_dof_map (const schema_poset_member *xschema, bool xis_table_dof_map)
 Creates a map for the table dofs (xis_table_dofs true) or row dofs (xis_table dofs false) for use in host xhost. More...
 
virtual void put_host (const poset_state_handle *xhost)
 Sets host() to xhost. More...
 
void put_index (const scoped_index &xindex)
 Sets the index of the member for which this provides the dofs. More...
 
void put_dof_ct (int xdof_ct)
 Sets dof_ct() to xdof_ct. More...
 
void put_dof_tuple_ub (size_t xub)
 Sets dof_tuple_ub() to xub. More...
 
void put_ref_ct (int xref_ct)
 Sets ref_ct() to xref_ct). More...
 
virtual void allocate_dofs ()=0
 Allocates dof storage. More...
 
- Protected Member Functions inherited from sheaf::any
 any ()
 default constructor More...
 

Friends

class sec_rep_space_member
 

Additional Inherited Members

- Static Protected Member Functions inherited from sheaf::poset_dof_map
static dof_map_factoryfactory ()
 The dof map factory. More...
 
- Protected Attributes inherited from sheaf::poset_dof_map
poset_state_handle_host
 The host of the poset member for which this stores the dofs. More...
 
scoped_index _index
 The poset member for which this stores the dofs. More...
 
schema_poset_member_schema
 The schema on which this is instantiated. More...
 
bool _is_table_dof_map
 True if this is a table dof map. More...
 
int _dof_ct
 The number of dofs in this map. More...
 
size_t _dof_tuple_ub
 The size of the dof tuple. More...
 
unsigned int _ref_ct
 The number of references to this map /. More...
 

Detailed Description

OBSOLETE: Use array_sec_vd_dof_map or sparse_section_dof_map. The abstract map from section_space_schema_member ids to section dof values of homogeneous type double.

Definition at line 48 of file field_dof_map.h.

Constructor & Destructor Documentation

◆ ~field_dof_map()

fiber_bundle::field_dof_map::~field_dof_map ( )
virtual

Destructor.

Definition at line 96 of file field_dof_map.cc.

References invariant().

Referenced by operator=().

◆ field_dof_map() [1/3]

fiber_bundle::field_dof_map::field_dof_map ( )
protected

Default constructor.

Definition at line 142 of file field_dof_map.cc.

Referenced by field_dof_map(), and invariant().

◆ field_dof_map() [2/3]

fiber_bundle::field_dof_map::field_dof_map ( const field_dof_map xother)
protected

Copy constructor.

Definition at line 161 of file field_dof_map.cc.

References field_dof_map().

◆ field_dof_map() [3/3]

fiber_bundle::field_dof_map::field_dof_map ( const sec_rep_space xhost)
protected

Creates a map for the poset dofs of xhost.

Definition at line 180 of file field_dof_map.cc.

Member Function Documentation

◆ class_name()

const std::string & fiber_bundle::field_dof_map::class_name ( ) const
virtual

The name of the actual (possibly derived) class of this instance.

Postcondition
  • !result.empty()

Reimplemented from fiber_bundle::section_dof_map.

Reimplemented in fiber_bundle::array_field_dof_map, and fiber_bundle::sparse_field_dof_map.

Definition at line 31 of file field_dof_map.cc.

References static_class_name().

◆ get_dofs() [1/2]

virtual void fiber_bundle::field_dof_map::get_dofs ( const client_index *  xclient_ids,
int  xclient_id_ct,
void *  xbuf,
size_t  xbuf_len 
) const
inlinevirtual
Hack:
Following 2 redefinitions provided only to silence warnings about hiding virtual function.
Todo:
implement product posets so inheritance is correct.

Not Implemented.

Reimplemented in fiber_bundle::array_field_dof_map, and fiber_bundle::sparse_field_dof_map.

Definition at line 90 of file field_dof_map.h.

◆ get_dofs() [2/2]

void fiber_bundle::field_dof_map::get_dofs ( const client_index *  xclient_base_ids,
int  xclient_base_id_ct,
const client_index *  xclient_fiber_ids,
int  xclient_fiber_id_ct,
double *  xbuf,
int  xbuf_len 
) const
inline

Double version of get_dofs.

Definition at line 105 of file field_dof_map.h.

◆ invariant()

bool fiber_bundle::field_dof_map::invariant ( ) const
virtual

The class invariant.

Reimplemented from fiber_bundle::section_dof_map.

Reimplemented in fiber_bundle::array_field_dof_map, and fiber_bundle::sparse_field_dof_map.

Definition at line 115 of file field_dof_map.cc.

References field_dof_map(), and fiber_bundle::section_dof_map::invariant().

Referenced by ~field_dof_map().

◆ operator=()

fiber_bundle::field_dof_map & fiber_bundle::field_dof_map::operator= ( const field_dof_map xother)

◆ put_dofs() [1/2]

virtual void fiber_bundle::field_dof_map::put_dofs ( const client_index *  xclient_ids,
int  xclient_id_ct,
const void *  xbuf,
size_t  xbuf_len 
)
inlinevirtual

Not Implemented.

Reimplemented in fiber_bundle::array_field_dof_map, and fiber_bundle::sparse_field_dof_map.

Definition at line 96 of file field_dof_map.h.

◆ put_dofs() [2/2]

void fiber_bundle::field_dof_map::put_dofs ( const client_index *  xclient_base_ids,
int  xclient_base_id_ct,
const client_index *  xclient_fiber_ids,
int  xclient_fiber_id_ct,
const double *  xbuf,
int  xbuf_len 
)
inline

Double version of put_dofs.

Definition at line 117 of file field_dof_map.h.

◆ static_class_name()

const std::string & fiber_bundle::field_dof_map::static_class_name ( )
static

The name of this class.

Postcondition
  • !result.empty()
  • result == "field_dof_map"

Definition at line 51 of file field_dof_map.cc.

References operator=().

Referenced by class_name().


The documentation for this class was generated from the following files: