PhoenixHPCProxy  0.8.0
Lightweight HPC proxy
Loading...
Searching...
No Matches
PFunction Class Reference

Function prototype. More...

#include <PRepr.h>

Public Member Functions

PString & getDocString ()
 Gets the docString of the PFunction.
 
const PString & getDocString () const
 Gets the docString of the PFunction.
 
PString & getName ()
 Gets the name of the PFunction.
 
const PString & getName () const
 Gets the name of the PFunction.
 
PString & getOtherCode ()
 Gets the otherCode of the PFunction.
 
const PString & getOtherCode () const
 Gets the otherCode of the PFunction.
 
PString & getOutputType ()
 Gets the outputType of the PFunction.
 
const PString & getOutputType () const
 Gets the outputType of the PFunction.
 
PString & getTemplateDef ()
 Gets the templateDef of the PFunction.
 
const PString & getTemplateDef () const
 Gets the templateDef of the PFunction.
 
std::vector< PArgument > & getVecArgument ()
 Gets the vecArgument of the PFunction.
 
const std::vector< PArgument > & getVecArgument () const
 Gets the vecArgument of the PFunction.
 
PFunctionoperator= (const PFunction &other)
 Operator = of class PFunction.
 
 PFunction ()
 Constructor of class PFunction.
 
 PFunction (const PFunction &other)
 Copy Constructor of class PFunction.
 
void setDocString (const PString &docString)
 Sets the docString of the PFunction.
 
void setName (const PString &name)
 Sets the name of the PFunction.
 
void setOtherCode (const PString &otherCode)
 Sets the otherCode of the PFunction.
 
void setOutputType (const PString &outputType)
 Sets the outputType of the PFunction.
 
void setTemplateDef (const PString &templateDef)
 Sets the templateDef of the PFunction.
 
void setVecArgument (const std::vector< PArgument > &vecArgument)
 Sets the vecArgument of the PFunction.
 
virtual ~PFunction ()
 Destructor of class PFunction.
 

Protected Member Functions

void copyPFunction (const PFunction &other)
 Copy Function of class PFunction.
 

Private Attributes

PString p_docString
 Documentation string of the current PFunction.
 
PString p_name
 Name of the function.
 
PString p_otherCode
 Other code which is not a function prototype.
 
PString p_outputType
 Output type of the function.
 
PString p_templateDef
 Template definition of the function.
 
std::vector< PArgumentp_vecArgument
 Vector of all the attributes of the PFunction.
 

Detailed Description

Function prototype.

Definition at line 46 of file PRepr.h.

Constructor & Destructor Documentation

◆ PFunction() [1/2]

PFunction::PFunction ( )

Constructor of class PFunction.

Definition at line 131 of file PRepr.cpp.

131 {
132
133}

Referenced by copyPFunction(), operator=(), and PFunction().

+ Here is the caller graph for this function:

◆ PFunction() [2/2]

PFunction::PFunction ( const PFunction & other)

Copy Constructor of class PFunction.

Parameters
other: PFunction we want ot copy

Definition at line 138 of file PRepr.cpp.

138 {
139 copyPFunction(other);
140}
void copyPFunction(const PFunction &other)
Copy Function of class PFunction.
Definition PRepr.cpp:285

References copyPFunction(), and PFunction().

+ Here is the call graph for this function:

◆ ~PFunction()

PFunction::~PFunction ( )
virtual

Destructor of class PFunction.

Definition at line 143 of file PRepr.cpp.

143 {
144
145}

Member Function Documentation

◆ copyPFunction()

void PFunction::copyPFunction ( const PFunction & other)
protected

Copy Function of class PFunction.

Parameters
other: PFunction we want ot copy

Definition at line 285 of file PRepr.cpp.

285 {
286 p_name = other.p_name;
287 p_docString = other.p_docString;
291 p_otherCode = other.p_otherCode;
292}
PString p_templateDef
Template definition of the function.
Definition PRepr.h:82
PString p_docString
Documentation string of the current PFunction.
Definition PRepr.h:76
PString p_otherCode
Other code which is not a function prototype.
Definition PRepr.h:84
PString p_outputType
Output type of the function.
Definition PRepr.h:80
PString p_name
Name of the function.
Definition PRepr.h:74
std::vector< PArgument > p_vecArgument
Vector of all the attributes of the PFunction.
Definition PRepr.h:78

