PUMA Library Reference Manual
Puma::DeducedArgument Struct Reference

#include <DeducedArgument.h>

+ Inheritance diagram for Puma::DeducedArgument:

Public Member Functions

 DeducedArgument (CTemplateParamInfo *, CTypeInfo *, CTree *=0, bool=false, bool=false)
 
 DeducedArgument (CTemplateParamInfo *, CConstant *, CTree *=0, bool=false, bool=false)
 
 DeducedArgument (CTemplateParamInfo *, long)
 
 ~DeducedArgument ()
 
bool operator== (const DeducedArgument &)
 
bool operator!= (const DeducedArgument &)
 
bool equals (const DeducedArgument &, bool matchTemplateParams=false)
 
CTypeInfoType () const
 
CConstantValue () const
 
CTemplateParamInfoTemplateParam () const
 
CTreeTemplateArg () const
 
bool isDefaultArg () const
 
bool isDirectArg () const
 
virtual void print (std::ostream &os) const
 Print the deduced argument, i.e. More...
 
void print (std::ostream &os, bool abs) const
 Print the deduced argument, i.e. More...
 
- Public Member Functions inherited from Puma::Printable
virtual ~Printable ()
 Destructor. More...
 

Public Attributes

CTypeInfotype
 
CConstantvalue
 
CTemplateParamInfoparam
 
CTreearg
 
bool del
 
bool default_arg
 
bool direct_arg
 

Constructor & Destructor Documentation

◆ DeducedArgument() [1/3]

Puma::DeducedArgument::DeducedArgument ( CTemplateParamInfo ,
CTypeInfo ,
CTree = 0,
bool  = false,
bool  = false 
)

◆ DeducedArgument() [2/3]

Puma::DeducedArgument::DeducedArgument ( CTemplateParamInfo ,
CConstant ,
CTree = 0,
bool  = false,
bool  = false 
)

◆ DeducedArgument() [3/3]

Puma::DeducedArgument::DeducedArgument ( CTemplateParamInfo ,
long   
)

◆ ~DeducedArgument()

Puma::DeducedArgument::~DeducedArgument ( )

Member Function Documentation

◆ equals()

bool Puma::DeducedArgument::equals ( const DeducedArgument ,
bool  matchTemplateParams = false 
)

◆ isDefaultArg()

bool Puma::DeducedArgument::isDefaultArg ( ) const
inline

◆ isDirectArg()

bool Puma::DeducedArgument::isDirectArg ( ) const
inline

◆ operator!=()

bool Puma::DeducedArgument::operator!= ( const DeducedArgument d)
inline

◆ operator==()

bool Puma::DeducedArgument::operator== ( const DeducedArgument d)
inline

◆ print() [1/2]

virtual void Puma::DeducedArgument::print ( std::ostream &  os) const
virtual

Print the deduced argument, i.e.

the type or constant value.

Parameters
osThe output stream.

Implements Puma::Printable.

◆ print() [2/2]

void Puma::DeducedArgument::print ( std::ostream &  os,
bool  abs 
) const

Print the deduced argument, i.e.

the type or constant value.

Parameters
osThe output stream.
absIf 'true' names are printed with absolute names (leading '::')

◆ TemplateArg()

CTree * Puma::DeducedArgument::TemplateArg ( ) const
inline

◆ TemplateParam()

CTemplateParamInfo * Puma::DeducedArgument::TemplateParam ( ) const
inline

◆ Type()

CTypeInfo * Puma::DeducedArgument::Type ( ) const
inline

◆ Value()

CConstant * Puma::DeducedArgument::Value ( ) const
inline

Member Data Documentation

◆ arg

CTree* Puma::DeducedArgument::arg

◆ default_arg

bool Puma::DeducedArgument::default_arg

◆ del

bool Puma::DeducedArgument::del

◆ direct_arg

bool Puma::DeducedArgument::direct_arg

◆ param

CTemplateParamInfo* Puma::DeducedArgument::param

◆ type

CTypeInfo* Puma::DeducedArgument::type

◆ value

CConstant* Puma::DeducedArgument::value