15 #ifndef DCATOMICFIELD_H
16 #define DCATOMICFIELD_H
20 #include "dcSubatomicType.h"
21 #include "dcParameter.h"
43 int get_num_elements()
const;
47 string get_element_default(
int n)
const;
48 bool has_element_default(
int n)
const;
49 string get_element_name(
int n)
const;
50 DCSubatomicType get_element_type(
int n)
const;
51 int get_element_divisor(
int n)
const;
56 virtual void output(ostream &out,
bool brief)
const;
57 virtual void write(ostream &out,
bool brief,
int indent_level)
const;
67 void output_element(ostream &out,
bool brief,
DCParameter *element)
const;
73 #include "dcAtomicField.I"
virtual void generate_hash(HashGenerator &hashgen) const
Accumulates the properties of this field into the hash.
virtual DCPackerInterface * get_nested_field(int n) const
Returns the DCPackerInterface object that represents the nth nested field.
A single field of a Distributed Class, either atomic or molecular.
virtual DCAtomicField * as_atomic_field()
Returns the same field pointer converted to an atomic field pointer, if this is in fact an atomic fie...
Defines a particular DistributedClass as read from an input .dc file.
A single atomic field of a Distributed Class, as read from a .dc file.
This is our own Panda specialization on the default STL vector.
Represents the type specification for a single parameter within a field specification.
This class generates an arbitrary hash number from a sequence of ints.
virtual bool do_check_match_atomic_field(const DCAtomicField *other) const
Returns true if this field matches the indicated atomic field, false otherwise.
This defines the internal interface for packing values into a DCField.