References p_docString, p_name, p_otherCode, p_outputType, p_templateDef, p_vecArgument, and PFunction().

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

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDocString() [1/2]

PString & PFunction::getDocString ( )

Gets the docString of the PFunction.

Returns
docString of the PFunction

Definition at line 222 of file PRepr.cpp.

222 {
223 return p_docString;
224}

References p_docString.

◆ getDocString() [2/2]

const PString & PFunction::getDocString ( ) const

Gets the docString of the PFunction.

Returns
docString of the PFunction

Definition at line 215 of file PRepr.cpp.

215 {
216 return p_docString;
217}

References p_docString.

Referenced by cpp_backendTableHeaderInline().

+ Here is the caller graph for this function:

◆ getName() [1/2]

PString & PFunction::getName ( )

Gets the name of the PFunction.

Returns
name of the PFunction

Definition at line 208 of file PRepr.cpp.

208 {
209 return p_name;
210}

References p_name.

◆ getName() [2/2]

const PString & PFunction::getName ( ) const

Gets the name of the PFunction.

Returns
name of the PFunction

Definition at line 201 of file PRepr.cpp.

201 {
202 return p_name;
203}

References p_name.

Referenced by cpp_backendTableHeaderHandleType(), and cpp_backendTableHeaderInline().

+ Here is the caller graph for this function:

◆ getOtherCode() [1/2]

PString & PFunction::getOtherCode ( )

Gets the otherCode of the PFunction.

Returns
otherCode of the PFunction

Definition at line 278 of file PRepr.cpp.

278 {
279 return p_otherCode;
280}

References p_otherCode.

◆ getOtherCode() [2/2]

const PString & PFunction::getOtherCode ( ) const

Gets the otherCode of the PFunction.

Returns
otherCode of the PFunction

Definition at line 271 of file PRepr.cpp.

271 {
272 return p_otherCode;
273}

References p_otherCode.

Referenced by cpp_backendTableHeaderInline(), and repr_isFunction().

+ Here is the caller graph for this function:

◆ getOutputType() [1/2]

PString & PFunction::getOutputType ( )

Gets the outputType of the PFunction.

Returns
outputType of the PFunction

Definition at line 250 of file PRepr.cpp.

250 {
251 return p_outputType;
252}

References p_outputType.

◆ getOutputType() [2/2]

const PString & PFunction::getOutputType ( ) const

Gets the outputType of the PFunction.

Returns
outputType of the PFunction

Definition at line 243 of file PRepr.cpp.

243 {
244 return p_outputType;
245}

References p_outputType.

Referenced by cpp_backendTableHeaderHandleType(), and cpp_backendTableHeaderInline().

+ Here is the caller graph for this function:

◆ getTemplateDef() [1/2]

PString & PFunction::getTemplateDef ( )

Gets the templateDef of the PFunction.

Returns
templateDef of the PFunction

Definition at line 264 of file PRepr.cpp.

264 {
265 return p_templateDef;
266}

References p_templateDef.

◆ getTemplateDef() [2/2]

const PString & PFunction::getTemplateDef ( ) const

Gets the templateDef of the PFunction.

Returns
templateDef of the PFunction

Definition at line 257 of file PRepr.cpp.

257 {
258 return p_templateDef;
259}

References p_templateDef.

Referenced by cpp_backendTableHeaderInline().

+ Here is the caller graph for this function:

◆ getVecArgument() [1/2]

std::vector< PArgument > & PFunction::getVecArgument ( )

Gets the vecArgument of the PFunction.

Returns
vecArgument of the PFunction

Definition at line 236 of file PRepr.cpp.

236 {
237 return p_vecArgument;
238}

References p_vecArgument.

◆ getVecArgument() [2/2]

const std::vector< PArgument > & PFunction::getVecArgument ( ) const

Gets the vecArgument of the PFunction.

