|
@@ -23,7 +23,7 @@ TypeHandle EventStoreValue<Type>::_type_handle;
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventParameter::Default constructor
|
|
// Function: EventParameter::Default constructor
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description: Defines an EventParameter that stores nothing: the
|
|
// Description: Defines an EventParameter that stores nothing: the
|
|
|
// "empty" parameter.
|
|
// "empty" parameter.
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
@@ -33,7 +33,7 @@ EventParameter() {
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventParameter::Pointer constructor
|
|
// Function: EventParameter::Pointer constructor
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description: Defines an EventParameter that stores a pointer to
|
|
// Description: Defines an EventParameter that stores a pointer to
|
|
|
// any kind of TypedWritableReferenceCount object. This
|
|
// any kind of TypedWritableReferenceCount object. This
|
|
|
// is the most general constructor.
|
|
// is the most general constructor.
|
|
@@ -49,7 +49,7 @@ EventParameter(const TypedWritableReferenceCount *ptr) : _ptr((TypedWritableRefe
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventParameter::Pointer constructor
|
|
// Function: EventParameter::Pointer constructor
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description: Defines an EventParameter that stores a pointer to
|
|
// Description: Defines an EventParameter that stores a pointer to
|
|
|
// a TypedReferenceCount object. Note that a
|
|
// a TypedReferenceCount object. Note that a
|
|
|
// TypedReferenceCount is not the same kind of pointer
|
|
// TypedReferenceCount is not the same kind of pointer
|
|
@@ -68,7 +68,7 @@ EventParameter(const TypedReferenceCount *ptr) : _ptr(new EventStoreTypedRefCoun
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventParameter::Integer constructor
|
|
// Function: EventParameter::Integer constructor
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description: Defines an EventParameter that stores an integer
|
|
// Description: Defines an EventParameter that stores an integer
|
|
|
// value.
|
|
// value.
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
@@ -78,7 +78,7 @@ EventParameter(int value) : _ptr(new EventStoreInt(value)) { }
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventParameter::Double constructor
|
|
// Function: EventParameter::Double constructor
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description: Defines an EventParameter that stores a
|
|
// Description: Defines an EventParameter that stores a
|
|
|
// floating-point value.
|
|
// floating-point value.
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
@@ -88,7 +88,7 @@ EventParameter(double value) : _ptr(new EventStoreDouble(value)) { }
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventParameter::String constructor
|
|
// Function: EventParameter::String constructor
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description: Defines an EventParameter that stores a string value.
|
|
// Description: Defines an EventParameter that stores a string value.
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE EventParameter::
|
|
INLINE EventParameter::
|
|
@@ -96,7 +96,7 @@ EventParameter(const string &value) : _ptr(new EventStoreString(value)) { }
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventParameter::Wstring constructor
|
|
// Function: EventParameter::Wstring constructor
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description: Defines an EventParameter that stores a wstring value.
|
|
// Description: Defines an EventParameter that stores a wstring value.
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE EventParameter::
|
|
INLINE EventParameter::
|
|
@@ -105,7 +105,7 @@ EventParameter(const wstring &value) : _ptr(new EventStoreWstring(value)) { }
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventParameter::Copy constructor
|
|
// Function: EventParameter::Copy constructor
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description:
|
|
// Description:
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE EventParameter::
|
|
INLINE EventParameter::
|
|
@@ -114,7 +114,7 @@ EventParameter(const EventParameter &other) : _ptr(other._ptr) { }
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventParameter::Copy assignment operator
|
|
// Function: EventParameter::Copy assignment operator
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description:
|
|
// Description:
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE EventParameter &EventParameter::
|
|
INLINE EventParameter &EventParameter::
|
|
@@ -125,7 +125,7 @@ operator = (const EventParameter &other) {
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventParameter::Destructor
|
|
// Function: EventParameter::Destructor
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description:
|
|
// Description:
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE EventParameter::
|
|
INLINE EventParameter::
|
|
@@ -134,7 +134,7 @@ INLINE EventParameter::
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventParameter::is_empty
|
|
// Function: EventParameter::is_empty
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description: Returns true if the EventParameter is the empty
|
|
// Description: Returns true if the EventParameter is the empty
|
|
|
// parameter, storing nothing, or false otherwise.
|
|
// parameter, storing nothing, or false otherwise.
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
@@ -145,7 +145,7 @@ is_empty() const {
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventParameter::is_int
|
|
// Function: EventParameter::is_int
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description: Returns true if the EventParameter stores an integer
|
|
// Description: Returns true if the EventParameter stores an integer
|
|
|
// value, false otherwise.
|
|
// value, false otherwise.
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
@@ -159,7 +159,7 @@ is_int() const {
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventParameter::get_int_value
|
|
// Function: EventParameter::get_int_value
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description: Retrieves the value stored in the EventParameter. It
|
|
// Description: Retrieves the value stored in the EventParameter. It
|
|
|
// is only valid to call this if is_int() has already
|
|
// is only valid to call this if is_int() has already
|
|
|
// returned true.
|
|
// returned true.
|
|
@@ -175,7 +175,7 @@ get_int_value() const {
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventParameter::is_double
|
|
// Function: EventParameter::is_double
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description: Returns true if the EventParameter stores a double
|
|
// Description: Returns true if the EventParameter stores a double
|
|
|
// floating-point value, false otherwise.
|
|
// floating-point value, false otherwise.
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
@@ -189,7 +189,7 @@ is_double() const {
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventParameter::get_double_value
|
|
// Function: EventParameter::get_double_value
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description: Retrieves the value stored in the EventParameter. It
|
|
// Description: Retrieves the value stored in the EventParameter. It
|
|
|
// is only valid to call this if is_double() has already
|
|
// is only valid to call this if is_double() has already
|
|
|
// returned true.
|
|
// returned true.
|
|
@@ -202,7 +202,7 @@ get_double_value() const {
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventParameter::is_string
|
|
// Function: EventParameter::is_string
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description: Returns true if the EventParameter stores a string
|
|
// Description: Returns true if the EventParameter stores a string
|
|
|
// value, false otherwise.
|
|
// value, false otherwise.
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
@@ -216,7 +216,7 @@ is_string() const {
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventParameter::get_string_value
|
|
// Function: EventParameter::get_string_value
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description: Retrieves the value stored in the EventParameter. It
|
|
// Description: Retrieves the value stored in the EventParameter. It
|
|
|
// is only valid to call this if is_string() has already
|
|
// is only valid to call this if is_string() has already
|
|
|
// returned true.
|
|
// returned true.
|
|
@@ -229,7 +229,7 @@ get_string_value() const {
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventParameter::is_wstring
|
|
// Function: EventParameter::is_wstring
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description: Returns true if the EventParameter stores a wstring
|
|
// Description: Returns true if the EventParameter stores a wstring
|
|
|
// value, false otherwise.
|
|
// value, false otherwise.
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
@@ -243,7 +243,7 @@ is_wstring() const {
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventParameter::get_wstring_value
|
|
// Function: EventParameter::get_wstring_value
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description: Retrieves the value stored in the EventParameter. It
|
|
// Description: Retrieves the value stored in the EventParameter. It
|
|
|
// is only valid to call this if is_wstring() has already
|
|
// is only valid to call this if is_wstring() has already
|
|
|
// returned true.
|
|
// returned true.
|
|
@@ -256,7 +256,7 @@ get_wstring_value() const {
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventParameter::is_typed_ref_count
|
|
// Function: EventParameter::is_typed_ref_count
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description: Returns true if the EventParameter stores a
|
|
// Description: Returns true if the EventParameter stores a
|
|
|
// TypedReferenceCount pointer, false otherwise. Note
|
|
// TypedReferenceCount pointer, false otherwise. Note
|
|
|
// that a TypedReferenceCount is not exactly the same
|
|
// that a TypedReferenceCount is not exactly the same
|
|
@@ -273,7 +273,7 @@ is_typed_ref_count() const {
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventParameter::get_typed_ref_count_value
|
|
// Function: EventParameter::get_typed_ref_count_value
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description: Retrieves the value stored in the EventParameter. It
|
|
// Description: Retrieves the value stored in the EventParameter. It
|
|
|
// is only valid to call this if is_typed_ref_count()
|
|
// is only valid to call this if is_typed_ref_count()
|
|
|
// has already returned true.
|
|
// has already returned true.
|
|
@@ -286,7 +286,7 @@ get_typed_ref_count_value() const {
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventParameter::get_ptr
|
|
// Function: EventParameter::get_ptr
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description: Retrieves a pointer to the actual value stored in the
|
|
// Description: Retrieves a pointer to the actual value stored in the
|
|
|
// parameter. The TypeHandle of this pointer may be
|
|
// parameter. The TypeHandle of this pointer may be
|
|
|
// examined to determine the actual type of parameter it
|
|
// examined to determine the actual type of parameter it
|
|
@@ -316,7 +316,7 @@ EventStoreValueBase() {
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventStoreTypedRefCount::Constructor
|
|
// Function: EventStoreTypedRefCount::Constructor
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description:
|
|
// Description:
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE EventStoreTypedRefCount::
|
|
INLINE EventStoreTypedRefCount::
|
|
@@ -327,7 +327,7 @@ EventStoreTypedRefCount(const TypedReferenceCount *value) :
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventStoreTypedRefCount::set_value
|
|
// Function: EventStoreTypedRefCount::set_value
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description: Changes the value stored in the parameter. It is
|
|
// Description: Changes the value stored in the parameter. It is
|
|
|
// dangerous to do this for a parameter already added to
|
|
// dangerous to do this for a parameter already added to
|
|
|
// an event, since the parameters may be shared.
|
|
// an event, since the parameters may be shared.
|
|
@@ -340,7 +340,7 @@ set_value(const TypedReferenceCount *value) {
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
// Function: EventStoreTypedRefCount::get_value
|
|
// Function: EventStoreTypedRefCount::get_value
|
|
|
-// Access: Public
|
|
|
|
|
|
|
+// Access: Published
|
|
|
// Description: Retrieves the value stored in the parameter.
|
|
// Description: Retrieves the value stored in the parameter.
|
|
|
////////////////////////////////////////////////////////////////////
|
|
////////////////////////////////////////////////////////////////////
|
|
|
INLINE TypedReferenceCount *EventStoreTypedRefCount::
|
|
INLINE TypedReferenceCount *EventStoreTypedRefCount::
|