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