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 > & getVecDelimiter ()
 Gets the vecDelimiter of the PContext. More...
 
const std::vector< PString > & getVecDelimiter () const
 Gets the vecDelimiter 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 setVecDelimiter (const std::vector< PString > &vecDelimiter)
 Sets the vecDelimiter 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_vecDelimiter
 Vector of delimiter. More...
 
std::vector< PStringp_vecKeyword
 Vector of keyword. More...
 

Detailed Description

Context for parser environement.

Definition at line 308 of file PLatexObj.h.

Constructor & Destructor Documentation

◆ PContext() [1/2]

PContext::PContext ( )

Constructor of class PContext.

Definition at line 1203 of file PLatexObj.cpp.

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

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 1210 of file PLatexObj.cpp.

1210  {
1211  copyPContext(other);
1212 }
void copyPContext(const PContext &other)
Copy Function of class PContext.
Definition: PLatexObj.cpp:1420

References copyPContext().

+ Here is the call graph for this function:

◆ ~PContext()

PContext::~PContext ( )
virtual

Destructor of class PContext.

Definition at line 1215 of file PLatexObj.cpp.

1215  {
1216 
1217 }

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 1420 of file PLatexObj.cpp.

1420  {
1421  p_name = other.p_name;
1422  p_begin = other.p_begin;
1423  p_end = other.p_end;
1427  p_vecKeyword = other.p_vecKeyword;
1429  p_seq = other.p_seq;
1430 }
PString p_notBeforeEnd
String which cannot be before end.
Definition: PLatexObj.h:356
std::vector< PString > p_vecKeyword
Vector of keyword.
Definition: PLatexObj.h:358
PString p_end
End string to get.
Definition: PLatexObj.h:350
PString p_name
Name of the context.
Definition: PLatexObj.h:346
PString p_begin
First string to get.
Definition: PLatexObj.h:348
std::vector< PString > p_vecDelimiter
Vector of delimiter.
Definition: PLatexObj.h:360
PParseSeq p_seq
Sequence of parsing.
Definition: PLatexObj.h:362
PString p_notAfterBegin
String which cannot be after begin.
Definition: PLatexObj.h:354
PString p_notBeforeBegin
String which cannot be before begin.
Definition: PLatexObj.h:352

References p_begin, p_end, p_name, p_notAfterBegin, p_notBeforeBegin, p_notBeforeEnd, p_seq, p_vecDelimiter, 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 1315 of file PLatexObj.cpp.

1315  {
1316  return p_begin;
1317 }

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 1308 of file PLatexObj.cpp.

1308  {
1309  return p_begin;
1310 }

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 1329 of file PLatexObj.cpp.

1329  {
1330  return p_end;
1331 }

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 1322 of file PLatexObj.cpp.

1322  {
1323  return p_end;
1324 }

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 1301 of file PLatexObj.cpp.

1301  {
1302  return p_name;
1303 }

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 1294 of file PLatexObj.cpp.

1294  {
1295  return p_name;
1296 }

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 1357 of file PLatexObj.cpp.

1357  {
1358  return p_notAfterBegin;
1359 }

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 1350 of file PLatexObj.cpp.

1350  {
1351  return p_notAfterBegin;
1352 }

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 1343 of file PLatexObj.cpp.

1343  {
1344  return p_notBeforeBegin;
1345 }

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 1336 of file PLatexObj.cpp.

1336  {
1337  return p_notBeforeBegin;
1338 }

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 1371 of file PLatexObj.cpp.

1371  {
1372  return p_notBeforeEnd;
1373 }

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 1364 of file PLatexObj.cpp.

1364  {
1365  return p_notBeforeEnd;
1366 }

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 1413 of file PLatexObj.cpp.

1413  {
1414  return p_seq;
1415 }

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 1406 of file PLatexObj.cpp.

1406  {
1407  return p_seq;
1408 }

References p_seq.

Referenced by parser_parseKeyword().

+ Here is the caller graph for this function:

◆ getVecDelimiter() [1/2]

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

Gets the vecDelimiter of the PContext.

Returns
vecDelimiter of the PContext

Definition at line 1399 of file PLatexObj.cpp.

1399  {
1400  return p_vecDelimiter;
1401 }

References p_vecDelimiter.

◆ getVecDelimiter() [2/2]

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

Gets the vecDelimiter of the PContext.

Returns
vecDelimiter of the PContext

Definition at line 1392 of file PLatexObj.cpp.

1392  {
1393  return p_vecDelimiter;
1394 }

References p_vecDelimiter.

Referenced by PGenericParser::loadDirExtraParserFile(), and 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 1385 of file PLatexObj.cpp.

1385  {
1386  return p_vecKeyword;
1387 }

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 1378 of file PLatexObj.cpp.

1378  {
1379  return p_vecKeyword;
1380 }

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 1433 of file PLatexObj.cpp.

1433  {
1434  p_name = "";
1435  p_begin = "";
1436  p_end = "";
1437  p_notBeforeBegin = "";
1438  p_notAfterBegin = "";
1439  p_notBeforeEnd = "";
1440 }

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 1223 of file PLatexObj.cpp.

1223  {
1224  copyPContext(other);
1225  return *this;
1226 }

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 1238 of file PLatexObj.cpp.

1238  {
1239  p_begin = begin;
1240 }

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 1245 of file PLatexObj.cpp.

1245  {
1246  p_end = end;
1247 }

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 1231 of file PLatexObj.cpp.

1231  {
1232  p_name = name;
1233 }

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 1259 of file PLatexObj.cpp.

1259  {
1260  p_notAfterBegin = notAfterBegin;
1261 }

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 1252 of file PLatexObj.cpp.

1252  {
1253  p_notBeforeBegin = notBeforeBegin;
1254 }

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 1266 of file PLatexObj.cpp.

1266  {
1267  p_notBeforeEnd = notBeforeEnd;
1268 }

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 1287 of file PLatexObj.cpp.

1287  {
1288  p_seq = seq;
1289 }

References p_seq.

Referenced by PGenericParser::loadDirExtraParserFile().

+ Here is the caller graph for this function:

◆ setVecDelimiter()

void PContext::setVecDelimiter ( const std::vector< PString > &  vecDelimiter)

Sets the vecDelimiter of the PContext.

Parameters
vecDelimiter: vecDelimiter of the PContext

Definition at line 1280 of file PLatexObj.cpp.

1280  {
1281  p_vecDelimiter = vecDelimiter;
1282 }

References p_vecDelimiter.

◆ setVecKeyword()

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

Sets the vecKeyword of the PContext.

Parameters
vecKeyword: vecKeyword of the PContext

Definition at line 1273 of file PLatexObj.cpp.

1273  {
1274  p_vecKeyword = vecKeyword;
1275 }

References p_vecKeyword.

Member Data Documentation

◆ p_begin

PString PContext::p_begin
private

First string to get.

Definition at line 348 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 350 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 346 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 354 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 352 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 356 of file PLatexObj.h.

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

◆ p_seq

PParseSeq PContext::p_seq
private

Sequence of parsing.

Definition at line 362 of file PLatexObj.h.

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

◆ p_vecDelimiter

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

Vector of delimiter.

Definition at line 360 of file PLatexObj.h.

Referenced by copyPContext(), getVecDelimiter(), and setVecDelimiter().

◆ p_vecKeyword

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

Vector of keyword.

Definition at line 358 of file PLatexObj.h.

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


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