47 return _has_default_value;
61 if (_default_value_stale) {
62 ((
DCField *)
this)->refresh_default_value();
64 return _default_value;
186 INLINE
void DCField::
187 output(ostream &out)
const {
197 INLINE
void DCField::
198 write(ostream &out,
int indent_level)
const {
199 write(out,
false, indent_level);
233 _default_value = default_value;
234 _has_default_value =
true;
235 _default_value_stale =
false;
bool is_ram() const
Returns true if the "ram" flag is set for this field, false otherwise.
const string & get_default_value() const
Returns the default value for this field.
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.
A single field of a Distributed Class, either atomic or molecular.
bool is_airecv() const
Returns true if the "airecv" flag is set for this field, false otherwise.
void set_class(DCClass *dclass)
Assigns the class pointer to this field.
bool has_default_value() const
Returns true if a default value has been explicitly established for this field, false otherwise...
void set_number(int number)
Assigns the unique number to this field.
Defines a particular DistributedClass as read from an input .dc file.
DCClass * get_class() const
Returns the DCClass pointer for the class that contains this field.
bool is_clsend() const
Returns true if the "clsend" flag is set for this field, false otherwise.
bool is_clrecv() const
Returns true if the "clrecv" flag is set for this field, false otherwise.
bool is_required() const
Returns true if the "required" flag is set for this field, false otherwise.
bool is_ownsend() const
Returns true if the "ownsend" flag is set for this field, false otherwise.
void set_default_value(const string &default_value)
Establishes a default value for this field.
bool is_broadcast() const
Returns true if the "broadcast" flag is set for this field, false otherwise.
int get_number() const
Returns a unique index number associated with this field.
bool has_keyword(const string &name) const
Returns true if this list includes the indicated keyword, false otherwise.
bool is_ownrecv() const
Returns true if the "ownrecv" flag is set for this field, false otherwise.