LLDB  mainline
Public Member Functions | List of all members
lldb_private::Baton Class Referenceabstract

A class designed to wrap callback batons so they can cleanup any acquired resources. More...

#include "lldb/Core/Baton.h"

Inheritance diagram for lldb_private::Baton:
Inheritance graph
[legend]

Public Member Functions

 Baton ()
 
virtual ~Baton ()
 
virtual void * data ()=0
 
virtual void GetDescription (Stream *s, lldb::DescriptionLevel level) const =0
 

Detailed Description

A class designed to wrap callback batons so they can cleanup any acquired resources.

This class is designed to be used by any objects that have a callback function that takes a baton where the baton might need to free/delete/close itself.

The default behavior is to not free anything. Subclasses can free any needed resources in their destructors.

Definition at line 33 of file Baton.h.

Constructor & Destructor Documentation

◆ Baton()

lldb_private::Baton::Baton ( )
inline

Definition at line 35 of file Baton.h.

◆ ~Baton()

virtual lldb_private::Baton::~Baton ( )
inlinevirtual

Definition at line 36 of file Baton.h.

References data(), and GetDescription().

Member Function Documentation

◆ data()

virtual void* lldb_private::Baton::data ( )
pure virtual

◆ GetDescription()

virtual void lldb_private::Baton::GetDescription ( Stream s,
lldb::DescriptionLevel  level 
) const
pure virtual

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