SheafSystem  0.0.0.0
sheaf::poset_data_type_map Class Reference

A poset specific collection of data converters, various buffers and other data used while transferring posets between internal and external representations. More...

#include <poset_data_type_map.h>

Inheritance diagram for sheaf::poset_data_type_map:
sheaf::data_type_map sheaf::any

Public Member Functions

virtual poset_data_type_mapclone () const
 Virtual constructor; makes a new instance of the same type as this. More...
 
virtual bool invariant () const
 Class invariant. More...
 
virtual bool is_ancestor_of (const any *other) const
 Conformance test; true if other conforms to this. More...
 
 poset_data_type_map (const data_type_map &xprim_map)
 Create an instance with primitive type converters from xprim_map and default member record types. More...
 
 poset_data_type_map (const poset_data_type_map &xother)
 Copy constructor. More...
 
virtual ~poset_data_type_map ()
 Destructor. More...
 
data_convertertoc_converter () const
 The data converter for implementation type toc. More...
 
data_converterdof_tuple_id_converter () const
 The data converter for implementation type dof_tuple_id. More...
 
data_converteroffset_converter () const
 The data converter for implementation type offset. More...
 
void put_member_record_type_aliases (int xtoc_index, int xdof_tuple_id_index, int xoffset_index)
 Sets the member record specific data types These features are logically members of class member_record, but are placed here so they will only be initialized once per poset, rather than once per member record. More...
 
- Public Member Functions inherited from sheaf::data_type_map
virtual ~data_type_map ()
 Destructor. More...
 
hid_t file () const
 The hdf file this type map is associated with. More...
 
data_converteroperator[] (int xi) const
 The data converter for the type with index xi. More...
 
data_converterconverter (primitive_type xpt) const
 The data converter for primitive type xpt. More...
 
size_t max_internal_size () const
 The internal size of the largest fixed length type. More...
 
size_t max_external_size () const
 The external size of the largest fixed length type. More...
 
size_t max_size () const
 The maximum size, internal or external, of any fixed length type. More...
 
- Public Member Functions inherited from sheaf::any
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...
 

Additional Inherited Members

- Protected Member Functions inherited from sheaf::data_type_map
 data_type_map ()
 Default constructor. More...
 
 data_type_map (const data_type_map &xother)
 Copy constructor. More...
 
- Protected Member Functions inherited from sheaf::any
 any ()
 default constructor More...
 
- Protected Attributes inherited from sheaf::data_type_map
hid_t _file
 The hdf file handle. More...
 
size_t _max_internal_size
 The internal size of the largest fixed length type. More...
 
size_t _max_external_size
 The external size of the largest fixed length type. More...
 
data_converter_converters [PRIMITIVE_TYPE_END]
 Table of converters, one for each type defined in the file. More...
 

Detailed Description

A poset specific collection of data converters, various buffers and other data used while transferring posets between internal and external representations.

Definition at line 62 of file poset_data_type_map.h.

Constructor & Destructor Documentation

◆ poset_data_type_map() [1/2]

sheaf::poset_data_type_map::poset_data_type_map ( const data_type_map xprim_map)

Create an instance with primitive type converters from xprim_map and default member record types.

Postcondition

Definition at line 121 of file poset_data_type_map.cc.

References invariant().

◆ poset_data_type_map() [2/2]

sheaf::poset_data_type_map::poset_data_type_map ( const poset_data_type_map xother)

Copy constructor.

Postcondition

Definition at line 146 of file poset_data_type_map.cc.

References invariant(), and ~poset_data_type_map().

◆ ~poset_data_type_map()

sheaf::poset_data_type_map::~poset_data_type_map ( )
virtual

Destructor.

Definition at line 167 of file poset_data_type_map.cc.

References invariant(), sheaf::is_primitive_index(), and put_member_record_type_aliases().

Referenced by poset_data_type_map().

Member Function Documentation

◆ clone()

sheaf::poset_data_type_map * sheaf::poset_data_type_map::clone ( ) const
virtual

Virtual constructor; makes a new instance of the same type as this.

Postcondition
  • result != 0
  • is_same_type(result)

Reimplemented from sheaf::data_type_map.

Definition at line 32 of file poset_data_type_map.cc.

References invariant(), and sheaf::any::is_same_type().

◆ dof_tuple_id_converter()

data_converter* sheaf::poset_data_type_map::dof_tuple_id_converter ( ) const
inline

The data converter for implementation type dof_tuple_id.

Definition at line 121 of file poset_data_type_map.h.

Referenced by sheaf::poset_general_record::transfer_poset_to_internal_buffer().

◆ invariant()

bool sheaf::poset_data_type_map::invariant ( ) const
virtual

◆ is_ancestor_of()

bool sheaf::poset_data_type_map::is_ancestor_of ( const any other) const
virtual

Conformance test; true if other conforms to this.

Precondition
  • other != 0

Reimplemented from sheaf::data_type_map.

Definition at line 93 of file poset_data_type_map.cc.

Referenced by invariant().

◆ offset_converter()

data_converter* sheaf::poset_data_type_map::offset_converter ( ) const
inline

The data converter for implementation type offset.

Definition at line 129 of file poset_data_type_map.h.

Referenced by sheaf::poset_general_record::transfer_poset_to_internal_buffer().

◆ put_member_record_type_aliases()

void sheaf::poset_data_type_map::put_member_record_type_aliases ( int  xtoc_index,
int  xdof_tuple_id_index,
int  xoffset_index 
)

Sets the member record specific data types These features are logically members of class member_record, but are placed here so they will only be initialized once per poset, rather than once per member record.

Referenced by sheaf::poset_scaffold::put_member_record_type_aliases(), and ~poset_data_type_map().

◆ toc_converter()

data_converter* sheaf::poset_data_type_map::toc_converter ( ) const
inline

The data converter for implementation type toc.

Definition at line 113 of file poset_data_type_map.h.

Referenced by sheaf::poset_general_record::transfer_poset_to_internal_buffer().


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