clang 22.0.0git
clang::ObjCListBase Class Reference

#include "clang/AST/DeclObjC.h"

Inheritance diagram for clang::ObjCListBase:
[legend]

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 ( )
default

Referenced by ObjCListBase(), and operator=().

◆ ObjCListBase() [2/2]

clang::ObjCListBase::ObjCListBase ( const ObjCListBase & )
delete

References ObjCListBase().

Member Function Documentation

◆ empty()

bool clang::ObjCListBase::empty ( ) const
inline

Definition at line 71 of file DeclObjC.h.

References NumElts.

◆ operator=()

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

References ObjCListBase().

◆ set()

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

Definition at line 42 of file DeclObjC.cpp.

References List, memcpy(), and NumElts.

Referenced by clang::iterator< ObjCProtocolDecl >::set().

◆ size()

unsigned clang::ObjCListBase::size ( ) const
inline

Member Data Documentation

◆ List

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

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::iterator< ObjCProtocolDecl >::begin(), clang::iterator< ObjCProtocolDecl >::end(), clang::iterator< ObjCProtocolDecl >::operator[](), and set().

◆ NumElts

unsigned clang::ObjCListBase::NumElts = 0
protected

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