LMMS
Loading...
Searching...
No Matches
Alg_parameter Class Reference

#include <allegro.h>

Public Member Functions

 Alg_parameter ()
 ~Alg_parameter ()
void copy (Alg_parameter *)
 copy from another parameter
char attr_type ()
const char * attr_name ()
void set_attr (Alg_attribute a)
void show ()

Public Attributes

Alg_attribute attr
union { 
   double   r 
 real More...
   const char *   s 
 string More...
   int32_t   i 
 integer More...
   bool   l 
 logical More...
   const char *   a 
 symbol (atom) More...
}; 
 anonymous union

Detailed Description

an attribute/value pair. Since Alg_attribute names imply type, we try to keep attributes and values packaged together as Alg_parameter class

Constructor & Destructor Documentation

◆ Alg_parameter()

Alg_parameter::Alg_parameter ( )
inline

◆ ~Alg_parameter()

Alg_parameter::~Alg_parameter ( )

Member Function Documentation

◆ attr_name()

const char * Alg_parameter::attr_name ( )
inline

◆ attr_type()

char Alg_parameter::attr_type ( )
inline

◆ copy()

void Alg_parameter::copy ( Alg_parameter * )

copy from another parameter

◆ set_attr()

void Alg_parameter::set_attr ( Alg_attribute a)
inline

◆ show()

void Alg_parameter::show ( )

Member Data Documentation

◆ [union]

union { ... } Alg_parameter

anonymous union

◆ a

const char* Alg_parameter::a

symbol (atom)

◆ attr

Alg_attribute Alg_parameter::attr

This constructor guarantees that an Alg_parameter can be deleted safely without further initialization. It does not do anything useful, so it is expected that the creator will set attr and store a value in the appropriate union field.

◆ i

int32_t Alg_parameter::i

integer

◆ l

bool Alg_parameter::l

logical

◆ r

double Alg_parameter::r

real

◆ s

const char* Alg_parameter::s

string


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