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

#include "lldb/Core/Baton.h"

Inheritance diagram for lldb_private::Baton:
Inheritance graph

Public Member Functions

 Baton ()=default
virtual ~Baton ()=default
virtual void * data ()=0
virtual void GetDescription (llvm::raw_ostream &s, lldb::DescriptionLevel level, unsigned indentation) 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 35 of file Baton.h.

Constructor & Destructor Documentation

◆ Baton()

lldb_private::Baton::Baton ( )

◆ ~Baton()

virtual lldb_private::Baton::~Baton ( )

Member Function Documentation

◆ data()

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

◆ GetDescription()

virtual void lldb_private::Baton::GetDescription ( llvm::raw_ostream &  s,
lldb::DescriptionLevel  level,
unsigned  indentation 
) const
pure virtual

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