14 #ifndef DCMOLECULARFIELD_H 15 #define DCMOLECULARFIELD_H 36 int get_num_atomics()
const;
42 virtual void output(std::ostream &out,
bool brief)
const;
43 virtual void write(std::ostream &out,
bool brief,
int indent_level)
const;
62 NestedFields _nested_fields;
A single field of a Distributed Class, either atomic or molecular.
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>.
virtual DCPackerInterface * get_nested_field(int n) const
Returns the DCPackerInterface object that represents the nth nested field.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A single atomic field of a Distributed Class, as read from a .dc file.
virtual DCMolecularField * as_molecular_field()
Returns the same field pointer converted to a molecular field pointer, if this is in fact a molecular...
virtual void generate_hash(HashGenerator &hashgen) const
Accumulates the properties of this field into the hash.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is our own Panda specialization on the default STL vector.
Represents the type specification for a single parameter within a field specification.
void write(std::ostream &out, int indent_level) const
Write a string representation of this instance to <out>.
This class generates an arbitrary hash number from a sequence of ints.
virtual bool do_check_match_molecular_field(const DCMolecularField *other) const
Returns true if this field matches the indicated molecular field, false otherwise.
A single molecular field of a Distributed Class, as read from a .dc file.
This defines the internal interface for packing values into a DCField.