LibreOffice Module basic (master) 1
Public Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
SbiSymDef Class Reference

#include <symtbl.hxx>

Inheritance diagram for SbiSymDef:
[legend]
Collaboration diagram for SbiSymDef:
[legend]

Public Member Functions

 SbiSymDef (OUString)
 
virtual ~SbiSymDef ()
 
virtual SbiProcDefGetProcDef ()
 
virtual SbiConstDefGetConstDef ()
 
SbxDataType GetType () const
 
virtual void SetType (SbxDataType)
 
const OUString & GetName ()
 
SbiSymScope GetScope () const
 
sal_uInt32 GetAddr () const
 
sal_uInt16 GetId () const
 
sal_uInt16 GetTypeId () const
 
void SetTypeId (sal_uInt16 n)
 
sal_uInt16 GetPos () const
 
void SetLen (short n)
 
short GetLen () const
 
void SetDims (short n)
 
short GetDims () const
 
bool IsDefined () const
 
void SetOptional ()
 
void SetParamArray ()
 
void SetWithEvents ()
 
void SetWithBrackets ()
 
void SetByVal (bool bByVal_)
 
void SetStatic (bool bAsStatic=true)
 
void SetNew ()
 
void SetDefinedAs ()
 
void SetGlobal (bool b)
 
void SetDefaultId (sal_uInt16 n)
 
sal_uInt16 GetDefaultId () const
 
bool IsOptional () const
 
bool IsParamArray () const
 
bool IsWithEvents () const
 
bool IsWithBrackets () const
 
bool IsByVal () const
 
bool IsStatic () const
 
bool IsNew () const
 
bool IsDefinedAs () const
 
bool IsGlobal () const
 
short GetFixedStringLength () const
 
void SetFixedStringLength (short n)
 
SbiSymPoolGetPool ()
 
sal_uInt32 Define ()
 
sal_uInt32 Reference ()
 

Protected Attributes

OUString aName
 
SbxDataType eType
 
SbiSymPoolpIn
 
std::unique_ptr< SbiSymPoolpPool
 
short nLen
 
short nDims
 
sal_uInt16 nId
 
sal_uInt16 nTypeId
 
sal_uInt16 nProcId
 
sal_uInt16 nPos
 
sal_uInt32 nChain
 
bool bNew: 1
 
bool bChained: 1
 
bool bByVal: 1
 
bool bOpt: 1
 
bool bStatic: 1
 
bool bAs: 1
 
bool bGlobal: 1
 
bool bParamArray: 1
 
bool bWithEvents: 1
 
bool bWithBrackets: 1
 
sal_uInt16 nDefaultId
 
short nFixedStringLength
 

Private Member Functions

 SbiSymDef (const SbiSymDef &)=delete
 

Friends

class SbiSymPool
 

Detailed Description

Definition at line 83 of file symtbl.hxx.

Constructor & Destructor Documentation

◆ SbiSymDef() [1/2]

SbiSymDef::SbiSymDef ( OUString  _aName)

Definition at line 280 of file symtbl.cxx.

References aName, eType, nId, and nPos.

◆ ~SbiSymDef()

SbiSymDef::~SbiSymDef ( )
virtual

Definition at line 306 of file symtbl.cxx.

◆ SbiSymDef() [2/2]

SbiSymDef::SbiSymDef ( const SbiSymDef )
privatedelete

Member Function Documentation

◆ Define()

sal_uInt32 SbiSymDef::Define ( )

◆ GetAddr()

sal_uInt32 SbiSymDef::GetAddr ( ) const
inline

Definition at line 119 of file symtbl.hxx.

References nChain.

Referenced by SbiCodeGen::Save().

◆ GetConstDef()

SbiConstDef * SbiSymDef::GetConstDef ( )
virtual

◆ GetDefaultId()

sal_uInt16 SbiSymDef::GetDefaultId ( ) const
inline

Definition at line 139 of file symtbl.hxx.

References nDefaultId.

Referenced by SbiCodeGen::Save().

◆ GetDims()

short SbiSymDef::GetDims ( ) const
inline

Definition at line 127 of file symtbl.hxx.

References nDims.

Referenced by SbiCodeGen::Save(), and SbiExpression::Term().

◆ GetFixedStringLength()

short SbiSymDef::GetFixedStringLength ( ) const
inline

Definition at line 149 of file symtbl.hxx.

References nFixedStringLength.

Referenced by SbiParser::DefVar().

◆ GetId()

sal_uInt16 SbiSymDef::GetId ( ) const
inline

◆ GetLen()

short SbiSymDef::GetLen ( ) const
inline

Definition at line 125 of file symtbl.hxx.

References nLen.

Referenced by SbiParser::Assign(), and SbiParser::TypeDecl().

◆ GetName()

const OUString & SbiSymDef::GetName ( )

◆ GetPool()

SbiSymPool & SbiSymDef::GetPool ( )

◆ GetPos()

sal_uInt16 SbiSymDef::GetPos ( ) const
inline

Definition at line 123 of file symtbl.hxx.

References nPos.

Referenced by SbiExprNode::Gen(), and SbiExprNode::GenElement().

