clang 19.0.0git
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
clang::ObjCListBase Class Reference

#include "clang/AST/DeclObjC.h"

Inheritance diagram for clang::ObjCListBase:
Inheritance graph

Public Member Functions

 ObjCListBase ()=default
 ObjCListBase (const ObjCListBase &)=delete
ObjCListBaseoperator= (const ObjCListBase &)=delete
unsigned size () const
bool empty () const

Protected Member Functions

void set (void *const *InList, unsigned Elts, ASTContext &Ctx)

Protected Attributes

void ** List = nullptr
 List is an array of pointers to objects that are not owned by this object.
unsigned NumElts = 0

Detailed Description

Definition at line 59 of file DeclObjC.h.

Constructor & Destructor Documentation

◆ ObjCListBase() [1/2]

clang::ObjCListBase::ObjCListBase ( )

◆ ObjCListBase() [2/2]

clang::ObjCListBase::ObjCListBase ( const ObjCListBase )

Member Function Documentation

◆ empty()

bool clang::ObjCListBase::empty ( ) const

Definition at line 71 of file DeclObjC.h.

References NumElts.

Referenced by rewriteToObjCInterfaceDecl().

◆ operator=()

ObjCListBase & clang::ObjCListBase::operator= ( const ObjCListBase )

◆ set()

void ObjCListBase::set ( void *const *  InList,
unsigned  Elts,
ASTContext Ctx 

Definition at line 45 of file DeclObjC.cpp.

References List, memcpy(), and NumElts.

Referenced by clang::ObjCList< T >::set().

◆ size()

unsigned clang::ObjCListBase::size ( ) const

Member Data Documentation

◆ List

void** clang::ObjCListBase::List = nullptr

List is an array of pointers to objects that are not owned by this object.

Definition at line 62 of file DeclObjC.h.

Referenced by clang::ObjCList< T >::begin(), clang::ObjCList< T >::end(), clang::ObjCList< T >::operator[](), and set().

◆ NumElts

unsigned clang::ObjCListBase::NumElts = 0

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