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

Parameter of a function. More...

#include <PRepr.h>

Public Member Functions

PString & getDefaultValue ()
 Gets the defaultValue of the PArgument.
 
const PString & getDefaultValue () const
 Gets the defaultValue of the PArgument.
 
PString & getName ()
 Gets the name of the PArgument.
 
const PString & getName () const
 Gets the name of the PArgument.
 
PString & getPtrRef ()
 Gets the ptrRef of the PArgument.
 
const PString & getPtrRef () const
 Gets the ptrRef of the PArgument.
 
PString & getType ()
 Gets the type of the PArgument.
 
const PString & getType () const
 Gets the type of the PArgument.
 
PArgumentoperator= (const PArgument &other)
 Operator = of class PArgument.
 
 PArgument ()
 Constructor of class PArgument.
 
 PArgument (const PArgument &other)
 Copy Constructor of class PArgument.
 
void setDefaultValue (const PString &defaultValue)
 Sets the defaultValue of the PArgument.
 
void setName (const PString &name)
 Sets the name of the PArgument.
 
void setPtrRef (const PString &ptrRef)
 Sets the ptrRef of the PArgument.
 
void setType (const PString &type)
 Sets the type of the PArgument.
 
virtual ~PArgument ()
 Destructor of class PArgument.
 

Protected Member Functions

void copyPArgument (const PArgument &other)
 Copy Function of class PArgument.
 

Private Attributes

PString p_defaultValue
 Default value of the parameter.
 
PString p_name
 Name of the parameter.
 
PString p_ptrRef
 Pointer or reference of the parameter.
 
PString p_type
 Type of the column.
 

Detailed Description

Parameter of a function.

Definition at line 14 of file PRepr.h.

Constructor & Destructor Documentation

◆ PArgument() [1/2]

PArgument::PArgument ( )

Constructor of class PArgument.

Definition at line 11 of file PRepr.cpp.

11 {
12
13}

Referenced by copyPArgument(), operator=(), and PArgument().

+ Here is the caller graph for this function:

◆ PArgument() [2/2]

PArgument::PArgument ( const PArgument & other)

Copy Constructor of class PArgument.

Parameters
other: PArgument we want ot copy

Definition at line 18 of file PRepr.cpp.

18 {
19 copyPArgument(other);
20}
void copyPArgument(const PArgument &other)
Copy Function of class PArgument.
Definition PRepr.cpp:123

References copyPArgument(), and PArgument().

+ Here is the call graph for this function:

◆ ~PArgument()

PArgument::~PArgument ( )
virtual

Destructor of class PArgument.

Definition at line 23 of file PRepr.cpp.

23 {
24
25}

Member Function Documentation

◆ copyPArgument()

void PArgument::copyPArgument ( const PArgument & other)
protected

Copy Function of class PArgument.

Parameters
other: PArgument we want ot copy

Definition at line 123 of file PRepr.cpp.

123 {
124 p_name = other.p_name;
125 p_type = other.p_type;
127 p_ptrRef = other.p_ptrRef;
128}
PString p_ptrRef
Pointer or reference of the parameter.
Definition PRepr.h:42
PString p_defaultValue
Default value of the parameter.
Definition PRepr.h:40
PString p_type
Type of the column.
Definition PRepr.h:38
PString p_name
Name of the parameter.
Definition PRepr.h:36

References p_defaultValue, p_name, p_ptrRef, p_type, and PArgument().

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

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

◆ getDefaultValue() [1/2]

PString & PArgument::getDefaultValue ( )

Gets the defaultValue of the PArgument.

Returns
defaultValue of the PArgument

Definition at line 102 of file PRepr.cpp.

102 {
103 return p_defaultValue;
104}

References p_defaultValue.

◆ getDefaultValue() [2/2]

const PString & PArgument::getDefaultValue ( ) const

Gets the defaultValue of the PArgument.

Returns
defaultValue of the PArgument

Definition at line 95 of file PRepr.cpp.

95 {
96 return p_defaultValue;
97}

References p_defaultValue.

◆ getName() [1/2]

