Apama  10.2.0.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AP_Chunk Class Referenceabstract

#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

Deprecated:
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.

Constructor & Destructor Documentation

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::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::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

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: