SheafSystem
0.0.0.0
|
Abstract object wrapper for an instance of a primitive type. More...
#include <primitive_attributes.h>
Public Member Functions | |
primitive_attributes () | |
Default constructor. More... | |
primitive_attributes (const primitive_attributes &xother) | |
Copy constructor. More... | |
primitive_attributes (primitive_type xid) | |
Creates a new primitive value of the type associated with xid and default value. More... | |
primitive_attributes (const void *x) | |
Conversion from pointer; creates a new primitive value of type VOID_STAR with value x. More... | |
primitive_attributes (const char *x) | |
Conversion from C string; creates a new primitive value of type C_STRING with value x. More... | |
template<typename T > | |
primitive_attributes (const T &x) | |
Conversion from type T; creates a new primitive value of type T with value x. More... | |
primitive_attributes & | operator= (const primitive_attributes &) |
Copy assignment operator. More... | |
~primitive_attributes () | |
Destructor; not virtual, this can not be a base class. More... | |
primitive_type | id () const |
The id for the primitive type associated with this. More... | |
size_type | size () const |
The size of the primitive type associated with this. More... | |
size_type | alignment () const |
The alignment for the primitive type associated with this. More... | |
const std::string & | name () const |
The name of the primitive type associated with this. More... | |
const std::string & | aliases () const |
Other names for the primitive type associated with this. More... | |
const std::string & | hdf_type_name () const |
The name in the hdf file of the primitive type associated with this. More... | |
int | hdf_type () const |
The hdf type of the primitive type associated with this. More... | |
primitive_buffer_type | default_value () const |
The default value for the primitive type associated with this. More... | |
operator primitive_descriptor () const | |
Conversion to primitive_descriptor. More... | |
template<> | |
primitive_attributes (const std::string &x) | |
template<> | |
primitive_attributes (const scoped_index &x) | |
template<> | |
primitive_attributes (const namespace_relative_member_index &x) | |
template<> | |
primitive_attributes (const namespace_relative_subposet_index &x) | |
Static Public Member Functions | |
static const primitive_attributes & | prototype (pod_index_type xid) |
The prototype for the primitive value of the type associated with xid. More... | |
static primitive_type | id (const std::string &xname) |
Type id of the primitive type with name or alias xname. More... | |
static primitive_type | id (pod_index_type xid) |
Converts pod_index_type xid to primitive_type. More... | |
static size_type | size (pod_index_type xid) |
Size of the primitive type with id xid. More... | |
static size_type | alignment (pod_index_type xid) |
Alignment of the primitive type with id xid. More... | |
static const std::string & | name (pod_index_type xid) |
The name of primitive type with id xid. More... | |
static const std::string & | aliases (pod_index_type xid) |
Other names for the primitive type with id xid. More... | |
static const std::string & | hdf_type_name (pod_index_type xid) |
The name in the hdf file of primitive type with id xid. More... | |
static int | hdf_type (pod_index_type xid) |
The hdf type of primitive type with id xid. More... | |
static primitive_buffer_type | default_value (pod_index_type xid) |
The default value for the primitive type associated with this. More... | |
static primitive_descriptor | descriptor (pod_index_type xid) |
Primitive descriptor for the primitive type with id xid. More... | |
Abstract object wrapper for an instance of a primitive type.
Definition at line 40 of file primitive_attributes.h.
sheaf::primitive_attributes::primitive_attributes | ( | ) |
Default constructor.
Definition at line 153 of file primitive_attributes.cc.
References sheaf::primitive_traits< T >::aliases(), sheaf::primitive_traits< T >::alignment(), sheaf::primitive_traits< T >::hdf_type(), sheaf::primitive_traits< T >::hdf_type_name(), sheaf::primitive_traits< T >::id(), sheaf::primitive_traits< T >::name(), and sheaf::primitive_traits< T >::size().
Referenced by id(), and primitive_attributes().
sheaf::primitive_attributes::primitive_attributes | ( | const primitive_attributes & | xother | ) |
Copy constructor.
Definition at line 166 of file primitive_attributes.cc.
References primitive_attributes().
sheaf::primitive_attributes::primitive_attributes | ( | primitive_type | xid | ) |
Creates a new primitive value of the type associated with xid and default value.
Definition at line 173 of file primitive_attributes.cc.
References sheaf::is_primitive_index(), and primitive_attributes().
sheaf::primitive_attributes::primitive_attributes | ( | const void * | x | ) |
Conversion from pointer; creates a new primitive value of type VOID_STAR with value x.
Definition at line 194 of file primitive_attributes.cc.
References sheaf::primitive_traits< T >::aliases(), sheaf::primitive_traits< T >::alignment(), sheaf::primitive_traits< T >::hdf_type(), sheaf::primitive_traits< T >::hdf_type_name(), sheaf::primitive_traits< T >::id(), sheaf::primitive_traits< T >::name(), primitive_attributes(), and sheaf::primitive_traits< T >::size().
sheaf::primitive_attributes::primitive_attributes | ( | const char * | x | ) |
Conversion from C string; creates a new primitive value of type C_STRING with value x.
Definition at line 219 of file primitive_attributes.cc.
References sheaf::primitive_traits< T >::aliases(), sheaf::primitive_traits< T >::alignment(), sheaf::primitive_traits< T >::hdf_type(), sheaf::primitive_traits< T >::hdf_type_name(), sheaf::primitive_traits< T >::id(), sheaf::primitive_traits< T >::name(), primitive_attributes(), and sheaf::primitive_traits< T >::size().
sheaf::primitive_attributes::primitive_attributes | ( | const T & | x | ) |
Conversion from type T; creates a new primitive value of type T with value x.
Definition at line 245 of file primitive_attributes.cc.
References sheaf::primitive_traits< T >::aliases(), sheaf::primitive_traits< T >::alignment(), sheaf::primitive_traits< T >::hdf_type(), sheaf::primitive_traits< T >::hdf_type_name(), sheaf::primitive_traits< T >::id(), sheaf::primitive_traits< T >::name(), primitive_attributes(), and sheaf::primitive_traits< T >::size().
sheaf::primitive_attributes::~primitive_attributes | ( | ) |
Destructor; not virtual, this can not be a base class.
Definition at line 419 of file primitive_attributes.cc.
Referenced by operator=().
sheaf::primitive_attributes::primitive_attributes | ( | const std::string & | x | ) |
Definition at line 275 of file primitive_attributes.cc.
References primitive_attributes().
sheaf::primitive_attributes::primitive_attributes | ( | const scoped_index & | x | ) |
Definition at line 295 of file primitive_attributes.cc.
References primitive_attributes().
sheaf::primitive_attributes::primitive_attributes | ( | const namespace_relative_member_index & | x | ) |
Definition at line 315 of file primitive_attributes.cc.
References primitive_attributes().
sheaf::primitive_attributes::primitive_attributes | ( | const namespace_relative_subposet_index & | x | ) |
Definition at line 335 of file primitive_attributes.cc.
References operator=(), and primitive_attributes().
|
inlinestatic |
Other names for the primitive type with id xid.
Definition at line 90 of file primitive_attributes.h.
References aliases().
Referenced by aliases().
|
inline |
Other names for the primitive type associated with this.
Definition at line 216 of file primitive_attributes.h.
|
inlinestatic |
Alignment of the primitive type with id xid.
Definition at line 74 of file primitive_attributes.h.
References alignment().
Referenced by alignment().
|
inline |
The alignment for the primitive type associated with this.
Definition at line 200 of file primitive_attributes.h.
|
inlinestatic |
The default value for the primitive type associated with this.
Definition at line 114 of file primitive_attributes.h.
References default_value().
Referenced by default_value().
|
inline |
The default value for the primitive type associated with this.
Definition at line 240 of file primitive_attributes.h.
|
inlinestatic |
Primitive descriptor for the primitive type with id xid.
Definition at line 122 of file primitive_attributes.h.
Referenced by sheaf::data_converter::data_converter(), and sheaf::primitives_poset_dof_map::primitives_poset_dof_map().
|
inlinestatic |
The hdf type of primitive type with id xid.
Definition at line 106 of file primitive_attributes.h.
References hdf_type().
Referenced by hdf_type().
|
inline |
The hdf type of the primitive type associated with this.
Definition at line 232 of file primitive_attributes.h.
Referenced by sheaf::file_data_type_map::~file_data_type_map().
|
inlinestatic |
The name in the hdf file of primitive type with id xid.
Definition at line 98 of file primitive_attributes.h.
References hdf_type_name().
Referenced by hdf_type_name(), and sheaf::file_data_type_map::~file_data_type_map().
|
inline |
The name in the hdf file of the primitive type associated with this.
Definition at line 224 of file primitive_attributes.h.
Referenced by sheaf::file_data_type_map::~file_data_type_map().
|
static |
Type id of the primitive type with name or alias xname.
Definition at line 120 of file primitive_attributes.cc.
References primitive_attributes().
Referenced by id(), and prototype().
|
inlinestatic |
Converts pod_index_type xid to primitive_type.
Definition at line 58 of file primitive_attributes.h.
References id().
|
inline |
The id for the primitive type associated with this.
Definition at line 184 of file primitive_attributes.h.
Referenced by sheaf::sheaf_constants::primitive_type_from_index(), sheaf::sheaf_constants::primitive_type_from_name(), prototype(), sheaf::arg_list::arg_type::put_type(), sheaf::primitives_poset_dof_map::type(), and sheaf::schema_poset_member::type().
|
inlinestatic |
The name of primitive type with id xid.
Definition at line 82 of file primitive_attributes.h.
References name().
Referenced by name().
|
inline |
The name of the primitive type associated with this.
Definition at line 208 of file primitive_attributes.h.
Referenced by sheaf::operator<<(), and sheaf::sheaf_constants::primitive_type_to_name().
sheaf::primitive_attributes::operator primitive_descriptor | ( | ) | const |
Conversion to primitive_descriptor.
Definition at line 426 of file primitive_attributes.cc.
References sheaf::auto_block< T, un_block_initialization_policy< T > >::ct(), and sheaf::auto_block< T, un_block_initialization_policy< T > >::set_ct().
sheaf::primitive_attributes & sheaf::primitive_attributes::operator= | ( | const primitive_attributes & | x | ) |
Copy assignment operator.
Definition at line 391 of file primitive_attributes.cc.
References ~primitive_attributes().
Referenced by primitive_attributes().
|
static |
The prototype for the primitive value of the type associated with xid.
Definition at line 94 of file primitive_attributes.cc.
References id(), and sheaf::is_primitive_index().
Referenced by sheaf::file_data_type_map::~file_data_type_map().
|
inlinestatic |
Size of the primitive type with id xid.
Definition at line 66 of file primitive_attributes.h.
References size().
Referenced by size().
|
inline |
The size of the primitive type associated with this.
Definition at line 192 of file primitive_attributes.h.