PString & PArgument::getName ( )

Gets the name of the PArgument.

Returns
name of the PArgument

Definition at line 74 of file PRepr.cpp.

74 {
75 return p_name;
76}

References p_name.

◆ getName() [2/2]

const PString & PArgument::getName ( ) const

Gets the name of the PArgument.

Returns
name of the PArgument

Definition at line 67 of file PRepr.cpp.

67 {
68 return p_name;
69}

References p_name.

◆ getPtrRef() [1/2]

PString & PArgument::getPtrRef ( )

Gets the ptrRef of the PArgument.

Returns
ptrRef of the PArgument

Definition at line 116 of file PRepr.cpp.

116 {
117 return p_ptrRef;
118}

References p_ptrRef.

◆ getPtrRef() [2/2]

const PString & PArgument::getPtrRef ( ) const

Gets the ptrRef of the PArgument.

Returns
ptrRef of the PArgument

Definition at line 109 of file PRepr.cpp.

109 {
110 return p_ptrRef;
111}

References p_ptrRef.

◆ getType() [1/2]

PString & PArgument::getType ( )

Gets the type of the PArgument.

Returns
type of the PArgument

Definition at line 88 of file PRepr.cpp.

88 {
89 return p_type;
90}

References p_type.

◆ getType() [2/2]

const PString & PArgument::getType ( ) const

Gets the type of the PArgument.

Returns
type of the PArgument

Definition at line 81 of file PRepr.cpp.

81 {
82 return p_type;
83}

References p_type.

◆ operator=()

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

Operator = of class PArgument.

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

Definition at line 31 of file PRepr.cpp.

31 {
32 copyPArgument(other);
33 return *this;
34}

References copyPArgument(), and PArgument().

+ Here is the call graph for this function:

◆ setDefaultValue()

void PArgument::setDefaultValue ( const PString & defaultValue)

Sets the defaultValue of the PArgument.

Parameters
defaultValue: defaultValue of the PArgument

Definition at line 53 of file PRepr.cpp.

53 {
54 p_defaultValue = defaultValue;
55}

References p_defaultValue.

Referenced by HeaderParser::parseArgument().

+ Here is the caller graph for this function:

◆ setName()

void PArgument::setName ( const PString & name)

Sets the name of the PArgument.

Parameters
name: name of the PArgument

Definition at line 39 of file PRepr.cpp.

39 {
40 p_name = name;
41}

References p_name.

Referenced by HeaderParser::parseArgument().

+ Here is the caller graph for this function:

◆ setPtrRef()

void PArgument::setPtrRef ( const PString & ptrRef)

Sets the ptrRef of the PArgument.

Parameters
ptrRef: ptrRef of the PArgument

Definition at line 60 of file PRepr.cpp.

60 {
61 p_ptrRef = ptrRef;
62}

References p_ptrRef.

Referenced by HeaderParser::parseArgument().

+ Here is the caller graph for this function:

◆ setType()

void PArgument::setType ( const PString & type)

Sets the type of the PArgument.

Parameters
type: type of the PArgument

Definition at line 46 of file PRepr.cpp.

46 {
47 p_type = type;
48}

References p_type.

Referenced by HeaderParser::parseArgument().

+ Here is the caller graph for this function:

Member Data Documentation

◆ p_defaultValue

PString PArgument::p_defaultValue
private

Default value of the parameter.

Definition at line 40 of file PRepr.h.

Referenced by copyPArgument(), getDefaultValue(), getDefaultValue(), and setDefaultValue().

◆ p_name

PString PArgument::p_name
private

Name of the parameter.

Definition at line 36 of file PRepr.h.

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

◆ p_ptrRef

PString PArgument::p_ptrRef
private

Pointer or reference of the parameter.

Definition at line 42 of file PRepr.h.

Referenced by copyPArgument(), getPtrRef(), getPtrRef(), and setPtrRef().

◆ p_type

PString PArgument::p_type
private

Type of the column.

Definition at line 38 of file PRepr.h.

Referenced by copyPArgument(), getType(), getType(), and setType().


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