37 return _has_default_value;
47 if (_default_value_stale) {
48 ((
DCField *)
this)->refresh_default_value();
50 return _default_value;
149 write(std::ostream &out,
int indent_level)
const {
150 write(out,
false, indent_level);
176 _default_value = std::move(default_value);
177 _has_default_value =
true;
178 _default_value_stale =
false;
bool is_clsend() const
Returns true if the "clsend" flag is set for this field, false otherwise.
int get_number() const
Returns a unique index number associated with this field.
DCClass * get_class() const
Returns the DCClass pointer for the class that contains this field.
A single field of a Distributed Class, either atomic or molecular.
void set_class(DCClass *dclass)
Assigns the class pointer to this field.
void set_number(int number)
Assigns the unique number to this field.
bool is_broadcast() const
Returns true if the "broadcast" flag is set for this field, false otherwise.
Defines a particular DistributedClass as read from an input .dc file.
void output(std::ostream &out) const
Write a string representation of this instance to <out>.
const vector_uchar & get_default_value() const
Returns the default value for this field.
bool is_required() const
Returns true if the "required" flag is set for this field, false otherwise.
bool has_keyword(const std::string &name) const
Returns true if this list includes the indicated keyword, false otherwise.
bool is_ownsend() const
Returns true if the "ownsend" flag is set for this field, false otherwise.
bool has_default_value() const
Returns true if a default value has been explicitly established for this field, false otherwise.
bool is_airecv() const
Returns true if the "airecv" flag is set for this field, false otherwise.
void write(std::ostream &out, int indent_level) const
Write a string representation of this instance to <out>.
bool is_ownrecv() const
Returns true if the "ownrecv" flag is set for this field, false otherwise.
void set_default_value(vector_uchar default_value)
Establishes a default value for this field.
bool is_clrecv() const
Returns true if the "clrecv" flag is set for this field, false otherwise.
bool is_db() const
Returns true if the "db" flag is set for this field, false otherwise.
bool is_bogus_field() const
Returns true if the field has been flagged as a bogus field.
bool is_ram() const
Returns true if the "ram" flag is set for this field, false otherwise.