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