Returns
vecArgument of the PFunction

Definition at line 229 of file PRepr.cpp.

229 {
230 return p_vecArgument;
231}

References p_vecArgument.

Referenced by cpp_backendTableHeaderHandleType(), cpp_backendTableHeaderInline(), and HeaderParser::parseFunction().

+ Here is the caller graph for this function:

◆ operator=()

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

Operator = of class PFunction.

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

Definition at line 151 of file PRepr.cpp.

151 {
152 copyPFunction(other);
153 return *this;
154}

References copyPFunction(), and PFunction().

+ Here is the call graph for this function:

◆ setDocString()

void PFunction::setDocString ( const PString & docString)

Sets the docString of the PFunction.

Parameters
docString: docString of the PFunction

Definition at line 166 of file PRepr.cpp.

166 {
167 p_docString = docString;
168}

References p_docString.

Referenced by HeaderParser::parseFunction().

+ Here is the caller graph for this function:

◆ setName()

void PFunction::setName ( const PString & name)

Sets the name of the PFunction.

Parameters
name: name of the PFunction

Definition at line 159 of file PRepr.cpp.

159 {
160 p_name = name;
161}

References p_name.

Referenced by HeaderParser::parseFunction().

+ Here is the caller graph for this function:

◆ setOtherCode()

void PFunction::setOtherCode ( const PString & otherCode)

Sets the otherCode of the PFunction.

Parameters
otherCode: otherCode of the PFunction

Definition at line 194 of file PRepr.cpp.

194 {
195 p_otherCode = otherCode;
196}

References p_otherCode.

Referenced by HeaderParser::parseMacro(), and HeaderParser::playOtherCode().

+ Here is the caller graph for this function:

◆ setOutputType()

void PFunction::setOutputType ( const PString & outputType)

Sets the outputType of the PFunction.

Parameters
outputType: outputType of the PFunction

Definition at line 180 of file PRepr.cpp.

180 {
181 p_outputType = outputType;
182}

References p_outputType.

Referenced by HeaderParser::parseFunction().

+ Here is the caller graph for this function:

◆ setTemplateDef()

void PFunction::setTemplateDef ( const PString & templateDef)

Sets the templateDef of the PFunction.

Parameters
templateDef: templateDef of the PFunction

Definition at line 187 of file PRepr.cpp.

187 {
188 p_templateDef = templateDef;
189}

References p_templateDef.

◆ setVecArgument()

void PFunction::setVecArgument ( const std::vector< PArgument > & vecArgument)

Sets the vecArgument of the PFunction.

Parameters
vecArgument: vecArgument of the PFunction

Definition at line 173 of file PRepr.cpp.

173 {
174 p_vecArgument = vecArgument;
175}

References p_vecArgument.

Member Data Documentation

◆ p_docString

PString PFunction::p_docString
private

Documentation string of the current PFunction.

Definition at line 76 of file PRepr.h.

Referenced by copyPFunction(), getDocString(), getDocString(), and setDocString().

◆ p_name

PString PFunction::p_name
private

Name of the function.

Definition at line 74 of file PRepr.h.

Referenced by copyPFunction(), getName(), getName(), and setName().

◆ p_otherCode

PString PFunction::p_otherCode
private

Other code which is not a function prototype.

Definition at line 84 of file PRepr.h.

Referenced by copyPFunction(), getOtherCode(), getOtherCode(), and setOtherCode().

◆ p_outputType

PString PFunction::p_outputType
private

Output type of the function.

Definition at line 80 of file PRepr.h.

Referenced by copyPFunction(), getOutputType(), getOutputType(), and setOutputType().

◆ p_templateDef

PString PFunction::p_templateDef
private

Template definition of the function.

Definition at line 82 of file PRepr.h.

Referenced by copyPFunction(), getTemplateDef(), getTemplateDef(), and setTemplateDef().

◆ p_vecArgument

std::vector<PArgument> PFunction::p_vecArgument
private

Vector of all the attributes of the PFunction.

Definition at line 78 of file PRepr.h.

Referenced by copyPFunction(), getVecArgument(), getVecArgument(), and setVecArgument().


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