PhoenixLecture  2.0.0
Set of tools to make lectures
PContext Class Reference

Context for parser environement. More...

#include <PLatexObj.h>

+ Collaboration diagram for PContext:

Public Member Functions

PStringgetBegin ()
 Gets the begin of the PContext. More...
 
const PStringgetBegin () const
 Gets the begin of the PContext. More...
 
PStringgetEnd ()
 Gets the end of the PContext. More...
 
const PStringgetEnd () const
 Gets the end of the PContext. More...
 
PStringgetName ()
 Gets the name of the PContext. More...
 
const PStringgetName () const
 Gets the name of the PContext. More...
 
PStringgetNotAfterBegin ()
 Gets the notAfterBegin of the PContext. More...
 
const PStringgetNotAfterBegin () const
 Gets the notAfterBegin of the PContext. More...
 
PStringgetNotBeforeBegin ()
 Gets the notBeforeBegin of the PContext. More...
 
const PStringgetNotBeforeBegin () const
 Gets the notBeforeBegin of the PContext. More...
 
PStringgetNotBeforeEnd ()
 Gets the notBeforeEnd of the PContext. More...
 
const PStringgetNotBeforeEnd () const
 Gets the notBeforeEnd of the PContext. More...
 
PParseSeqgetSeq ()
 Gets the seq of the PContext. More...
 
const PParseSeqgetSeq () const
 Gets the seq of the PContext. More...
 
std::vector< PString > & getVecKeyword ()
 Gets the vecKeyword of the PContext. More...
 
const std::vector< PString > & getVecKeyword () const
 Gets the vecKeyword of the PContext. More...
 
PContextoperator= (const PContext &other)
 Operator = of class PContext. More...
 
 PContext ()
 Constructor of class PContext. More...
 
 PContext (const PContext &other)
 Copy Constructor of class PContext. More...
 
void setBegin (const PString &begin)
 Sets the begin of the PContext. More...
 
void setEnd (const PString &end)
 Sets the end of the PContext. More...
 
void setName (const PString &name)
 Sets the name of the PContext. More...
 
void setNotAfterBegin (const PString &notAfterBegin)
 Sets the notAfterBegin of the PContext. More...
 
void setNotBeforeBegin (const PString &notBeforeBegin)
 Sets the notBeforeBegin of the PContext. More...
 
void setNotBeforeEnd (const PString &notBeforeEnd)
 Sets the notBeforeEnd of the PContext. More...
 
void setSeq (const PParseSeq &seq)
 Sets the seq of the PContext. More...
 
void setVecKeyword (const std::vector< PString > &vecKeyword)
 Sets the vecKeyword of the PContext. More...
 
virtual ~PContext ()
 Destructor of class PContext. More...
 

Protected Member Functions

void copyPContext (const PContext &other)
 Copy Function of class PContext. More...
 

Private Member Functions

void initialisationPContext ()
 Initialisation Function of class PContext. More...
 

Private Attributes

PString p_begin
 First string to get. More...
 
PString p_end
 End string to get. More...
 
PString p_name
 Name of the context. More...
 
PString p_notAfterBegin
 String which cannot be after begin. More...
 
PString p_notBeforeBegin
 String which cannot be before begin. More...
 
PString p_notBeforeEnd
 String which cannot be before end. More...
 
PParseSeq p_seq
 Sequence of parsing. More...
 
std::vector< PStringp_vecKeyword
 Vector of keyword. More...
 

Detailed Description

Context for parser environement.

Definition at line 310 of file PLatexObj.h.

Constructor & Destructor Documentation

◆ PContext() [1/2]

PContext::PContext ( )

Constructor of class PContext.

Definition at line 1205 of file PLatexObj.cpp.

1205  {
1207 }
void initialisationPContext()
Initialisation Function of class PContext.
Definition: PLatexObj.cpp:1413

References initialisationPContext().

+ Here is the call graph for this function:

◆ PContext() [2/2]

PContext::PContext ( const PContext other)

Copy Constructor of class PContext.

Parameters
other: PContext we want ot copy

Definition at line 1212 of file PLatexObj.cpp.

1212  {
1213  copyPContext(other);
1214 }
void copyPContext(const PContext &other)
Copy Function of class PContext.
Definition: PLatexObj.cpp:1401

References copyPContext().

+ Here is the call graph for this function:

◆ ~PContext()

PContext::~PContext ( )
virtual

