Apama  10.7.2.2
AP_Chunk Class Referenceabstract

[DEPRRECATED]
Base class for all 'chunk' classes. More...

#include <correlator_plugin.hpp>

Public Member Functions

virtual ~AP_Chunk ()
 
virtual AP_Chunkcopy (const AP_Context &ctx) const =0
 
 AP_Chunk (const AP_Context &)
 
 AP_Chunk ()
 

Detailed Description

[DEPRRECATED]
Base class for all 'chunk' classes.

Plugins should inherit from this class and add suitable data and function members in the derived class to manage their private data structures, in memory allocated by the plugin itself. AP_Chunk instances are passed in and out of plugin functions as the 'chunk value' of AP_Type objects, and referenced in MontitorScript code as variables of type 'chunk'. Note that the contents of a chunk are entirely opaque to EPL.

Deprecated:
This class has been deprecated.

Constructor & Destructor Documentation

◆ ~AP_Chunk()

virtual AP_Chunk::~AP_Chunk ( )
inlinevirtual
Deprecated:
Virtual destructor.

It is essential that every AP_Chunk derived class implements this method to free any resources allocated by the derived class. The Engine will arrange for the destructor to be called when the associated EPL chunk object is deleted.

The correlator interface may not be used from a chunk's destructor.

Also, correlator interface calls on another thread may block until the chunk's destructor returns. Chunk destructors that can block should therefore be careful to avoid deadlocking against such a thread.

◆ AP_Chunk() [1/2]

AP_Chunk::AP_Chunk ( const AP_Context )
inlineexplicit
Deprecated:

Obsolete constructor retained for backward compatibility

This function is deprecated.

The default constructor should be used instead.

◆ AP_Chunk() [2/2]

AP_Chunk::AP_Chunk ( )
inline
Deprecated:
Default constructor declared because there's a non-default one, which is deprecated.

This default constructor should be used.

Member Function Documentation

◆ copy()

virtual AP_Chunk* AP_Chunk::copy ( const AP_Context ctx) const
pure virtual
Deprecated:
Chunk cloning method (typically calls a copy constructor in the derived class).

As with the destructor, it is essential for AP_Chunk derived classes to implement this method, to ensure that EPL assignments to/from chunk objects work correctly.

Parameters
ctxExecution context for the copy operation.
Returns
Pointer to a copy of this AP_Chunk object.

The documentation for this class was generated from the following file: