bu_attribute_value_set Struct Reference
[Attribute/Value Sets]

#include <bu.h>

Collaboration diagram for bu_attribute_value_set:

Collaboration graph
[legend]

Data Fields

long magic
int count
 # valid entries in avp
int max
 # allocated slots in avp
genptr_t readonly_min
genptr_t readonly_max
bu_attribute_value_pairavp
 array[max]

Detailed Description

B U _ A T T R I B U T E _ V A L U E _ S E T

A variable-sized attribute-value-pair array.

avp points to an array of [max] slots. The interface routines will realloc to extend as needed.

In general, each of the names and values is a local copy made with bu_strdup(), and each string needs to be freed individually. However, if a name or value pointer is between readonly_min and readonly_max, then it is part of a big malloc block that is being freed by the caller, and should not be individually freed.

Definition at line 1140 of file bu.h.


Field Documentation

long magic
 

Definition at line 1141 of file bu.h.

Referenced by bu_avs_init(), bu_avs_init_empty(), rt_comb_export5(), rt_db_external5_to_internal5(), rt_db_free_internal(), rt_extrude_xform(), and rt_generic_xform().

int count
 

# valid entries in avp

Definition at line 1142 of file bu.h.

Referenced by bu_avs_add(), bu_avs_add_nonunique(), bu_avs_free(), bu_avs_get(), bu_avs_init(), bu_avs_init_empty(), bu_avs_print(), bu_avs_remove(), db5_export_attributes(), db5_import_attributes(), db_diradd5(), db_dup_db_tree_state(), db_lookup_by_attr(), rt_extrude_xform(), rt_generic_xform(), and wdb_attr_cmd().

int max
 

# allocated slots in avp

Definition at line 1143 of file bu.h.

Referenced by bu_avs_add(), bu_avs_add_nonunique(), bu_avs_free(), bu_avs_init(), bu_avs_init_empty(), db5_import_attributes(), and db_free_db_tree_state().

genptr_t readonly_min
 

Definition at line 1144 of file bu.h.

Referenced by bu_avs_init(), bu_avs_init_empty(), and db5_import_attributes().

genptr_t readonly_max
 

Definition at line 1145 of file bu.h.

Referenced by bu_avs_init(), bu_avs_init_empty(), and db5_import_attributes().

struct bu_attribute_value_pair* avp
 

array[max]

Definition at line 1146 of file bu.h.

Referenced by bu_avs_add(), bu_avs_add_nonunique(), bu_avs_free(), bu_avs_init(), bu_avs_init_empty(), bu_avs_print(), bu_avs_remove(), db5_export_attributes(), db5_import_attributes(), db_dup_db_tree_state(), db_free_db_tree_state(), db_lookup_by_attr(), and wdb_attr_cmd().


The documentation for this struct was generated from the following file:
Generated on Mon Sep 18 01:25:10 2006 for BRL-CAD by  doxygen 1.4.6