Destructor of class PContext.

Definition at line 1217 of file PLatexObj.cpp.

1217  {
1218 
1219 }

Member Function Documentation

◆ copyPContext()

void PContext::copyPContext ( const PContext other)
protected

Copy Function of class PContext.

Parameters
other: PContext we want ot copy

Definition at line 1401 of file PLatexObj.cpp.

1401  {
1402  p_name = other.p_name;
1403  p_begin = other.p_begin;
1404  p_end = other.p_end;
1408  p_vecKeyword = other.p_vecKeyword;
1409  p_seq = other.p_seq;
1410 }
PString p_notBeforeEnd
String which cannot be before end.
Definition: PLatexObj.h:355
std::vector< PString > p_vecKeyword
Vector of keyword.
Definition: PLatexObj.h:357
PString p_end
End string to get.
Definition: PLatexObj.h:349
PString p_name
Name of the context.
Definition: PLatexObj.h:345
PString p_begin
First string to get.
Definition: PLatexObj.h:347
PParseSeq p_seq
Sequence of parsing.
Definition: PLatexObj.h:359
PString p_notAfterBegin
String which cannot be after begin.
Definition: PLatexObj.h:353
PString p_notBeforeBegin
String which cannot be before begin.
Definition: PLatexObj.h:351

References p_begin, p_end, p_name, p_notAfterBegin, p_notBeforeBegin, p_notBeforeEnd, p_seq, and p_vecKeyword.

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

+ Here is the caller graph for this function:

◆ getBegin() [1/2]

PString & PContext::getBegin ( )

Gets the begin of the PContext.

Returns
begin of the PContext

Definition at line 1310 of file PLatexObj.cpp.

1310  {
1311  return p_begin;
1312 }

References p_begin.

◆ getBegin() [2/2]

const PString & PContext::getBegin ( ) const

Gets the begin of the PContext.

Returns
begin of the PContext

Definition at line 1303 of file PLatexObj.cpp.

1303  {
1304  return p_begin;
1305 }

References p_begin.

Referenced by parser_parseKeyword().

+ Here is the caller graph for this function:

◆ getEnd() [1/2]

PString & PContext::getEnd ( )

Gets the end of the PContext.

Returns
end of the PContext

Definition at line 1324 of file PLatexObj.cpp.

1324  {
1325  return p_end;
1326 }

References p_end.

◆ getEnd() [2/2]

const PString & PContext::getEnd ( ) const

Gets the end of the PContext.

Returns
end of the PContext

Definition at line 1317 of file PLatexObj.cpp.

1317  {
1318  return p_end;
1319 }

References p_end.

Referenced by parser_parseKeyword().

+ Here is the caller graph for this function:

◆ getName() [1/2]

PString & PContext::getName ( )

Gets the name of the PContext.

Returns
name of the PContext

Definition at line 1296 of file PLatexObj.cpp.

1296  {
1297  return p_name;
1298 }

References p_name.

◆ getName() [2/2]

const PString & PContext::getName ( ) const

Gets the name of the PContext.

Returns
name of the PContext

Definition at line 1289 of file PLatexObj.cpp.

1289  {
1290  return p_name;
1291 }

References p_name.

Referenced by parser_parseKeyword().

+ Here is the caller graph for this function:

◆ getNotAfterBegin() [1/2]

PString & PContext::getNotAfterBegin ( )

Gets the notAfterBegin of the PContext.

Returns
notAfterBegin of the PContext

Definition at line 1352 of file PLatexObj.cpp.

1352  {
1353  return p_notAfterBegin;
1354 }

References p_notAfterBegin.

◆ getNotAfterBegin() [2/2]

const PString & PContext::getNotAfterBegin ( ) const

Gets the notAfterBegin of the PContext.

Returns
notAfterBegin of the PContext

Definition at line 1345 of file PLatexObj.cpp.

1345  {
1346  return p_notAfterBegin;
1347 }

References p_notAfterBegin.

Referenced by parser_parseKeyword().

+ Here is the caller graph for this function:

◆ getNotBeforeBegin() [1/2]

PString & PContext::getNotBeforeBegin ( )

Gets the notBeforeBegin of the PContext.

Returns
notBeforeBegin of the PContext

Definition at line 1338 of file PLatexObj.cpp.

1338  {
1339  return p_notBeforeBegin;
1340 }

References p_notBeforeBegin.

◆ getNotBeforeBegin() [2/2]