◆ GetProcDef()

SbiProcDef * SbiSymDef::GetProcDef ( )
virtual

◆ GetScope()

SbiSymScope SbiSymDef::GetScope ( ) const

Definition at line 394 of file symtbl.cxx.

References SbiSymPool::GetScope(), pIn, and SbLOCAL.

Referenced by SbiParser::DefVar(), SbiExprNode::Gen(), and SbiParser::Symbol().

◆ GetType()

SbxDataType SbiSymDef::GetType ( ) const
inline

◆ GetTypeId()

sal_uInt16 SbiSymDef::GetTypeId ( ) const
inline

◆ IsByVal()

bool SbiSymDef::IsByVal ( ) const
inline

Definition at line 144 of file symtbl.hxx.

References bByVal.

Referenced by SbiParser::DefDeclare(), and SbiCodeGen::Save().

◆ IsDefined()

bool SbiSymDef::IsDefined ( ) const
inline

Definition at line 128 of file symtbl.hxx.

References bChained.

Referenced by SbiCodeGen::Save().

◆ IsDefinedAs()

bool SbiSymDef::IsDefinedAs ( ) const
inline

Definition at line 147 of file symtbl.hxx.

References bAs.

Referenced by SbiParser::DefVar(), and SbiExpression::Term().

◆ IsGlobal()

bool SbiSymDef::IsGlobal ( ) const
inline

Definition at line 148 of file symtbl.hxx.

References bGlobal.

Referenced by SbiExprNode::Gen().

◆ IsNew()

bool SbiSymDef::IsNew ( ) const
inline

Definition at line 146 of file symtbl.hxx.

References bNew.

Referenced by SbiParser::DefVar(), and SbiParser::TypeDecl().

◆ IsOptional()

bool SbiSymDef::IsOptional ( ) const
inline

Definition at line 140 of file symtbl.hxx.

References bOpt.

Referenced by SbiProcDef::Match(), and SbiCodeGen::Save().

◆ IsParamArray()

bool SbiSymDef::IsParamArray ( ) const
inline

Definition at line 141 of file symtbl.hxx.

References bParamArray.

Referenced by SbiProcDef::Match(), and SbiCodeGen::Save().

◆ IsStatic()

bool SbiSymDef::IsStatic ( ) const
inline

◆ IsWithBrackets()

bool SbiSymDef::IsWithBrackets ( ) const
inline

Definition at line 143 of file symtbl.hxx.

References bWithBrackets.

Referenced by SbiCodeGen::Save().

◆ IsWithEvents()

bool SbiSymDef::IsWithEvents ( ) const
inline

Definition at line 142 of file symtbl.hxx.

References bWithEvents.

Referenced by SbiParser::DefVar().

◆ Reference()

sal_uInt32 SbiSymDef::Reference ( )

Definition at line 357 of file symtbl.cxx.

References SbiParser::aGen, bChained, SbiCodeGen::GetOffset(), n, nChain, pIn, and SbiSymPool::pParser.

◆ SetByVal()

void SbiSymDef::SetByVal ( bool  bByVal_)
inline

Definition at line 133 of file symtbl.hxx.

References bByVal.

Referenced by SbiParser::DefDeclare(), and SbiParser::ProcDecl().

◆ SetDefaultId()

void SbiSymDef::SetDefaultId ( sal_uInt16  n)
inline

Definition at line 138 of file symtbl.hxx.

References n, and nDefaultId.

Referenced by SbiParser::ProcDecl().

◆ SetDefinedAs()

void SbiSymDef::SetDefinedAs ( )
inline

Definition at line 136 of file symtbl.hxx.

References bAs.

Referenced by SbiParser::TypeDecl().

◆ SetDims()

void SbiSymDef::SetDims ( short  n)
inline

Definition at line 126 of file symtbl.hxx.

References n, and nDims.

Referenced by SbiParser::DefVar().

◆ SetFixedStringLength()

void SbiSymDef::SetFixedStringLength ( short  n)
inline

Definition at line 150 of file symtbl.hxx.

References n, and nFixedStringLength.

Referenced by SbiParser::TypeDecl().

◆ SetGlobal()

void SbiSymDef::SetGlobal ( bool  b)
inline

Definition at line 137 of file symtbl.hxx.

References bGlobal.

Referenced by SbiParser::DefVar().

◆ SetLen()

void SbiSymDef::SetLen ( short  n)
inline

Definition at line 124 of file symtbl.hxx.

References n, and nLen.

Referenced by SbiParser::TypeDecl().

◆ SetNew()

void SbiSymDef::SetNew ( )
inline

Definition at line 135 of file symtbl.hxx.

References bNew.

Referenced by SbiParser::TypeDecl().

◆ SetOptional()

void SbiSymDef::SetOptional ( )
inline

Definition at line 129 of file symtbl.hxx.

References bOpt.

Referenced by SbiParser::ProcDecl().

◆ SetParamArray()

void SbiSymDef::SetParamArray ( )
inline

Definition at line 130 of file symtbl.hxx.

References bParamArray.

Referenced by SbiParser::ProcDecl().

◆ SetStatic()

