14 #ifndef DCATOMICFIELD_H 15 #define DCATOMICFIELD_H 39 int get_num_elements()
const;
43 vector_uchar get_element_default(
int n)
const;
44 bool has_element_default(
int n)
const;
45 std::string get_element_name(
int n)
const;
47 int get_element_divisor(
int n)
const;
52 virtual void output(std::ostream &out,
bool brief)
const;
53 virtual void write(std::ostream &out,
bool brief,
int indent_level)
const;
63 void output_element(std::ostream &out,
bool brief,
DCParameter *element)
const;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
DCSubatomicType
This defines the numeric type of each element of a DCAtomicField; that is, the particular values that...
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.
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 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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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_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.