const PString & PContext::getNotBeforeBegin ( ) const

Gets the notBeforeBegin of the PContext.

Returns
notBeforeBegin of the PContext

Definition at line 1331 of file PLatexObj.cpp.

1331  {
1332  return p_notBeforeBegin;
1333 }

References p_notBeforeBegin.

Referenced by parser_parseKeyword().

+ Here is the caller graph for this function:

◆ getNotBeforeEnd() [1/2]

PString & PContext::getNotBeforeEnd ( )

Gets the notBeforeEnd of the PContext.

Returns
notBeforeEnd of the PContext

Definition at line 1366 of file PLatexObj.cpp.

1366  {
1367  return p_notBeforeEnd;
1368 }

References p_notBeforeEnd.

◆ getNotBeforeEnd() [2/2]

const PString & PContext::getNotBeforeEnd ( ) const

Gets the notBeforeEnd of the PContext.

Returns
notBeforeEnd of the PContext

Definition at line 1359 of file PLatexObj.cpp.

1359  {
1360  return p_notBeforeEnd;
1361 }

References p_notBeforeEnd.

Referenced by parser_parseKeyword().

+ Here is the caller graph for this function:

◆ getSeq() [1/2]

PParseSeq & PContext::getSeq ( )

Gets the seq of the PContext.

Returns
seq of the PContext

Definition at line 1394 of file PLatexObj.cpp.

1394  {
1395  return p_seq;
1396 }

References p_seq.

◆ getSeq() [2/2]

const PParseSeq & PContext::getSeq ( ) const

Gets the seq of the PContext.

Returns
seq of the PContext

Definition at line 1387 of file PLatexObj.cpp.

1387  {
1388  return p_seq;
1389 }

References p_seq.

Referenced by parser_parseKeyword().

+ Here is the caller graph for this function:

◆ getVecKeyword() [1/2]

std::vector< PString > & PContext::getVecKeyword ( )

Gets the vecKeyword of the PContext.

Returns
vecKeyword of the PContext

Definition at line 1380 of file PLatexObj.cpp.

1380  {
1381  return p_vecKeyword;
1382 }

References p_vecKeyword.

◆ getVecKeyword() [2/2]

const std::vector< PString > & PContext::getVecKeyword ( ) const

Gets the vecKeyword of the PContext.

Returns
vecKeyword of the PContext

Definition at line 1373 of file PLatexObj.cpp.

1373  {
1374  return p_vecKeyword;
1375 }

References p_vecKeyword.

Referenced by PGenericParser::loadDirExtraParserFile(), and parser_parseKeyword().

+ Here is the caller graph for this function:

◆ initialisationPContext()

void PContext::initialisationPContext ( )
private

Initialisation Function of class PContext.

Definition at line 1413 of file PLatexObj.cpp.

1413  {
1414  p_name = "";
1415  p_begin = "";
1416  p_end = "";
1417  p_notBeforeBegin = "";
1418  p_notAfterBegin = "";
1419  p_notBeforeEnd = "";
1420 }

References p_begin, p_end, p_name, p_notAfterBegin, p_notBeforeBegin, and p_notBeforeEnd.

Referenced by PContext().

+ Here is the caller graph for this function:

◆ operator=()

PContext & PContext::operator= ( const PContext other)

Operator = of class PContext.

Parameters
other: PContext we want ot copy
Returns
copied class PContext

Definition at line 1225 of file PLatexObj.cpp.

1225  {
1226  copyPContext(other);
1227  return *this;
1228 }

References copyPContext().

+ Here is the call graph for this function:

◆ setBegin()

void PContext::setBegin ( const PString begin)

Sets the begin of the PContext.

Parameters
begin: begin of the PContext

Definition at line 1240 of file PLatexObj.cpp.

1240  {
1241  p_begin = begin;
1242 }

References p_begin.

Referenced by PGenericParser::loadDirExtraParserFile().

+ Here is the caller graph for this function:

◆ setEnd()

void PContext::setEnd ( const PString end)

Sets the end of the PContext.

Parameters
end: end of the PContext

Definition at line 1247 of file PLatexObj.cpp.

1247  {
1248  p_end = end;
1249 }

References p_end.

Referenced by PGenericParser::loadDirExtraParserFile().

+ Here is the caller graph for this function:

◆ setName()

void PContext::setName ( const PString name)

Sets the name of the PContext.