void SbiSymDef::SetStatic ( bool  bAsStatic = true)
inline

Definition at line 134 of file symtbl.hxx.

References bStatic.

Referenced by SbiParser::DefProc(), SbiExpression::Term(), and SbiParser::VarDecl().

◆ SetType()

void SbiSymDef::SetType ( SbxDataType  t)
virtual

◆ SetTypeId()

void SbiSymDef::SetTypeId ( sal_uInt16  n)
inline

Definition at line 122 of file symtbl.hxx.

References eType, n, nTypeId, and SbxOBJECT.

Referenced by SbiParser::TypeDecl().

◆ SetWithBrackets()

void SbiSymDef::SetWithBrackets ( )
inline

Definition at line 132 of file symtbl.hxx.

References bWithBrackets.

Referenced by SbiParser::VarDecl().

◆ SetWithEvents()

void SbiSymDef::SetWithEvents ( )
inline

Definition at line 131 of file symtbl.hxx.

References bWithEvents.

Referenced by SbiParser::VarDecl().

Friends And Related Function Documentation

◆ SbiSymPool

friend class SbiSymPool
friend

Definition at line 84 of file symtbl.hxx.

Member Data Documentation

◆ aName

OUString SbiSymDef::aName
protected

◆ bAs

bool SbiSymDef::bAs
protected

Definition at line 102 of file symtbl.hxx.

Referenced by IsDefinedAs(), and SetDefinedAs().

◆ bByVal

bool SbiSymDef::bByVal
protected

Definition at line 99 of file symtbl.hxx.

Referenced by IsByVal(), and SetByVal().

◆ bChained

bool SbiSymDef::bChained
protected

Definition at line 98 of file symtbl.hxx.

Referenced by Define(), IsDefined(), and Reference().

◆ bGlobal

bool SbiSymDef::bGlobal
protected

Definition at line 103 of file symtbl.hxx.

Referenced by IsGlobal(), and SetGlobal().

◆ bNew

bool SbiSymDef::bNew
protected

Definition at line 97 of file symtbl.hxx.

Referenced by IsNew(), and SetNew().

◆ bOpt

bool SbiSymDef::bOpt
protected

Definition at line 100 of file symtbl.hxx.

Referenced by IsOptional(), and SetOptional().

◆ bParamArray

bool SbiSymDef::bParamArray
protected

Definition at line 104 of file symtbl.hxx.

Referenced by IsParamArray(), and SetParamArray().

◆ bStatic

bool SbiSymDef::bStatic
protected

Definition at line 101 of file symtbl.hxx.

Referenced by IsStatic(), SbiProcDef::SbiProcDef(), and SetStatic().

◆ bWithBrackets

bool SbiSymDef::bWithBrackets
protected

Definition at line 106 of file symtbl.hxx.

Referenced by IsWithBrackets(), and SetWithBrackets().

◆ bWithEvents

bool SbiSymDef::bWithEvents
protected

Definition at line 105 of file symtbl.hxx.

Referenced by IsWithEvents(), and SetWithEvents().

◆ eType

SbxDataType SbiSymDef::eType
protected

◆ nChain

sal_uInt32 SbiSymDef::nChain
protected

Definition at line 96 of file symtbl.hxx.

Referenced by Define(), GetAddr(), and Reference().

◆ nDefaultId

sal_uInt16 SbiSymDef::nDefaultId
protected

Definition at line 107 of file symtbl.hxx.

Referenced by GetDefaultId(), and SetDefaultId().

◆ nDims

short SbiSymDef::nDims
protected

Definition at line 91 of file symtbl.hxx.

Referenced by GetDims(), and SetDims().

◆ nFixedStringLength

short SbiSymDef::nFixedStringLength
protected

Definition at line 108 of file symtbl.hxx.

Referenced by GetFixedStringLength(), and SetFixedStringLength().

◆ nId

sal_uInt16 SbiSymDef::nId
protected

Definition at line 92 of file symtbl.hxx.

Referenced by SbiSymPool::Add(), GetId(), GetName(), and SbiProcDef::Match().

◆ nLen

short SbiSymDef::nLen
protected

Definition at line 90 of file symtbl.hxx.

Referenced by GetLen(), and SetLen().

◆ nPos

sal_uInt16 SbiSymDef::nPos
protected

Definition at line 95 of file symtbl.hxx.

Referenced by SbiSymPool::Add(), GetPos(), and SbiProcDef::Match().

◆ nProcId

sal_uInt16 SbiSymDef::nProcId
protected

Definition at line 94 of file symtbl.hxx.

Referenced by SbiSymPool::Add(), and SbiSymPool::Find().

◆ nTypeId

sal_uInt16 SbiSymDef::nTypeId
protected

Definition at line 93 of file symtbl.hxx.

Referenced by GetTypeId(), and SetTypeId().

◆ pIn

SbiSymPool* SbiSymDef::pIn
protected

◆ pPool

std::unique_ptr<SbiSymPool> SbiSymDef::pPool
protected

Definition at line 89 of file symtbl.hxx.

Referenced by GetPool(), and SbiProcDef::SbiProcDef().


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