14#ifndef DATANODETRANSMIT_H
15#define DATANODETRANSMIT_H
32class EXPCL_PANDA_DGRAPH DataNodeTransmit :
public TypedWritable {
34 INLINE DataNodeTransmit();
35 INLINE DataNodeTransmit(
const DataNodeTransmit ©);
36 INLINE
void operator = (
const DataNodeTransmit ©);
37 virtual ~DataNodeTransmit();
38 ALLOC_DELETED_CHAIN(DataNodeTransmit);
40 INLINE
void reserve(
int num_wires);
43 INLINE
bool has_data(
int index)
const;
47 void slot_data(
int index);
49 typedef pvector<EventParameter> Data;
59 static TypedWritable *make_from_bam(
const FactoryParams ¶ms);
66 static void init_type() {
67 TypedWritable::init_type();
69 TypedWritable::get_class_type());
72 return get_class_type();
74 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
const EventParameter & get_data(int index) const
Extracts the data for the indicated index, if it has been stored, or the empty parameter if it has no...
void set_data(int index, const EventParameter &data)
Sets the data for the indicated parameter.
static void register_with_read_factory()
Tells the BamReader how to create objects of type Lens.
bool has_data(int index) const
Returns true if the indicated parameter has been stored, false otherwise.
void reserve(int num_wires)
Tells the DataNodeTransmit object how many wires it is expected to store data for.
A class to retrieve the individual data elements previously stored in a Datagram.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
An optional parameter associated with an event.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
TypeHandle is the identifier used to differentiate C++ class types.
virtual void fillin(DatagramIterator &scan, BamReader *manager)
This internal function is intended to be called by each class's make_from_bam() method to read in all...
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
virtual int complete_pointers(TypedWritable **p_list, BamReader *manager)
Receives an array of pointers, one for each time manager->read_pointer() was called in fillin().
This is our own Panda specialization on the default STL list.
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.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.