GCC Middle and Back End API Reference
auto_obstack Struct Reference

#include <auto-obstack.h>

Public Member Functions

 auto_obstack ()
 ~auto_obstack ()
 operator obstack & ()
void grow (const void *src, size_t length)
void * object_base () const
size_t object_size () const

Data Fields

obstack m_obstack

Detailed Description

RAII wrapper around obstack.
   Copyright (C) 2024-2025 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
RAII wrapper around obstack.   

Constructor & Destructor Documentation

◆ auto_obstack()

auto_obstack::auto_obstack ( )
inline

References m_obstack.

◆ ~auto_obstack()

auto_obstack::~auto_obstack ( )
inline

References m_obstack, and NULL.

Member Function Documentation

◆ grow()

void auto_obstack::grow ( const void * src,
size_t length )
inline

References m_obstack.

◆ object_base()

void * auto_obstack::object_base ( ) const
inline

References m_obstack.

◆ object_size()

size_t auto_obstack::object_size ( ) const
inline

References m_obstack.

◆ operator obstack &()

auto_obstack::operator obstack & ( )
inline

References m_obstack, and obstack.

Field Documentation

◆ m_obstack


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