@@ -79,14 +79,14 @@ namespace Ioss {
7979 EntityBlock derived class. Examples would be thickness
8080 of the elements in a shell element block or the radius
8181 of particles in a particle element block. */
82- MAP,
83- COMMUNICATION,
82+ MAP, // /< A list of integers specifying some ordering or mapping of the entties
83+ COMMUNICATION, // /< Related to parallel communication
8484 MESH_REDUCTION, /* *< A field which summarizes some non-transient data
8585 about an entity (\sa REDUCTION). This could be an
8686 offset applied to an element block, or the units
8787 system of a model or the name of the solid model
8888 which this entity is modelling... */
89- INFORMATION = MESH_REDUCTION,
89+ INFORMATION = MESH_REDUCTION, // /< Same as MESH_REDUCTION
9090 REDUCTION, /* *< A field which typically summarizes some transient data
9191 about an entity. The size of this field is typically not
9292 proportional to the number of entities in a GroupingEntity.
@@ -101,19 +101,31 @@ namespace Ioss {
101101
102102 Field ();
103103
104- // Create a field named 'name' that contains values of type 'type'
105- // in a storage format of type 'storage'. There are 'value_count'
106- // items in the field. If `value_count==0`, then the correct size
107- // will be set when the field is added to a `GroupingEntity`
104+ /* *< Create a field named 'name' that contains values of type 'type'
105+ in a storage format of type 'storage'. There are 'value_count'
106+ items in the field. If `value_count==0`, then the correct size
107+ will be set when the field is added to a `GroupingEntity` */
108108 Field (std::string name, BasicType type, const std::string &storage, RoleType role,
109109 size_t value_count = 0 , size_t index = 0 );
110110
111+ /* *< Create a composite field named 'name' that contains values of type 'type'
112+ in a storage format of type 'storage'. There will be `copies` instances of the `storage` format.
113+ There are 'value_count' items in the field. If `value_count==0`, then the correct size
114+ will be set when the field is added to a `GroupingEntity` */
111115 Field (std::string name, BasicType type, const std::string &storage, int copies, RoleType role,
112116 size_t value_count = 0 , size_t index = 0 );
113117
118+ /* *< Create a composed field named 'name' that contains values of type 'type'
119+ in a primary storage format of type 'storage' and a secondary storage format of type `secondary`.
120+ There are 'value_count' items in the field. If `value_count==0`, then the correct size
121+ will be set when the field is added to a `GroupingEntity` */
114122 Field (std::string name, BasicType type, const std::string &storage,
115123 const std::string &secondary, RoleType role, size_t value_count = 0 , size_t index = 0 );
116124
125+ /* *< Create a field named 'name' that contains values of type 'type'
126+ in a storage format of type 'storage' (specified via instance and not name).
127+ There are 'value_count' items in the field. If `value_count==0`, then the correct size
128+ will be set when the field is added to a `GroupingEntity` */
117129 Field (std::string name, BasicType type, const VariableType *storage, RoleType role,
118130 size_t value_count = 0 , size_t index = 0 );
119131
@@ -171,14 +183,14 @@ namespace Ioss {
171183 IOSS_NODISCARD const VariableType *raw_storage () const { return rawStorage_; }
172184 IOSS_NODISCARD const VariableType *transformed_storage () const { return transStorage_; }
173185
174- IOSS_NODISCARD size_t raw_count () const { return rawCount_; } // Number of items in field
175- IOSS_NODISCARD size_t transformed_count () const
186+ IOSS_NODISCARD size_t raw_count () const { return rawCount_; } // /< Number of items in field
187+ IOSS_NODISCARD size_t transformed_count () const
176188 {
177189 return transCount_;
178- } // Number of items in field
190+ } // /< Number of items in field after transforms have been applied.
179191
180- IOSS_NODISCARD size_t get_size () const ; // data size (in bytes) required to hold entire field
181- IOSS_NODISCARD size_t get_basic_size () const ; // data size (in bytes) of the basic type
192+ IOSS_NODISCARD size_t get_size () const ; // /< data size (in bytes) required to hold entire field
193+ IOSS_NODISCARD size_t get_basic_size () const ; // /< data size (in bytes) of the basic type
182194
183195 /* * \brief Get the role (MESH, ATTRIBUTE, TRANSIENT, REDUCTION, etc.) of the data in the field.
184196 *
@@ -198,16 +210,17 @@ namespace Ioss {
198210 return *this ;
199211 }
200212
201- void reset_count (size_t new_count); // new number of items in field
202- void reset_type (BasicType new_type); // new type of items in field.
213+ void reset_count (size_t new_count); // /< new number of items in field
214+ void reset_type (BasicType new_type); // /< new type of items in field.
203215
204- // Verify that data_size is valid. Return value is the maximum
205- // number of entities to get ('RawCount')
206- // Throws runtime error if data_size too small.
216+ /* * Verify that data_size is valid. Return value is the maximum
217+ * number of entities to get ('RawCount')
218+ * Throws runtime error if data_size too small.
219+ */
207220 size_t verify (size_t data_size) const ;
208221
209- // Verify that the type 'the_type' matches the field's type.
210- // throws exception if the types don't match.
222+ /* * Verify that the type 'the_type' matches the field's type.
223+ * throws exception if the types don't match. */
211224 void check_type (BasicType the_type) const ;
212225
213226 IOSS_NODISCARD bool is_type (BasicType the_type) const { return the_type == type_; }
@@ -225,23 +238,23 @@ namespace Ioss {
225238 private:
226239 std::string name_{};
227240
228- size_t rawCount_{}; // Count of items in field before transformation
229- size_t transCount_{}; // Count of items in field after transformed
230- size_t size_{}; // maximum data size (in bytes) required to hold entire field
241+ size_t rawCount_{}; // /< Count of items in field before transformation
242+ size_t transCount_{}; // /< Count of items in field after transformed
243+ size_t size_{}; // /< maximum data size (in bytes) required to hold entire field
231244 mutable size_t
232- index_{}; // Optional flag that can be used by a client to indicate an ordering.
245+ index_{}; // /< Optional flag that can be used by a client to indicate an ordering.
233246 // Unused by field itself. Used by some DatabaeIO objects to set ordering.
234- BasicType type_{INVALID};
235- RoleType role_{INTERNAL};
247+ BasicType type_{INVALID}; // /< The basic type of the field (Integer, Real, String)
248+ RoleType role_{INTERNAL}; // /< The role of the field.
236249
237- const VariableType *rawStorage_{nullptr }; // Storage type of raw field
238- const VariableType *transStorage_{nullptr }; // Storage type after transformation
250+ const VariableType *rawStorage_{nullptr }; // /< Storage type of raw field
251+ const VariableType *transStorage_{nullptr }; // /< Storage type after transformation
239252
240253 std::vector<std::shared_ptr<Transform>> transforms_{};
241- char suffixSeparator1_{1 }; // Value = 1 means unset; use database default.
242- char suffixSeparator2_{1 }; // Value = 1 means unset; use database default.
243- bool sufficesUppercase_{false }; // True if the suffices are uppercase on database...
244- mutable bool zeroCopyable_{false }; // True if the field is zero-copyable.
254+ char suffixSeparator1_{1 }; // /< Value = 1 means unset; use database default.
255+ char suffixSeparator2_{1 }; // /< Value = 1 means unset; use database default.
256+ bool sufficesUppercase_{false }; // /< True if the suffices are uppercase on database...
257+ mutable bool zeroCopyable_{false }; // /< True if the field is zero-copyable.
245258
246259 bool equal_ (const Ioss::Field &rhs, bool quiet) const ;
247260 };
0 commit comments