Parameters
name: name of the PContext

Definition at line 1233 of file PLatexObj.cpp.

1233  {
1234  p_name = name;
1235 }

References p_name.

Referenced by PGenericParser::loadDirExtraParserFile().

+ Here is the caller graph for this function:

◆ setNotAfterBegin()

void PContext::setNotAfterBegin ( const PString notAfterBegin)

Sets the notAfterBegin of the PContext.

Parameters
notAfterBegin: notAfterBegin of the PContext

Definition at line 1261 of file PLatexObj.cpp.

1261  {
1262  p_notAfterBegin = notAfterBegin;
1263 }

References p_notAfterBegin.

Referenced by PGenericParser::loadDirExtraParserFile().

+ Here is the caller graph for this function:

◆ setNotBeforeBegin()

void PContext::setNotBeforeBegin ( const PString notBeforeBegin)

Sets the notBeforeBegin of the PContext.

Parameters
notBeforeBegin: notBeforeBegin of the PContext

Definition at line 1254 of file PLatexObj.cpp.

1254  {
1255  p_notBeforeBegin = notBeforeBegin;
1256 }

References p_notBeforeBegin.

Referenced by PGenericParser::loadDirExtraParserFile().

+ Here is the caller graph for this function:

◆ setNotBeforeEnd()

void PContext::setNotBeforeEnd ( const PString notBeforeEnd)

Sets the notBeforeEnd of the PContext.

Parameters
notBeforeEnd: notBeforeEnd of the PContext

Definition at line 1268 of file PLatexObj.cpp.

1268  {
1269  p_notBeforeEnd = notBeforeEnd;
1270 }

References p_notBeforeEnd.

Referenced by PGenericParser::loadDirExtraParserFile().

+ Here is the caller graph for this function:

◆ setSeq()

void PContext::setSeq ( const PParseSeq seq)

Sets the seq of the PContext.

Parameters
seq: seq of the PContext

Definition at line 1282 of file PLatexObj.cpp.

1282  {
1283  p_seq = seq;
1284 }

References p_seq.

Referenced by PGenericParser::loadDirExtraParserFile().

+ Here is the caller graph for this function:

◆ setVecKeyword()

void PContext::setVecKeyword ( const std::vector< PString > &  vecKeyword)

Sets the vecKeyword of the PContext.

Parameters
vecKeyword: vecKeyword of the PContext

Definition at line 1275 of file PLatexObj.cpp.

1275  {
1276  p_vecKeyword = vecKeyword;
1277 }

References p_vecKeyword.

Member Data Documentation

◆ p_begin

PString PContext::p_begin
private

First string to get.

Definition at line 347 of file PLatexObj.h.

Referenced by copyPContext(), getBegin(), initialisationPContext(), and setBegin().

◆ p_end

PString PContext::p_end
private

End string to get.

Definition at line 349 of file PLatexObj.h.

Referenced by copyPContext(), getEnd(), initialisationPContext(), and setEnd().

◆ p_name

PString PContext::p_name
private

Name of the context.

Definition at line 345 of file PLatexObj.h.

Referenced by copyPContext(), getName(), initialisationPContext(), and setName().

◆ p_notAfterBegin

PString PContext::p_notAfterBegin
private

String which cannot be after begin.

Definition at line 353 of file PLatexObj.h.

Referenced by copyPContext(), getNotAfterBegin(), initialisationPContext(), and setNotAfterBegin().

◆ p_notBeforeBegin

PString PContext::p_notBeforeBegin
private

String which cannot be before begin.

Definition at line 351 of file PLatexObj.h.

Referenced by copyPContext(), getNotBeforeBegin(), initialisationPContext(), and setNotBeforeBegin().

◆ p_notBeforeEnd

PString PContext::p_notBeforeEnd
private

String which cannot be before end.

Definition at line 355 of file PLatexObj.h.

Referenced by copyPContext(), getNotBeforeEnd(), initialisationPContext(), and setNotBeforeEnd().

◆ p_seq

PParseSeq PContext::p_seq
private

Sequence of parsing.

Definition at line 359 of file PLatexObj.h.

Referenced by copyPContext(), getSeq(), and setSeq().

◆ p_vecKeyword

std::vector<PString> PContext::p_vecKeyword
private

Vector of keyword.

Definition at line 357 of file PLatexObj.h.

Referenced by copyPContext(), getVecKeyword(), and setVecKeyword().


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