SheafSystem  0.0.0.0
sheaf::file_data_type_map Class Reference

A collection of data converters that map data types between internal and external representations associated with a specific file. More...

#include <file_data_type_map.h>

Inheritance diagram for sheaf::file_data_type_map:
sheaf::data_type_map sheaf::any

Public Member Functions

virtual file_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...
 
 file_data_type_map (hid_t xfile, bool xcreate_ext_types)
 Creates an instance for xfile. More...
 
 file_data_type_map (const file_data_type_map &xother)
 Copy constructor. More...
 
virtual ~file_data_type_map ()
 Destructor. 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 collection of data converters that map data types between internal and external representations associated with a specific file.

Definition at line 39 of file file_data_type_map.h.

Constructor & Destructor Documentation

◆ file_data_type_map() [1/2]

sheaf::file_data_type_map::file_data_type_map ( hid_t  xfile,
bool  xcreate_ext_types 
)

Creates an instance for xfile.

Postcondition

Definition at line 125 of file file_data_type_map.cc.

◆ file_data_type_map() [2/2]

sheaf::file_data_type_map::file_data_type_map ( const file_data_type_map xother)

Copy constructor.

Postcondition

Definition at line 188 of file file_data_type_map.cc.

References invariant(), and ~file_data_type_map().

◆ ~file_data_type_map()

Member Function Documentation

◆ clone()

sheaf::file_data_type_map * sheaf::file_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 38 of file file_data_type_map.cc.

References invariant().

◆ invariant()

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

Class invariant.

Reimplemented from sheaf::data_type_map.

Definition at line 64 of file file_data_type_map.cc.

References is_ancestor_of().

Referenced by clone(), and file_data_type_map().

◆ is_ancestor_of()

bool sheaf::file_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 97 of file file_data_type_map.cc.

Referenced by invariant().


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